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
AZL (1)
BELL (1)
DEBIAN (1)
ECHO (1)
OESA (3)
RHSA (1)
ROOT (2)
SUSE (12)
UBUNTU (1)
Related
Published
2024-05-19T08:34:57Z
Modified
2026-11-01T02:35:04Z
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/tree/main/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
563e631a18c5b2bbab674a58154bcf41a6d90f13
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.1.191
Type
ECOSYSTEM
Events
Introduced
6.2.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"