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

Published Jun 18, 2025
·
Updated

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 sndcardregister() at probe time, it will free the 'bcd2k->midiouturb' before killing it, which may cause a UAF bug.

The following log can reveal it:

[ 50.727020] BUG: KASAN: use-after-free in bcd2000inputcomplete+0x1f1/0x2e0 [sndbcd2000] [ 50.727623] Read of size 8 at addr ffff88810fab0e88 by task swapper/4/0 [ 50.729530] Call Trace: [ 50.732899] bcd2000inputcomplete+0x1f1/0x2e0 [sndbcd2000]

Fix this by adding usbkillurb() before usbfreeurb().

Affected Software

9 affected components
Linux Kernel
Linux Linux kernel>=3.16<4.9.326
Linux Linux kernel>=4.10<4.14.291
Linux Linux kernel>=4.15<4.19.256
Linux Linux kernel>=4.20<5.4.211
Linux Linux kernel>=5.5<5.10.137
Linux Linux kernel>=5.11<5.15.61
Linux Linux kernel>=5.16<5.18.18
Linux Linux kernel>=5.19<5.19.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Fix the UAF on the error path of probing in bcd2000 by adding usb_kill_urb() before usb_free_urb() for 'bcd2k->midi_out_urb' during the failure path of snd_card_register() at probe time.

    Linux kernel driver: snd_bcd2000 (bcd2000) probe-time URB free order = Call usb_kill_urb() before usb_free_urb()

Event History

Jun 18, 2025
CVE Published
via MITRE·11:04 AM
Data Sourced
via MITRE·11:04 AM
Description
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·12:03 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50229?

CVE-2022-50229 is categorized with a medium severity level due to the potential for a Use-After-Free (UAF) vulnerability affecting the ALSA bcd2000 driver.

2

How do I fix CVE-2022-50229?

To fix CVE-2022-50229, ensure that you update your Linux kernel to the latest version that includes the patch for this vulnerability.

3

What systems are affected by CVE-2022-50229?

CVE-2022-50229 affects specific versions of the Linux kernel that use the ALSA bcd2000 driver.

4

What type of vulnerability is CVE-2022-50229?

CVE-2022-50229 is a Use-After-Free (UAF) vulnerability that can occur during the error handling process in the ALSA bcd2000 driver.

5

When was CVE-2022-50229 disclosed?

CVE-2022-50229 was disclosed in 2022, following the identification of the UAF issue in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203