CVE-2024-40964 ALSA: hda: cs35l41: Possible null pointer dereference in cs35l41_hda_unbind()

Medium 5.5 Published Updated

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.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-40964, DEBIAN-CVE-2024-40964, GHSA-fm8x-479m-f33c, UBUNTU-CVE-2024-40964.

Is CVE-2024-40964 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free