CVE-2023-52847

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

HIGH
7
CVSS Score
Published: May 21, 2024 at 03:31 PM UTC
Updated: August 5, 2026 at 10:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.15 ≤ v < 4.19.2994.15 ≤ v < 5.10.2014.15 ≤ v < 5.15.1394.15 ≤ v < 5.4.2614.15 ≤ v < 6.1.634.15 ≤ v < 6.5.124.15 ≤ v < 6.6.24.15 ≤ v < 6.74.20 ≤ v < 5.4.2615.11 ≤ v < 5.15.1395.16 ≤ v < 6.1.635.5 ≤ v < 5.10.2016.2 ≤ v < 6.5.126.6 ≤ v < 6.6.2162e6376ac58440beb6a2d2ee294f5d88ea58dd14.15
Vendor states this is fixed in 1871014d6ef4812ad11ef7d838d73ce09d632267 (fixed)
Vendor states this is fixed in 20568d06f6069cb835e05eed432edf962645d226 (fixed)
Vendor states this is fixed in 2f3d9198cdae1cb079ec8652f4defacd481eab2b (fixed)
Vendor states this is fixed in 51c94256a83fe4e17406c66ff3e1ad7d242d8574 (fixed)
Vendor states this is fixed in 847599fffa528b2cdec4e21b6bf7586dad982132 (fixed)
Vendor states this is fixed in b35fdade92c5058a5e727e233fe263b828de2c9a (fixed)
Vendor states this is fixed in bbc3b8dd2cb7817e703f112d988e4f4728f0f2a9 (fixed)
Vendor states this is fixed in bd5b50b329e850d467e7bcc07b2b6bde3752fbda (fixed)
Vendor states this is fixed in 4.15 (unaffected)
Vendor states this is fixed in 4.19.299 (unaffected)
Vendor states this is fixed in 5.10.201 (unaffected)
Vendor states this is fixed in 5.15.139 (unaffected)
Vendor states this is fixed in 5.4.261 (unaffected)
Vendor states this is fixed in 6.1.63 (unaffected)
Vendor states this is fixed in 6.5.12 (unaffected)
Vendor states this is fixed in 6.6.2 (unaffected)
Vendor states this is fixed in 6.7 (unaffected)

References (8)

Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1871014d6ef4812ad11ef7d838d73ce09d632267
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/20568d06f6069cb835e05eed432edf962645d226
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2f3d9198cdae1cb079ec8652f4defacd481eab2b
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/51c94256a83fe4e17406c66ff3e1ad7d242d8574
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/847599fffa528b2cdec4e21b6bf7586dad982132
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b35fdade92c5058a5e727e233fe263b828de2c9a
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bbc3b8dd2cb7817e703f112d988e4f4728f0f2a9
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bd5b50b329e850d467e7bcc07b2b6bde3752fbda

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-362CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card