CVE-2024-35904

Source
https://cve.org/CVERecord?id=CVE-2024-35904
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35904.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-35904
Downstream
Related
Published
2024-05-19T08:34:57.351Z
Modified
2026-03-23T05:01:11.288437637Z
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
477ed6789eb9f3f4d3568bb977f90c863c12724e
Fixed
68784a5d01b8868ff85a7926676b6729715fff3c
Fixed
37801a36b4d68892ce807264f784d818f8d0d39b

Database specific

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