Vulnerability · Published May 21, 2024 · Assigned by Linux

CVE-2023-52736ALSA: hda: Do not unset preset when cleaning up codec

Medium 5.5

In plain English

A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.2%top 84.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12linux6.1.15-1DEBIAN-CVE-2023-52736
Debian:13linux6.1.15-1DEBIAN-CVE-2023-52736
Debian:14linux6.1.15-1DEBIAN-CVE-2023-52736
Ubuntu:22.04:LTSlinux5.15.0-72.79UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-aws5.15.0-1036.40UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-azure5.15.0-1038.45UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1038.45.1UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-gcp5.15.0-1034.42UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-gke5.15.0-1033.38UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1020.25UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-ibm5.15.0-1030.33UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1030.35UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-kvm5.15.0-1033.38UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-72.79UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1025.25UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-oracle5.15.0-1035.41UBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-raspi5.15.0-1029.31UBUNTU-CVE-2023-52736
Ubuntu:24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2023-52736
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2023-52736

Affected products (as reported)

VendorProductVersions
Linux Linux 9a6246ff78ac33af78f82704cde6fec361597eea – before 7fc4e7191eae9d9325511e03deadfdb2224914f89a6246ff78ac33af78f82704cde6fec361597eea – before e909f5f2aa55a8f9aa6919cce08015cb0e8d46689a6246ff78ac33af78f82704cde6fec361597eea – before 427ca2530da8dc61a42620d7113b05e187b6c2c09a6246ff78ac33af78f82704cde6fec361597eea – before 87978e6ad45a16835cc58234451111091be3c59a
Linux Linux 4.1

References