CVE-2024-35904: selinux: avoid dereference of garbage after mount failure

Published May 19, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

selinux: avoid dereference of garbage after mount failure

In case kernmount() 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 selinuxfsmount.

Other sources

In the Linux kernel, the following vulnerability has been resolved:

selinux: avoid dereference of garbage after mount failure

The Linux kernel CVE team has assigned CVE-2024-35904 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024051953-CVE-2024-35904-7f85@gregkh/T

Red Hat

Affected Software

8 affected componentsFixes available
redhat/kernel<6.6.26
6.6.26
redhat/kernel<6.8.5
6.8.5
redhat/kernel<6.9
6.9
Linux Linux kernel>=4.17<6.6.26
Linux Linux kernel>=6.7<6.8.5
Linux Linux kernel=6.9-rc1
Linux Linux kernel=6.9-rc2
debian/linux<=5.10.223-1, <=5.10.234-1, <=6.1.129-1, <=6.1.135-1
6.12.25-16.12.27-1

Event History

May 19, 2024
CVE Published
via MITRE·08:34 AM
Data Sourced
via MITRE·08:34 AM
Description
May 20, 2024
Data Sourced
via Red Hat·11:07 AM
DescriptionSeverityAffected Software
Jul 11, 2024
Data Sourced
via Launchpad·07:46 PM
Description
May 1, 2025
Data Sourced
via Ubuntu·12:22 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-35904?

CVE-2024-35904 is categorized with a high severity level due to its potential impact on the Linux kernel's stability.

2

How do I fix CVE-2024-35904?

To address CVE-2024-35904, update the Linux kernel to versions 6.6.26, 6.8.5, or 6.9-rc1 or later.

3

Which Linux kernel versions are affected by CVE-2024-35904?

CVE-2024-35904 affects Linux kernel versions from 4.17 up to and including 6.6.26, 6.8.5, and 6.9-rc1.

4

What components are involved in CVE-2024-35904?

CVE-2024-35904 involves an issue within the SELinux component of the Linux kernel related to dereferencing an error pointer.

5

What can happen if CVE-2024-35904 is exploited?

Exploitation of CVE-2024-35904 may lead to system instability and potentially allow unauthorized access if the kernel dereferences invalid pointers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203