{"id":"CVE-2024-35904","summary":"selinux: avoid dereference of garbage after mount failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nselinux: avoid dereference of garbage after mount failure\n\nIn case kern_mount() fails and returns an error pointer return in the\nerror branch instead of continuing and dereferencing the error pointer.\n\nWhile on it drop the never read static variable selinuxfs_mount.","modified":"2026-03-20T12:36:44.256249Z","published":"2024-05-19T08:34:57.351Z","related":["SUSE-SU-2024:2008-1","SUSE-SU-2024:2011-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2135-1","SUSE-SU-2024:2189-1","SUSE-SU-2024:2190-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20249-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35904.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/05/30/1"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/05/30/2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/37801a36b4d68892ce807264f784d818f8d0d39b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/477ed6789eb9f3f4d3568bb977f90c863c12724e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/68784a5d01b8868ff85a7926676b6729715fff3c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35904.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35904"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0619f0f5e36f12e100ef294f5980cfe7c93ff23e"},{"fixed":"477ed6789eb9f3f4d3568bb977f90c863c12724e"},{"fixed":"68784a5d01b8868ff85a7926676b6729715fff3c"},{"fixed":"37801a36b4d68892ce807264f784d818f8d0d39b"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35904.json"}}],"schema_version":"1.7.5"}