{"id":"CVE-2022-50229","published":"2025-06-18T11:04:06Z","modified":"2026-05-11T19:15:18Z","title":"ALSA: bcd2000: Fix a UAF bug on the error path of probing","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: bcd2000: Fix a UAF bug on the error path of probing\n\nWhen the driver fails in snd_card_register() at probe time, it will free\nthe 'bcd2k->midi_out_urb' before killing it, which may cause a UAF bug.\n\nThe following log can reveal it:\n\n[   50.727020] BUG: KASAN: use-after-free in bcd2000_input_complete+0x1f1/0x2e0 [snd_bcd2000]\n[   50.727623] Read of size 8 at addr ffff88810fab0e88 by task swapper/4/0\n[   50.729530] Call Trace:\n[   50.732899]  bcd2000_input_complete+0x1f1/0x2e0 [snd_bcd2000]\n\nFix this by adding usb_kill_urb() before usb_free_urb().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00255,"percentile":0.17249,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a718eba7e458e2f40531be3c6b6a0028ca7fcace","tags":[]},{"url":"https://git.kernel.org/stable/c/4fc41f7ebb7efca282f1740ea934d16f33c1d109","tags":[]},{"url":"https://git.kernel.org/stable/c/5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0","tags":[]},{"url":"https://git.kernel.org/stable/c/05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db","tags":[]},{"url":"https://git.kernel.org/stable/c/348620464a5c127399ac09b266f494f393661952","tags":[]},{"url":"https://git.kernel.org/stable/c/64ca7f50ad96c2c65ae390b954925a36eabe04aa","tags":[]},{"url":"https://git.kernel.org/stable/c/1d6a246cf97c380f2da76591f03019dd9c9599c3","tags":[]},{"url":"https://git.kernel.org/stable/c/b0d4af0a4763ddc02344789ef2a281c494bc330d","tags":[]},{"url":"https://git.kernel.org/stable/c/ffb2759df7efbc00187bfd9d1072434a13a54139","tags":[]}],"priority":{"score":3.4,"factors":[{"name":"EPSS percentile","points":3.45}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b47a22290d581277be70e8a597824a4985d39e83, < a718eba7e458e2f40531be3c6b6a0028ca7fcace",">= b47a22290d581277be70e8a597824a4985d39e83, < 4fc41f7ebb7efca282f1740ea934d16f33c1d109",">= b47a22290d581277be70e8a597824a4985d39e83, < 5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0",">= b47a22290d581277be70e8a597824a4985d39e83, < 05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db",">= b47a22290d581277be70e8a597824a4985d39e83, < 348620464a5c127399ac09b266f494f393661952",">= b47a22290d581277be70e8a597824a4985d39e83, < 64ca7f50ad96c2c65ae390b954925a36eabe04aa",">= b47a22290d581277be70e8a597824a4985d39e83, < 1d6a246cf97c380f2da76591f03019dd9c9599c3",">= b47a22290d581277be70e8a597824a4985d39e83, < b0d4af0a4763ddc02344789ef2a281c494bc330d",">= b47a22290d581277be70e8a597824a4985d39e83, < ffb2759df7efbc00187bfd9d1072434a13a54139"]},{"vendor":"Linux","product":"Linux","versions":["3.16"]}],"euvd":{"id":"EUVD-2022-55487","exploited":false,"provenance":"source"}}