CVE-2024-50160 ALSA: hda/cs8409: Fix possible NULL dereference

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel's ALSA HDA driver can cause a system crash if memory allocation fails during control creation.

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-50160?

CVE-2024-50160 is a medium-severity vulnerability in Linux kernel, published on 7 Nov 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/cs8409: Fix possible NULL dereference

If snd_hda_gen_add_kctl fails to allocate memory and returns NULL, then NULL pointer dereference will occur in the next line.

Since dolphin_fixups function is a hda_fixup function which is not supposed to return any errors, add simple check before dereference, ignore the fail.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Weakness: CWE-476

Which versions are affected by CVE-2024-50160?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50160?

Apply the vendor's patch.

Is CVE-2024-50160 being exploited?

There is no known exploitation of CVE-2024-50160 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-52956, AZL-52975, BELL-CVE-2024-50160, DEBIAN-CVE-2024-50160, GHSA-crxp-pw8g-fqxp, UBUNTU-CVE-2024-50160.

Is CVE-2024-50160 in your software?

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

Check your SBOMs for free