CVE-2022-48735 ALSA: hda: Fix UAF of leds class devs at unbinding

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel ALSA HDA driver allows attackers to cause a denial of service or potentially execute code 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-2022-48735?

CVE-2022-48735 is a high-severity use after free vulnerability in Linux kernel, published on 20 Jun 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: Fix UAF of leds class devs at unbinding

The LED class devices that are created by HD-audio codec drivers are registered via devm_led_classdev_register() and associated with the HD-audio codec device. Unfortunately, it turned out that the devres release doesn't work for this case; namely, since the codec resource release happens before the devm call chain, it triggers a NULL dereference or a UAF for a stale set_brightness_delay callback.

For fixing the bug, this patch changes the LED class device register and unregister in a manual manner without devres, keeping the instances in hda_gen_spec.

Weakness: CWE-476, CWE-416

Which versions are affected by CVE-2022-48735?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-48735?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-48735 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-48735, GHSA-cq4f-h5g8-8r5h, UBUNTU-CVE-2022-48735.

Is CVE-2022-48735 in your software?

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

Check your SBOMs for free