{"id":"CVE-2024-35904","published":"2024-05-19T08:34:57Z","modified":"2026-10-30T12:18:19Z","title":"selinux: avoid dereference of garbage after mount failure","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00309,"percentile":0.16206,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/563e631a18c5b2bbab674a58154bcf41a6d90f13","tags":[]},{"url":"https://git.kernel.org/stable/c/477ed6789eb9f3f4d3568bb977f90c863c12724e","tags":[]},{"url":"https://git.kernel.org/stable/c/68784a5d01b8868ff85a7926676b6729715fff3c","tags":[]},{"url":"https://git.kernel.org/stable/c/37801a36b4d68892ce807264f784d818f8d0d39b","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/30/2","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/30/1","tags":["x_transferred"]}],"priority":{"score":3.2,"factors":[{"name":"EPSS percentile","points":3.24}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0619f0f5e36f12e100ef294f5980cfe7c93ff23e, < 563e631a18c5b2bbab674a58154bcf41a6d90f13",">= 0619f0f5e36f12e100ef294f5980cfe7c93ff23e, < 477ed6789eb9f3f4d3568bb977f90c863c12724e",">= 0619f0f5e36f12e100ef294f5980cfe7c93ff23e, < 68784a5d01b8868ff85a7926676b6729715fff3c",">= 0619f0f5e36f12e100ef294f5980cfe7c93ff23e, < 37801a36b4d68892ce807264f784d818f8d0d39b"]},{"vendor":"Linux","product":"Linux","versions":["4.17"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-20T14:08:38.593035Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-35622","exploited":false,"provenance":"source"}}