CVE-2024-35904

Source
https://cve.org/CVERecord?id=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
2026-05-28T03:53:32.556929873Z
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
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35904.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
0619f0f5e36f12e100ef294f5980cfe7c93ff23e
Fixed
477ed6789eb9f3f4d3568bb977f90c863c12724e
Fixed
68784a5d01b8868ff85a7926676b6729715fff3c
Fixed
37801a36b4d68892ce807264f784d818f8d0d39b

Database specific

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

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

Database specific

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