{"id":"CVE-2023-52736","published":"2024-05-21T15:23:00Z","modified":"2026-05-11T19:32:12Z","title":"ALSA: hda: Do not unset preset when cleaning up codec","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->probe/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 ->preset in\nsnd_hda_codec_cleanup_for_unbind() interferes with module unload -> 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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0024,"percentile":0.15356,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/7fc4e7191eae9d9325511e03deadfdb2224914f8","tags":[]},{"url":"https://git.kernel.org/stable/c/e909f5f2aa55a8f9aa6919cce08015cb0e8d4668","tags":[]},{"url":"https://git.kernel.org/stable/c/427ca2530da8dc61a42620d7113b05e187b6c2c0","tags":[]},{"url":"https://git.kernel.org/stable/c/87978e6ad45a16835cc58234451111091be3c59a","tags":[]}],"priority":{"score":3.1,"factors":[{"name":"EPSS percentile","points":3.07}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 9a6246ff78ac33af78f82704cde6fec361597eea, < 7fc4e7191eae9d9325511e03deadfdb2224914f8",">= 9a6246ff78ac33af78f82704cde6fec361597eea, < e909f5f2aa55a8f9aa6919cce08015cb0e8d4668",">= 9a6246ff78ac33af78f82704cde6fec361597eea, < 427ca2530da8dc61a42620d7113b05e187b6c2c0",">= 9a6246ff78ac33af78f82704cde6fec361597eea, < 87978e6ad45a16835cc58234451111091be3c59a"]},{"vendor":"Linux","product":"Linux","versions":["4.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-17T17:37:05.495763Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-59455","exploited":false,"provenance":"source"}}