{"id":"CVE-2022-50229","aliases":["CVE-2022-50229"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: bcd2000: Fix a UAF bug on the error path of probing","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ALSA: bcd2000: corrige un error de UAF en la ruta de error del sondeo Cuando el controlador falla en snd_card_register() en el momento del sondeo, liberará 'bcd2k-&gt;midi_out_urb' antes de matarlo, lo que puede causar un error de UAF. El siguiente registro puede revelarlo: [ 50.727020] ERROR: KASAN: uso después de la liberación en bcd2000_input_complete+0x1f1/0x2e0 [snd_bcd2000] [ 50.727623] Lectura de tamaño 8 en la dirección ffff88810fab0e88 por el intercambiador de tareas/4/0 [ 50.729530] Seguimiento de llamadas: [ 50.732899] bcd2000_input_complete+0x1f1/0x2e0 [snd_bcd2000] Solucione esto agregando usb_kill_urb() antes de usb_free_urb().","source":"nvd"}],"published":"2025-06-18T11:04:06.069Z","modified":"2026-06-17T05:23:01.610Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"b47a22290d581277be70e8a597824a4985d39e83","fixed":"a718eba7e458e2f40531be3c6b6a0028ca7fcace","status":"affected"},{"type":"git","introduced":"b47a22290d581277be70e8a597824a4985d39e83","fixed":"4fc41f7ebb7efca282f1740ea934d16f33c1d109","status":"affected"},{"type":"git","introduced":"b47a22290d581277be70e8a597824a4985d39e83","fixed":"5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0","status":"affected"},{"type":"git","introduced":"b47a22290d581277be70e8a597824a4985d39e83","fixed":"05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db","status":"affected"},{"type":"git","introduced":"b47a22290d581277be70e8a597824a4985d39e83","fixed":"348620464a5c127399ac09b266f494f393661952","status":"affected"},{"type":"git","introduced":"b47a22290d581277be70e8a597824a4985d39e83","fixed":"64ca7f50ad96c2c65ae390b954925a36eabe04aa","status":"affected"},{"type":"git","introduced":"b47a22290d581277be70e8a597824a4985d39e83","fixed":"1d6a246cf97c380f2da76591f03019dd9c9599c3","status":"affected"},{"type":"git","introduced":"b47a22290d581277be70e8a597824a4985d39e83","fixed":"b0d4af0a4763ddc02344789ef2a281c494bc330d","status":"affected"},{"type":"git","introduced":"b47a22290d581277be70e8a597824a4985d39e83","fixed":"ffb2759df7efbc00187bfd9d1072434a13a54139","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.16","status":"unaffected"},{"type":"semver","introduced":"4.9.326","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.291","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.256","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.211","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.137","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.61","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.18.18","lastAffected":"5.18.*","status":"unaffected"},{"type":"semver","introduced":"5.19.2","lastAffected":"5.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.16","fixed":"4.9.326"},{"status":"affected","introduced":"4.10","fixed":"4.14.291"},{"status":"affected","introduced":"4.15","fixed":"4.19.256"},{"status":"affected","introduced":"4.20","fixed":"5.4.211"},{"status":"affected","introduced":"5.5","fixed":"5.10.137"},{"status":"affected","introduced":"5.11","fixed":"5.15.61"},{"status":"affected","introduced":"5.16","fixed":"5.18.18"},{"status":"affected","introduced":"5.19","fixed":"5.19.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a718eba7e458e2f40531be3c6b6a0028ca7fcace","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4fc41f7ebb7efca282f1740ea934d16f33c1d109","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/348620464a5c127399ac09b266f494f393661952","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64ca7f50ad96c2c65ae390b954925a36eabe04aa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d6a246cf97c380f2da76591f03019dd9c9599c3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0d4af0a4763ddc02344789ef2a281c494bc330d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ffb2759df7efbc00187bfd9d1072434a13a54139","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50229","url":"https://www.cve.org/CVERecord?id=CVE-2022-50229","licence":"CVE Terms of Use","modified":"2026-05-11T19:15:18.488Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50229","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50229","licence":"Public domain","modified":"2026-06-17T05:23:01.610Z"}],"updatedAt":"2026-11-25T22:58:21.115Z","epss":{"score":0.00255,"percentile":0.18258,"date":"2026-12-01T12:00:22.000Z"}}