CVE-2024-35904Published May 19, 2024 · May 19Updated Nov 1
selinux: avoid dereference of garbage after mount failure
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s SELinux mount handling can dereference an error pointer when kern_mount() fails. The input does not specify how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running Linux kernels with SELinux should check their versions; affected versions are not specified in the input.