CVE-2024-40964 ALSA: hda: cs35l41: Possible null pointer dereference in cs35l41_hda_unbind()
A null pointer dereference in the Linux kernel's CS35L41 audio driver can cause a system crash during device unbinding.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-40964?
CVE-2024-40964 is a medium-severity vulnerability in Linux kernel, published on 12 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ALSA: hda: cs35l41: Possible null pointer dereference in cs35l41_hda_unbind()
The cs35l41_hda_unbind() function clears the hda_component entry matching it's index and then dereferences the codec pointer held in the first element of the hda_component array, this is an issue when the device index was 0.
Instead use the codec pointer stashed in the cs35l41_hda structure as it will still be valid.
Weakness: CWE-476
Which versions are affected by CVE-2024-40964?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-40964?
Apply the vendor's patch.
Is CVE-2024-40964 being exploited?
There is no known exploitation of CVE-2024-40964 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-40964, DEBIAN-CVE-2024-40964, GHSA-fm8x-479m-f33c, UBUNTU-CVE-2024-40964.