Lucene search

K
cveLinuxCVE-2024-42312
HistoryAug 17, 2024 - 9:15 a.m.

CVE-2024-42312

2024-08-1709:15:11
Linux
web.nvd.nist.gov
29
linux kernel
vulnerability
cve-2024-42312
sysctl
initialize
i_uid
i_gid
sysfs core
set_ownership
net_ctl_set_ownership

AI Score

6.5

Confidence

Low

EPSS

0

Percentile

10.8%

In the Linux kernel, the following vulnerability has been resolved:

sysctl: always initialize i_uid/i_gid

Always initialize i_uid/i_gid inside the sysfs core so set_ownership()
can safely skip setting them.

Commit 5ec27ec735ba (“fs/proc/proc_sysctl.c: fix the default values of
i_uid/i_gid on /proc/sys inodes.”) added defaults for i_uid/i_gid when
set_ownership() was not implemented. It also missed adjusting
net_ctl_set_ownership() to use the same default values in case the
computation of a better value failed.

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.35.10.224
OR
linuxlinux_kernelRange5.11.05.15.165
OR
linuxlinux_kernelRange5.16.06.1.104
OR
linuxlinux_kernelRange6.2.06.6.45
OR
linuxlinux_kernelRange6.7.06.10.3
OR
linuxlinux_kernelRange6.11.0
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/proc/proc_sysctl.c"
    ],
    "versions": [
      {
        "version": "5ec27ec735ba",
        "lessThan": "b2591c89a6e2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "5ec27ec735ba",
        "lessThan": "34a86adea1f2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "5ec27ec735ba",
        "lessThan": "1deae34db9f4",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "5ec27ec735ba",
        "lessThan": "ffde3af4b29b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "5ec27ec735ba",
        "lessThan": "c7e2f43d182f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "5ec27ec735ba",
        "lessThan": "98ca62ba9e2b",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/proc/proc_sysctl.c"
    ],
    "versions": [
      {
        "version": "5.3",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.3",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.224",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.165",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.104",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.45",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10.3",
        "lessThanOrEqual": "6.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.11",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.5

Confidence

Low

EPSS

0

Percentile

10.8%