CVE-2022-48735: ALSA: hda: Fix UAF of leds class devs at unbinding
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 devmledclassdevregister() 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 setbrightnessdelay 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 hdagenspec.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
ALSA: hda: Fix UAF of leds class devs at unbinding
The Linux kernel CVE team has assigned CVE-2022-48735 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024062001-CVE-2022-48735-32e6@gregkh/T
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.10.99 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.15.22 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.16.8 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.17 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.16.10-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1
Event History
Frequently Asked Questions
What is the severity of CVE-2022-48735?
CVE-2022-48735 has been classified as a moderate severity vulnerability affecting the Linux kernel.
How do I fix CVE-2022-48735?
To fix CVE-2022-48735, update your Linux kernel to a patched version above 5.17-rc2.
Which versions of the Linux kernel are affected by CVE-2022-48735?
CVE-2022-48735 affects versions of the Linux kernel from 5.9 up to 5.17-rc2.
What is the impact of CVE-2022-48735?
The impact of CVE-2022-48735 includes potential use-after-free vulnerabilities in ALSA HD-audio codec drivers.
Is CVE-2022-48735 exploitable remotely?
CVE-2022-48735 does not appear to be remotely exploitable and requires local access for successful exploitation.