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.
git.kernel.org/linus/37801a36b4d68892ce807264f784d818f8d0d39b
git.kernel.org/stable/c/37801a36b4d68892ce807264f784d818f8d0d39b
git.kernel.org/stable/c/477ed6789eb9f3f4d3568bb977f90c863c12724e
git.kernel.org/stable/c/68784a5d01b8868ff85a7926676b6729715fff3c
ubuntu.com/security/CVE-2024-35904
ubuntu.com/security/notices/USN-6893-1
ubuntu.com/security/notices/USN-6893-2
ubuntu.com/security/notices/USN-6893-3
ubuntu.com/security/notices/USN-6918-1
www.cve.org/CVERecord?id=CVE-2024-35904