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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-21T15:23:00.572Z
- Modified: 2026-06-17T06:43:27.623Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9a6246ff78ac33af78f82704cde6fec361597eea before 7fc4e7191eae9d9325511e03deadfdb2224914f8; from 9a6246ff78ac33af78f82704cde6fec361597eea before e909f5f2aa55a8f9aa6919cce08015cb0e8d4668; from 9a6246ff78ac33af78f82704cde6fec361597eea before 427ca2530da8dc61a42620d7113b05e187b6c2c0; from 9a6246ff78ac33af78f82704cde6fec361597eea before 87978e6ad45a16835cc58234451111091be3c59a; 4.1 (not affected: before 4.1; from 5.10.169 up to 5.10.*; from 5.15.95 up to 5.15.*; from 6.1.13 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: before 5.10.169; from 5.11 before 5.15.95; from 5.16 before 6.1.13; 6.2

## References

- <https://git.kernel.org/stable/c/7fc4e7191eae9d9325511e03deadfdb2224914f8> (patch)
- <https://git.kernel.org/stable/c/e909f5f2aa55a8f9aa6919cce08015cb0e8d4668> (patch)
- <https://git.kernel.org/stable/c/427ca2530da8dc61a42620d7113b05e187b6c2c0> (patch)
- <https://git.kernel.org/stable/c/87978e6ad45a16835cc58234451111091be3c59a> (patch)

## Sources

- CVE List: [CVE-2023-52736](https://www.cve.org/CVERecord?id=CVE-2023-52736), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52736](https://nvd.nist.gov/vuln/detail/CVE-2023-52736), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52736 · Whole record: https://cve.day/CVE-2023-52736.json · Rebuilt by cve.day 2026-11-25T22:58:33.991Z
