CVE-2024-35904
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-35904 affects the Linux kernel's SELinux subsystem. The vulnerability was discovered in May 2024 and involves a potential NULL pointer dereference in the selinuxfs mount failure handling code. The issue affects Linux kernel versions from 4.17 up to (excluding) 6.6.26, and versions from 6.7 up to (excluding) 6.8.5, as well as release candidates 6.9-rc1 and 6.9-rc2 (NVD).

Technical details

The vulnerability stems from improper error handling in the SELinux filesystem mount process. When kern_mount() fails and returns an error pointer, the code continues execution instead of properly handling the error, leading to a potential dereference of an invalid pointer. The issue was introduced by commit 0619f0f5e36f ("selinux: wrap selinuxfs state") and has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD, Kernel Patch).

Impact

The vulnerability can lead to a denial of service condition through a NULL pointer dereference in the SELinux subsystem. The impact is limited to availability, with no direct impact on confidentiality or integrity of the system (NVD).

Mitigation and workarounds

The vulnerability has been fixed in multiple kernel versions through a patch that properly handles the error condition by returning immediately when kernmount() fails. The fix also removes an unused static variable selinuxfsmount. Updates are available for various Linux distributions, including Ubuntu versions 22.04 LTS (5.15.0-127.137), 20.04 LTS (5.4.0-202.222), and others (Ubuntu, Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40300N/AN/A
  • Linux KernelLinux Kernel
  • perf-debuginfo
NoYesSep 11, 2025
CVE-2025-39791N/AN/A
  • Linux KernelLinux Kernel
  • kernel
NoNoSep 11, 2025
CVE-2025-39790N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug-modules-partner
NoNoSep 11, 2025
CVE-2025-39784N/AN/A
  • Linux KernelLinux Kernel
  • kernel-kdump
NoNoSep 11, 2025
CVE-2025-39782N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug
NoNoSep 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management