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.
[
{
"target": {
"file": "security/selinux/selinuxfs.c",
"function": "init_sel_fs"
},
"digest": {
"length": 808.0,
"function_hash": "275196255619512091968940337592742380126"
},
"id": "CVE-2024-35904-0a49bf19",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68784a5d01b8868ff85a7926676b6729715fff3c",
"signature_version": "v1",
"signature_type": "Function"
},
{
"target": {
"file": "security/selinux/selinuxfs.c"
},
"digest": {
"line_hashes": [
"220808392225765918272785019822367916305",
"131248871346551108422029086198430774773",
"137306219924243692115717062434166700749",
"241070857710777017959429658013064196042",
"105581384337877995728908559486438332689",
"313924325663007865263392139791964943963",
"329842149062681984768334614282510821654",
"143786504222161385384228691219234901760",
"107723816852444609924597051425584815357",
"21257875943892601899127000650505481935",
"202613841588499818323644633873305604537",
"214561189797679725235217085652738910922",
"192238630467561916151216350102188959507",
"158209887247844758793048393752541239690",
"87638698873144959852387357004008792601",
"334301850587662386458642758488739251947",
"292597601345693950471579513518101163902",
"208314098048174911895141132978211703841",
"166435353274792356423452360978522001413"
],
"threshold": 0.9
},
"id": "CVE-2024-35904-528394f5",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68784a5d01b8868ff85a7926676b6729715fff3c",
"signature_version": "v1",
"signature_type": "Line"
}
]