CVE-2022-50229
ALSA: bcd2000: Fix a UAF bug on the error path of probing
Check your servers for CVE-2022-50229
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50229 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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().
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b47a22290d581277be70e8a597824a4985d39e83, before a718eba7e458e2f40531be3c6b6a0028ca7fcace affected from b47a22290d581277be70e8a597824a4985d39e83, before 4fc41f7ebb7efca282f1740ea934d16f33c1d109 affected from b47a22290d581277be70e8a597824a4985d39e83, before 5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0 affected from b47a22290d581277be70e8a597824a4985d39e83, before 05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db affected from b47a22290d581277be70e8a597824a4985d39e83, before 348620464a5c127399ac09b266f494f393661952 affected from b47a22290d581277be70e8a597824a4985d39e83, before 64ca7f50ad96c2c65ae390b954925a36eabe04aa affected from b47a22290d581277be70e8a597824a4985d39e83, before 1d6a246cf97c380f2da76591f03019dd9c9599c3 affected from b47a22290d581277be70e8a597824a4985d39e83, before b0d4af0a4763ddc02344789ef2a281c494bc330d affected from b47a22290d581277be70e8a597824a4985d39e83, before ffb2759df7efbc00187bfd9d1072434a13a54139
Other versions: unaffected
|
| Linux |
affected 3.16 unaffected before 3.16 unaffected from 4.9.326 up to and including 4.9.* unaffected from 4.14.291 up to and including 4.14.* unaffected from 4.19.256 up to and including 4.19.* unaffected from 5.4.211 up to and including 5.4.* unaffected from 5.10.137 up to and including 5.10.* unaffected from 5.15.61 up to and including 5.15.* unaffected from 5.18.18 up to and including 5.18.* unaffected from 5.19.2 up to and including 5.19.* unaffected 6.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50229 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50229
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50229
trivy image --scanners vuln IMAGE | grep CVE-2022-50229
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a718eba7e458e2f40531be3c6b6a0028ca7fcace git.kernel.org
- https://git.kernel.org/stable/c/4fc41f7ebb7efca282f1740ea934d16f33c1d109 git.kernel.org
- https://git.kernel.org/stable/c/5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0 git.kernel.org
- https://git.kernel.org/stable/c/05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db git.kernel.org
- https://git.kernel.org/stable/c/348620464a5c127399ac09b266f494f393661952 git.kernel.org
- https://git.kernel.org/stable/c/64ca7f50ad96c2c65ae390b954925a36eabe04aa git.kernel.org
- https://git.kernel.org/stable/c/1d6a246cf97c380f2da76591f03019dd9c9599c3 git.kernel.org
- https://git.kernel.org/stable/c/b0d4af0a4763ddc02344789ef2a281c494bc330d git.kernel.org
- https://git.kernel.org/stable/c/ffb2759df7efbc00187bfd9d1072434a13a54139 git.kernel.org
Source: the record CVE-2022-50229 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse