CVE-2022-50229

ALSA: bcd2000: Fix a UAF bug on the error path of probing

HIGH
7.8
CVSS Score
Published: June 18, 2025 at 11:04 AM UTC
Updated: June 17, 2026 at 05:23 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.8
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: bcd2000: Fix a UAF bug on the error path of probing When the driver fails in snd_card_register() at probe time, it will free the 'bcd2k->midi_out_urb' before killing it, which may cause a UAF bug. The following log can reveal it: [ 50.727020] BUG: KASAN: use-after-free in bcd2000_input_complete+0x1f1/0x2e0 [snd_bcd2000] [ 50.727623] Read of size 8 at addr ffff88810fab0e88 by task swapper/4/0 [ 50.729530] Call Trace: [ 50.732899] bcd2000_input_complete+0x1f1/0x2e0 [snd_bcd2000] Fix this by adding usb_kill_urb() before usb_free_urb().

Affected

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

3.16 ≤ v < 4.14.2913.16 ≤ v < 4.19.2563.16 ≤ v < 4.9.3263.16 ≤ v < 5.10.1373.16 ≤ v < 5.15.613.16 ≤ v < 5.18.183.16 ≤ v < 5.19.23.16 ≤ v < 5.4.2113.16 ≤ v < 6.04.10 ≤ v < 4.14.2914.15 ≤ v < 4.19.2564.20 ≤ v < 5.4.2115.11 ≤ v < 5.15.615.16 ≤ v < 5.18.185.19 ≤ v < 5.19.25.5 ≤ v < 5.10.1373.16b47a22290d581277be70e8a597824a4985d39e83
Vendor states this is fixed in 05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db (fixed)
Vendor states this is fixed in 1d6a246cf97c380f2da76591f03019dd9c9599c3 (fixed)
Vendor states this is fixed in 348620464a5c127399ac09b266f494f393661952 (fixed)
Vendor states this is fixed in 4fc41f7ebb7efca282f1740ea934d16f33c1d109 (fixed)
Vendor states this is fixed in 5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0 (fixed)
Vendor states this is fixed in 64ca7f50ad96c2c65ae390b954925a36eabe04aa (fixed)
Vendor states this is fixed in a718eba7e458e2f40531be3c6b6a0028ca7fcace (fixed)
Vendor states this is fixed in b0d4af0a4763ddc02344789ef2a281c494bc330d (fixed)
Vendor states this is fixed in ffb2759df7efbc00187bfd9d1072434a13a54139 (fixed)
Vendor states this is fixed in 3.16 (unaffected)
Vendor states this is fixed in 4.14.291 (unaffected)
Vendor states this is fixed in 4.19.256 (unaffected)
Vendor states this is fixed in 4.9.326 (unaffected)
Vendor states this is fixed in 5.10.137 (unaffected)
Vendor states this is fixed in 5.15.61 (unaffected)
Vendor states this is fixed in 5.18.18 (unaffected)
Vendor states this is fixed in 5.19.2 (unaffected)
Vendor states this is fixed in 5.4.211 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1d6a246cf97c380f2da76591f03019dd9c9599c3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/348620464a5c127399ac09b266f494f393661952
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4fc41f7ebb7efca282f1740ea934d16f33c1d109
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/64ca7f50ad96c2c65ae390b954925a36eabe04aa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a718eba7e458e2f40531be3c6b6a0028ca7fcace
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b0d4af0a4763ddc02344789ef2a281c494bc330d

CVSS

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

Quick Info

StatusANALYZED
CWE
CWE-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