CVE-2022-48735

ALSA: hda: Fix UAF of leds class devs at unbinding

HIGH
7.8
CVSS Score
Published: June 20, 2024 at 11:13 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.225.16 ≤ v < 5.16.85.9 ≤ v < 5.10.995.9 ≤ v < 5.15.225.9 ≤ v < 5.16.85.9 ≤ v < 5.1715509b6344726de22bdbfff88b65341dd0dd33af5.17 rc15.17 rc2
Vendor states this is fixed in 0e629052f013eeb61494d4df2f1f647c2a9aef47 (fixed)
Vendor states this is fixed in 549f8ffc7b2f7561bea7f90930b6c5104318e87b (fixed)
Vendor states this is fixed in 813e9f3e06d22e29872d4fd51b54992d89cf66c8 (fixed)
Vendor states this is fixed in a7de1002135cf94367748ffc695a29812d7633b5 (fixed)
Vendor states this is fixed in 5.10.99 (unaffected)
Vendor states this is fixed in 5.15.22 (unaffected)
Vendor states this is fixed in 5.16.8 (unaffected)
Vendor states this is fixed in 5.17 (unaffected)
Vendor states this is fixed in 5.9 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0e629052f013eeb61494d4df2f1f647c2a9aef47
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/549f8ffc7b2f7561bea7f90930b6c5104318e87b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/813e9f3e06d22e29872d4fd51b54992d89cf66c8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a7de1002135cf94367748ffc695a29812d7633b5

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card