{"id":"CVE-2023-52736","summary":"ALSA: hda: Do not unset preset when cleaning up codec","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda: Do not unset preset when cleaning up codec\n\nSeveral functions that take part in codec's initialization and removal\nare re-used by ASoC codec drivers implementations. Drivers mimic the\nbehavior of hda_codec_driver_probe/remove() found in\nsound/pci/hda/hda_bind.c with their component-\u003eprobe/remove() instead.\n\nOne of the reasons for that is the expectation of\nsnd_hda_codec_device_new() to receive a valid pointer to an instance of\nstruct snd_card. This expectation can be met only once sound card\ncomponents probing commences.\n\nAs ASoC sound card may be unbound without codec device being actually\nremoved from the system, unsetting -\u003epreset in\nsnd_hda_codec_cleanup_for_unbind() interferes with module unload -\u003e load\nscenario causing null-ptr-deref. Preset is assigned only once, during\ndevice/driver matching whereas ASoC codec driver's module reloading may\noccur several times throughout the lifetime of an audio stack.","modified":"2026-04-02T09:43:15.376413Z","published":"2024-05-21T15:23:00.572Z","related":["SUSE-SU-2024:2008-1","SUSE-SU-2024:2011-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2189-1","SUSE-SU-2024:2190-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52736.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/427ca2530da8dc61a42620d7113b05e187b6c2c0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7fc4e7191eae9d9325511e03deadfdb2224914f8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/87978e6ad45a16835cc58234451111091be3c59a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e909f5f2aa55a8f9aa6919cce08015cb0e8d4668"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52736.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52736"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9a6246ff78ac33af78f82704cde6fec361597eea"},{"fixed":"7fc4e7191eae9d9325511e03deadfdb2224914f8"},{"fixed":"e909f5f2aa55a8f9aa6919cce08015cb0e8d4668"},{"fixed":"427ca2530da8dc61a42620d7113b05e187b6c2c0"},{"fixed":"87978e6ad45a16835cc58234451111091be3c59a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52736.json"}}],"schema_version":"1.7.5"}