CVE-2024-39491

Source
https://cve.org/CVERecord?id=CVE-2024-39491
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39491.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-39491
Downstream
Related
Published
2024-07-10T07:14:10Z
Modified
2026-08-12T03:51:48Z
Summary
ALSA: hda: cs35l56: Fix lifetime of cs_dsp instance
Details

In the Linux kernel, the following vulnerability has been resolved:

ALSA: hda: cs35l56: Fix lifetime of cs_dsp instance

The cs_dsp instance is initialized in the driver probe() so it should be freed in the driver remove(). Also fix a missing call to cs_dsp_remove() in the error path of cs35l56_hda_common_probe().

The call to cs_dsp_remove() was being done in the component unbind callback cs35l56_hda_unbind(). This meant that if the driver was unbound and then re-bound it would be using an uninitialized cs_dsp instance.

It is best to initialize the cs_dsp instance in probe() so that it can return an error if it fails. The component binding API doesn't have any error handling so there's no way to handle a failure if cs_dsp was initialized in the bind.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39491.json"
}
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
73cfbfa9caea8eda54b4c6e49a9555533660aa1e
Fixed
9054c474f9c219e58a441e401c0e6e38fe713ff1
Fixed
60d5e087e5f334475b032ad7e6ad849fb998f303
Fixed
d344873c4cbde249b7152d36a273bcc45864001e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39491.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.33
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.9.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39491.json"