# CVE-2022-50229: ALSA: bcd2000: Fix a UAF bug on the error path of probing

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-06-18T11:04:06.069Z
- Modified: 2026-06-17T05:23:01.610Z
- Weaknesses: CWE-416
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from b47a22290d581277be70e8a597824a4985d39e83 before a718eba7e458e2f40531be3c6b6a0028ca7fcace; from b47a22290d581277be70e8a597824a4985d39e83 before 4fc41f7ebb7efca282f1740ea934d16f33c1d109; from b47a22290d581277be70e8a597824a4985d39e83 before 5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0; from b47a22290d581277be70e8a597824a4985d39e83 before 05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db; from b47a22290d581277be70e8a597824a4985d39e83 before 348620464a5c127399ac09b266f494f393661952; from b47a22290d581277be70e8a597824a4985d39e83 before 64ca7f50ad96c2c65ae390b954925a36eabe04aa; from b47a22290d581277be70e8a597824a4985d39e83 before 1d6a246cf97c380f2da76591f03019dd9c9599c3; from b47a22290d581277be70e8a597824a4985d39e83 before b0d4af0a4763ddc02344789ef2a281c494bc330d; from b47a22290d581277be70e8a597824a4985d39e83 before ffb2759df7efbc00187bfd9d1072434a13a54139; 3.16 (not affected: before 3.16; from 4.9.326 up to 4.9.*; from 4.14.291 up to 4.14.*; from 4.19.256 up to 4.19.*; from 5.4.211 up to 5.4.*; from 5.10.137 up to 5.10.*; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 3.16 before 4.9.326; from 4.10 before 4.14.291; from 4.15 before 4.19.256; from 4.20 before 5.4.211; from 5.5 before 5.10.137; from 5.11 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/a718eba7e458e2f40531be3c6b6a0028ca7fcace> (patch)
- <https://git.kernel.org/stable/c/4fc41f7ebb7efca282f1740ea934d16f33c1d109> (patch)
- <https://git.kernel.org/stable/c/5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0> (patch)
- <https://git.kernel.org/stable/c/05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db> (patch)
- <https://git.kernel.org/stable/c/348620464a5c127399ac09b266f494f393661952> (patch)
- <https://git.kernel.org/stable/c/64ca7f50ad96c2c65ae390b954925a36eabe04aa> (patch)
- <https://git.kernel.org/stable/c/1d6a246cf97c380f2da76591f03019dd9c9599c3> (patch)
- <https://git.kernel.org/stable/c/b0d4af0a4763ddc02344789ef2a281c494bc330d> (patch)
- <https://git.kernel.org/stable/c/ffb2759df7efbc00187bfd9d1072434a13a54139> (patch)

## Sources

- CVE List: [CVE-2022-50229](https://www.cve.org/CVERecord?id=CVE-2022-50229), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50229](https://nvd.nist.gov/vuln/detail/CVE-2022-50229), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50229 · Whole record: https://cve.day/CVE-2022-50229.json · Rebuilt by cve.day 2026-11-25T22:58:21.115Z
