What’s Vulnerable › Vulnerabilities
CVE-2024-35904: selinux: avoid dereference of garbage after mount failure
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-19 · updated 2026-10-30
- Weakness: CWE-476
Description
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.
Affected products
- Linux kernel: from 4.17 before 6.6.26; from 6.7 before 6.8.5; 6.9-rc1, 6.9-rc2 — fixed in 6.6.26, 6.8.5
- Linux: 4.17 — fixed in 6.9
How to fix
Upgrade to a fixed version: Linux kernel 6.6.26, 6.8.5; Linux 6.9. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/37801a36b4d68892ce807264f784d818f8d0d39b
- https://git.kernel.org/stable/c/477ed6789eb9f3f4d3568bb977f90c863c12724e
- https://git.kernel.org/stable/c/563e631a18c5b2bbab674a58154bcf41a6d90f13
- https://git.kernel.org/stable/c/68784a5d01b8868ff85a7926676b6729715fff3c
- http://www.openwall.com/lists/oss-security/2024/05/30/1
- http://www.openwall.com/lists/oss-security/2024/05/30/2
- https://git.kernel.org/stable/c/37801a36b4d68892ce807264f784d818f8d0d39b
- https://git.kernel.org/stable/c/477ed6789eb9f3f4d3568bb977f90c863c12724e
- https://git.kernel.org/stable/c/68784a5d01b8868ff85a7926676b6729715fff3c
Get alerted when CVE-2024-35904 or the next vulnerability affects your stack