# CVE-2023-52847: media: bttv: fix use after free error due to btv-\>timeout timer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-362, CWE-416
- **Published:** 2024-05-21T15:31:44.513Z
- **Modified:** 2026-08-05T09:11:40.867Z

## Who should check

- Anyone running Linux \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< bbc3b8dd2cb7817e703f112d988e4f4728f0f2a9; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< b35fdade92c5058a5e727e233fe263b828de2c9a; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 2f3d9198cdae1cb079ec8652f4defacd481eab2b; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 51c94256a83fe4e17406c66ff3e1ad7d242d8574; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 20568d06f6069cb835e05eed432edf962645d226; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 1871014d6ef4812ad11ef7d838d73ce09d632267; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 847599fffa528b2cdec4e21b6bf7586dad982132; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< bd5b50b329e850d467e7bcc07b2b6bde3752fbda
- Anyone running Linux 4.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: bttv: fix use after free error due to btv-\>timeout timer

There may be some a race condition between timer function
bttv\_irq\_timeout and bttv\_remove. The timer is setup in
probe and there is no timer\_delete operation in remove
function. When it hit kfree btv, the function might still be
invoked, which will cause use after free bug.

This bug is found by static analysis, it may be false positive.

Fix it by adding del\_timer\_sync invoking to the remove function.

cpu0                cpu1
                  bttv\_probe
                    -\>timer\_setup
                      -\>bttv\_set\_dma
                        -\>mod\_timer;
bttv\_remove
  -\>kfree(btv);
                  -\>bttv\_irq\_timeout
                    -\>USE btv

## Affected and fixed versions

- Linux: \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< bbc3b8dd2cb7817e703f112d988e4f4728f0f2a9; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< b35fdade92c5058a5e727e233fe263b828de2c9a; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 2f3d9198cdae1cb079ec8652f4defacd481eab2b; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 51c94256a83fe4e17406c66ff3e1ad7d242d8574; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 20568d06f6069cb835e05eed432edf962645d226; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 1871014d6ef4812ad11ef7d838d73ce09d632267; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 847599fffa528b2cdec4e21b6bf7586dad982132; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< bd5b50b329e850d467e7bcc07b2b6bde3752fbda (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52847. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52847.md
Affected: Linux >= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, < bbc3b8dd2cb7817e703f112d988e4f4728f0f2a9; >= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, < b35fdade92c5058a5e727e233fe263b828de2c9a; >= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, < 2f3d9198cdae1cb079ec8652f4defacd481eab2b; >= 162e6376ac58440beb6a2d2…
Fixed in: Linux 2f3d9198cdae1cb079ec8652f4defacd481eab2b, Linux 51c94256a83fe4e17406c66ff3e1ad7d242d8574, Linux 20568d06f6069cb835e05eed432edf962645d226, Linux 1871014d6ef4812ad11ef7d838d73ce09d632267, Linux 847599fffa528b2cdec4e21b6bf7586dad982132

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52847 being exploited?

There is no confirmed exploitation: CVE-2023-52847 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52847?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52847?

Linux \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< bbc3b8dd2cb7817e703f112d988e4f4728f0f2a9; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< b35fdade92c5058a5e727e233fe263b828de2c9a; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 2f3d9198cdae1cb079ec8652f4defacd481eab2b; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 51c94256a83fe4e17406c66ff3e1ad7d242d8574; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 20568d06f6069cb835e05eed432edf962645d226; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 1871014d6ef4812ad11ef7d838d73ce09d632267; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< 847599fffa528b2cdec4e21b6bf7586dad982132; \>= 162e6376ac58440beb6a2d2ee294f5d88ea58dd1, \< bd5b50b329e850d467e7bcc07b2b6bde3752fbda; Linux 4.15.

### Is there a fix for CVE-2023-52847?

Yes. Fixed in Linux 2f3d9198cdae1cb079ec8652f4defacd481eab2b, Linux 51c94256a83fe4e17406c66ff3e1ad7d242d8574, Linux 20568d06f6069cb835e05eed432edf962645d226, Linux 1871014d6ef4812ad11ef7d838d73ce09d632267, Linux 847599fffa528b2cdec4e21b6bf7586dad982132. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-52847?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/bbc3b8dd2cb7817e703f112d988e4f4728f0f2a9>
- patch: <https://git.kernel.org/stable/c/b35fdade92c5058a5e727e233fe263b828de2c9a>
- patch: <https://git.kernel.org/stable/c/2f3d9198cdae1cb079ec8652f4defacd481eab2b>
- patch: <https://git.kernel.org/stable/c/51c94256a83fe4e17406c66ff3e1ad7d242d8574>
- patch: <https://git.kernel.org/stable/c/20568d06f6069cb835e05eed432edf962645d226>
- patch: <https://git.kernel.org/stable/c/1871014d6ef4812ad11ef7d838d73ce09d632267>
- patch: <https://git.kernel.org/stable/c/847599fffa528b2cdec4e21b6bf7586dad982132>
- patch: <https://git.kernel.org/stable/c/bd5b50b329e850d467e7bcc07b2b6bde3752fbda>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52847>

HTML: <https://flawdb.com/CVE-2023-52847> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52847>
