ALSA: bcd2000: Fix a UAF bug on the error path of probing
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().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.291, 4.19.256, 4.9.326, 5.10.137, 5.15.61, 5.18.18, 5.19.2, 5.4.211
- CVEs
- CVE-2022-50229
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 17:56 UTC · Revision 1
Source evidence
ALSA: bcd2000: Fix a UAF bug on the error path of probing
core-osv · Original sourcePublished 18 Jun 2025, 11:04 UTC
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().
osv:CVE-2022-50229
Kernel
Fixed versions: 4.9.326, 4.14.291, 4.19.256, 5.4.211, 5.10.137, 5.15.61, 5.18.18, 5.19.2
Complete source record
{
"id": "9d1cfb7879d78ee7601a4fd1508301b02fec2a9c8036024fb6457de920a87e1f",
"url": "https://osv.dev/vulnerability/CVE-2022-50229",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALSA: bcd2000: Fix a UAF bug on the error path of probing",
"summary": "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().",
"evidence": "osv:CVE-2022-50229",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.9.326",
"evidence": "/affected/1/ranges"
},
{
"value": "4.14.291",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.256",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.211",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.137",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.61",
"evidence": "/affected/1/ranges"
},
{
"value": "5.18.18",
"evidence": "/affected/1/ranges"
},
{
"value": "5.19.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50229",
"aliases": [
"CVE-2022-50229"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b47a22290d581277be70e8a597824a4985d39e83"
},
{
"fixed": "a718eba7e458e2f40531be3c6b6a0028ca7fcace"
},
{
"fixed": "4fc41f7ebb7efca282f1740ea934d16f33c1d109"
},
{
"fixed": "5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0"
},
{
"fixed": "05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db"
},
{
"fixed": "348620464a5c127399ac09b266f494f393661952"
},
{
"fixed": "64ca7f50ad96c2c65ae390b954925a36eabe04aa"
},
{
"fixed": "1d6a246cf97c380f2da76591f03019dd9c9599c3"
},
{
"fixed": "b0d4af0a4763ddc02344789ef2a281c494bc330d"
},
{
"fixed": "ffb2759df7efbc00187bfd9d1072434a13a54139"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50229.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.16.0"
},
{
"fixed": "4.9.326"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.10.0"
},
{
"fixed": "4.14.291"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.256"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.211"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.137"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.61"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.18.18"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.19.0"
},
{
"fixed": "5.19.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50229.json"
}
}
],
"modified": "2026-10-28T02:30:38.341661026Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db",
"https://git.kernel.org/stable/c/1d6a246cf97c380f2da76591f03019dd9c9599c3",
"https://git.kernel.org/stable/c/348620464a5c127399ac09b266f494f393661952",
"https://git.kernel.org/stable/c/4fc41f7ebb7efca282f1740ea934d16f33c1d109",
"https://git.kernel.org/stable/c/5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0",
"https://git.kernel.org/stable/c/64ca7f50ad96c2c65ae390b954925a36eabe04aa",
"https://git.kernel.org/stable/c/a718eba7e458e2f40531be3c6b6a0028ca7fcace",
"https://git.kernel.org/stable/c/b0d4af0a4763ddc02344789ef2a281c494bc330d",
"https://git.kernel.org/stable/c/ffb2759df7efbc00187bfd9d1072434a13a54139",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50229.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50229",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50229.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50229",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 505528,
"published_at": "2025-06-18T11:04:06.069+00:00"
}