Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-35904
HistoryMay 19, 2024 - 8:34 a.m.

CVE-2024-35904 selinux: avoid dereference of garbage after mount failure

2024-05-1908:34:57
Linux
github.com
5
linux kernel
selinux
vulnerability
resolved
mount failure

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "0619f0f5e36f",
        "lessThan": "477ed6789eb9",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "0619f0f5e36f",
        "lessThan": "68784a5d01b8",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "0619f0f5e36f",
        "lessThan": "37801a36b4d6",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "security/selinux/selinuxfs.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.17"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.17",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "6.6.26",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.8.5",
        "versionType": "custom",
        "lessThanOrEqual": "6.8.*"
      },
      {
        "status": "unaffected",
        "version": "6.9",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "security/selinux/selinuxfs.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial