CVEvulnerability
CVE-2024-35904
5.5 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2024-05-19
- Last modified
- 2026-06-17
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- 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 configurations
• linux linux kernel (>= 4.17 < 6.6.26)
• linux linux kernel (>= 6.7 < 6.8.5)
• linux linux kernel 6.9
Related
Weakness · CWE (1)
- CWE-476 NULL Pointer Dereference weakness
References
- https://git.kernel.org/stable/c/37801a36b4d68892ce807264f784d818f8d0d39b Patch
- https://git.kernel.org/stable/c/477ed6789eb9f3f4d3568bb977f90c863c12724e Patch
- https://git.kernel.org/stable/c/68784a5d01b8868ff85a7926676b6729715fff3c Patch
- http://www.openwall.com/lists/oss-security/2024/05/30/1 Mailing List
- http://www.openwall.com/lists/oss-security/2024/05/30/2 Mailing List
- https://git.kernel.org/stable/c/37801a36b4d68892ce807264f784d818f8d0d39b Patch
- https://git.kernel.org/stable/c/477ed6789eb9f3f4d3568bb977f90c863c12724e Patch
- https://git.kernel.org/stable/c/68784a5d01b8868ff85a7926676b6729715fff3c Patch