8.8
CWE
476
Advisory Published
CVE Published
Updated

CVE-2024-38605: ALSA: core: Fix NULL module pointer assignment at card init

First published: Wed Jun 19 2024(Updated: )

In the Linux kernel, the following vulnerability has been resolved: ALSA: core: Fix NULL module pointer assignment at card init The commit 81033c6b584b ("ALSA: core: Warn on empty module") introduced a WARN_ON() for a NULL module pointer passed at snd_card object creation, and it also wraps the code around it with '#ifdef MODULE'. This works in most cases, but the devils are always in details. "MODULE" is defined when the target code (i.e. the sound core) is built as a module; but this doesn't mean that the caller is also built-in or not. Namely, when only the sound core is built-in (CONFIG_SND=y) while the driver is a module (CONFIG_SND_USB_AUDIO=m), the passed module pointer is ignored even if it's non-NULL, and card->module remains as NULL. This would result in the missing module reference up/down at the device open/close, leading to a race with the code execution after the module removal. For addressing the bug, move the assignment of card->module again out of ifdef. The WARN_ON() is still wrapped with ifdef because the module can be really NULL when all sound drivers are built-in. Note that we keep 'ifdef MODULE' for WARN_ON(), otherwise it would lead to a false-positive NULL module check. Admittedly it won't catch perfectly, i.e. no check is performed when CONFIG_SND=y. But, it's no real problem as it's only for debugging, and the condition is pretty rare.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
redhat/kernel<5.10.219
5.10.219
redhat/kernel<5.15.161
5.15.161
redhat/kernel<6.1.93
6.1.93
redhat/kernel<6.6.33
6.6.33
redhat/kernel<6.8.12
6.8.12
redhat/kernel<6.9.3
6.9.3
redhat/kernel<6.10
6.10
Linux Kernel>=5.9<5.10.219
Linux Kernel>=5.11<5.15.161
Linux Kernel>=5.16<6.1.93
Linux Kernel>=6.2<6.6.33
Linux Kernel>=6.7<6.8.12
Linux Kernel>=6.9<6.9.3
debian/linux
5.10.223-1
5.10.234-1
6.1.129-1
6.1.135-1
6.12.22-1
6.12.25-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-38605?

    CVE-2024-38605 has a medium severity rating due to its impact on the ALSA subsystem in the Linux kernel.

  • How do I fix CVE-2024-38605?

    To fix CVE-2024-38605, you should upgrade your kernel to the recommended versions, including 5.10.219 or later, 5.15.161 or later, and respective versions for 6.x series as specified.

  • What systems are affected by CVE-2024-38605?

    CVE-2024-38605 affects various versions of the Linux kernel in both Red Hat and Debian distributions.

  • What are the recommended kernel versions for CVE-2024-38605?

    Recommended kernel versions to resolve CVE-2024-38605 include 5.10.219, 5.15.161, 6.1.93, 6.6.33, 6.8.12, 6.9.3, and 6.10.

  • Does CVE-2024-38605 affect user applications?

    CVE-2024-38605 primarily impacts the ALSA subsystem, which may affect audio-related applications but does not directly compromise user applications.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203