Lucene search

K
cveLinuxCVE-2024-40938
HistoryJul 12, 2024 - 1:15 p.m.

CVE-2024-40938

2024-07-1213:15:16
Linux
web.nvd.nist.gov
34
linux kernel
vulnerability
cve-2024-40938
landlock
fix
d_parent walk

AI Score

6.4

Confidence

High

EPSS

0

Percentile

15.9%

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

landlock: Fix d_parent walk

The WARN_ON_ONCE() in collect_domain_accesses() can be triggered when
trying to link a root mount point. This cannot work in practice because
this directory is mounted, but the VFS check is done after the call to
security_path_link().

Do not use source directory’s d_parent when the source directory is the
mount point.

[mic: Fix commit message]

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.196.1.95
OR
linuxlinux_kernelRange6.2.06.6.35
OR
linuxlinux_kernelRange6.7.06.9.6
OR
linuxlinux_kernelRange6.10.0
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:a: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": [
      "security/landlock/fs.c"
    ],
    "versions": [
      {
        "version": "b91c3e4ea756",
        "lessThan": "b6e5e6964358",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b91c3e4ea756",
        "lessThan": "cc30d05b34f9",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b91c3e4ea756",
        "lessThan": "c7618c7b0b8c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b91c3e4ea756",
        "lessThan": "88da52ccd66e",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "security/landlock/fs.c"
    ],
    "versions": [
      {
        "version": "5.19",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.19",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.95",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.35",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.6",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.4

Confidence

High

EPSS

0

Percentile

15.9%