CVE-2024-35904 selinux: avoid dereference of garbage after mount failure
A null pointer dereference in the Linux kernel SELinux module can cause a system crash if mount operations fail.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-35904?
CVE-2024-35904 is a medium-severity vulnerability in Linux kernel, published on 19 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2024-35904?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-35904?
Apply the vendor's patch.
Is CVE-2024-35904 being exploited?
There is no known exploitation of CVE-2024-35904 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-56262, BELL-CVE-2024-35904, DEBIAN-CVE-2024-35904, GHSA-x32j-25w6-p7m4, ROOT-OS-DEBIAN-11-CVE-2024-35904, ROOT-OS-DEBIAN-12-CVE-2024-35904 and 1 more.