You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selinux: avoid dereference of garbage after mount failure
commit 37801a3 upstream.
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.
Cc: [email protected]
Fixes: 0619f0f ("selinux: wrap selinuxfs state")
Signed-off-by: Christian Göttsche <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
CVE-2024-35904
(cherry picked from commit 477ed6789eb9f3f4d3568bb977f90c863c12724e linux-6.6.y)
Signed-off-by: Massimiliano Pellizzer <[email protected]>
Acked-by: Manuel Diewald <[email protected]>
Acked-by: Guoqing Jiang <[email protected]>
Signed-off-by: Stefan Bader <[email protected]>
0 commit comments