CVE-2024-35904: Linux kernel · selinux: avoid dereference of garbage after mount failure
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 5.4.0-1136.146~18.04.1 : update Linux kernel when convenient.
Data as of 12 Nov 2026, 19:04 UTC
Thin evidence
One scorer or none- Patch
- Available – fixed in 5.4.0-1136.146~18.04.1, 5.4.0-1142.149~18.04.1, 5.4.0-1140.149~18.04.1 +64
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-6893-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6918-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7159-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7159-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7166-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7166-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7159-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7159-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7166-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7159-5 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gkepkg:deb/ubuntu/linux-gke?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-ibmpkg:deb/ubuntu/linux-ibm?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-35904 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-35904 (opens in a new tab)
- git.kernel.org/linus/37801a36b4d68892ce807264f784d818f8d0d39b (opens in a new tab)
- git.kernel.org/stable/c/477ed6789eb9f3f4d3568bb977f90c863c12724e (opens in a new tab)
- git.kernel.org/stable/c/68784a5d01b8868ff85a7926676b6729715fff3c (opens in a new tab)
- git.kernel.org/stable/c/37801a36b4d68892ce807264f784d818f8d0d39b (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6893-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6918-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7159-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7159-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7166-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7166-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7159-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7159-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7166-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7159-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-7186-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7186-2 (opens in a new tab)