CVE-2024-35904

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-35904
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35904.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35904
Downstream
Related
Published
2024-05-19T08:34:57.351Z
Modified
2025-11-27T19:35:13.430309Z
Summary
selinux: avoid dereference of garbage after mount failure
Details

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

selinux: avoid dereference of garbage after mount failure

In case kern_mount() fails and returns an error pointer return in the error branch instead of continuing and dereferencing the error pointer.

While on it drop the never read static variable selinuxfs_mount.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/ee626f5d79d5817bb21d6f048dc0da4c4e383443/cves/2024/35xxx/CVE-2024-35904.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
0619f0f5e36f12e100ef294f5980cfe7c93ff23e
Fixed
477ed6789eb9f3f4d3568bb977f90c863c12724e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0619f0f5e36f12e100ef294f5980cfe7c93ff23e
Fixed
68784a5d01b8868ff85a7926676b6729715fff3c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0619f0f5e36f12e100ef294f5980cfe7c93ff23e
Fixed
37801a36b4d68892ce807264f784d818f8d0d39b

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.17.0
Fixed
6.6.26
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.5