CVE-2023-52736

ALSA: hda: Do not unset preset when cleaning up codec

MEDIUM
5.5
CVSS Score
Published: May 21, 2024 at 03:23 PM UTC
Updated: June 17, 2026 at 06:43 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
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: hda: Do not unset preset when cleaning up codec Several functions that take part in codec's initialization and removal are re-used by ASoC codec drivers implementations. Drivers mimic the behavior of hda_codec_driver_probe/remove() found in sound/pci/hda/hda_bind.c with their component->probe/remove() instead. One of the reasons for that is the expectation of snd_hda_codec_device_new() to receive a valid pointer to an instance of struct snd_card. This expectation can be met only once sound card components probing commences. As ASoC sound card may be unbound without codec device being actually removed from the system, unsetting ->preset in snd_hda_codec_cleanup_for_unbind() interferes with module unload -> load scenario causing null-ptr-deref. Preset is assigned only once, during device/driver matching whereas ASoC codec driver's module reloading may occur several times throughout the lifetime of an audio stack.

Affected

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

v < 5.10.1694.1 ≤ v < 5.10.1694.1 ≤ v < 5.15.954.1 ≤ v < 6.1.134.1 ≤ v < 6.25.11 ≤ v < 5.15.955.16 ≤ v < 6.1.134.16.2 rc16.2 rc26.2 rc36.2 rc46.2 rc56.2 rc69a6246ff78ac33af78f82704cde6fec361597eea
Vendor states this is fixed in 427ca2530da8dc61a42620d7113b05e187b6c2c0 (fixed)
Vendor states this is fixed in 7fc4e7191eae9d9325511e03deadfdb2224914f8 (fixed)
Vendor states this is fixed in 87978e6ad45a16835cc58234451111091be3c59a (fixed)
Vendor states this is fixed in e909f5f2aa55a8f9aa6919cce08015cb0e8d4668 (fixed)
Vendor states this is fixed in 4.1 (unaffected)
Vendor states this is fixed in 5.10.169 (unaffected)
Vendor states this is fixed in 5.15.95 (unaffected)
Vendor states this is fixed in 6.1.13 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/427ca2530da8dc61a42620d7113b05e187b6c2c0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7fc4e7191eae9d9325511e03deadfdb2224914f8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/87978e6ad45a16835cc58234451111091be3c59a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e909f5f2aa55a8f9aa6919cce08015cb0e8d4668

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

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

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-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