CVE-2023-52736

Source
https://cve.org/CVERecord?id=CVE-2023-52736
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52736.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52736
Downstream
Related
Published
2024-05-21T15:23:00.572Z
Modified
2026-04-11T12:46:35.432360Z
Summary
ALSA: hda: Do not unset preset when cleaning up codec
Details

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 hdacodecdriverprobe/remove() found in sound/pci/hda/hdabind.c with their component->probe/remove() instead.

One of the reasons for that is the expectation of sndhdacodecdevicenew() 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 sndhdacodeccleanupfor_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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52736.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2023-52736.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.1.0
Fixed
5.10.169
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.95
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.13

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52736.json"