Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2021-46923
HistoryFeb 27, 2024 - 9:43 a.m.

CVE-2021-46923 fs/mount_setattr: always cleanup mount_kattr

2024-02-2709:43:54
Linux
github.com
1
linux kernel
vulnerability
mount_setattr
finish_mount_kattr
path lookup
idmapped mount

6.6 Medium

AI Score

Confidence

Low

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

fs/mount_setattr: always cleanup mount_kattr

Make sure that finish_mount_kattr() is called after mount_kattr was
succesfully built in both the success and failure case to prevent
leaking any references we took when we built it. We returned early if
path lookup failed thereby risking to leak an additional reference we
took when building mount_kattr when an idmapped mount was requested.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "9caccd41541a",
        "lessThan": "47b5d0a7532d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9caccd41541a",
        "lessThan": "012e332286e2",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/namespace.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.12"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.12",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.15.13",
        "versionType": "custom",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "5.16",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/namespace.c"
    ],
    "defaultStatus": "affected"
  }
]

6.6 Medium

AI Score

Confidence

Low