Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2021-47461
HistoryMay 22, 2024 - 6:23 a.m.

CVE-2021-47461 userfaultfd: fix a race between writeprotect and exit_mmap()

2024-05-2206:23:22
Linux
github.com
1
linux kernel
vulnerability
userfaultfd
race
writeprotect
exit_mmap
kasan
mmget_not_zero
cve-2021-47461

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

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

userfaultfd: fix a race between writeprotect and exit_mmap()

A race is possible when a process exits, its VMAs are removed by
exit_mmap() and at the same time userfaultfd_writeprotect() is called.

The race was detected by KASAN on a development kernel, but it appears
to be possible on vanilla kernels as well.

Use mmget_not_zero() to prevent the race as done in other userfaultfd
operations.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/userfaultfd.c"
    ],
    "versions": [
      {
        "version": "63b2d4174c4a",
        "lessThan": "3cda4bfffd4f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63b2d4174c4a",
        "lessThan": "149958ecd062",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63b2d4174c4a",
        "lessThan": "cb185d5f1ebf",
        "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/userfaultfd.c"
    ],
    "versions": [
      {
        "version": "5.7",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.7",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.76",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.14.15",
        "lessThanOrEqual": "5.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

Related for VULNRICHMENT:CVE-2021-47461