CVE-2021-47461
published high CVSS 3.1 · 7.8userfaultfd: fix a race between writeprotect and exit_mmap()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux63b2d4174c4ad1f40b48d7138e71bcb564c1fe03 to < 3cda4bfffd4f755645577aaa9e96a606657b4525 · 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03 to < 149958ecd0627a9f1e9c678c25c665400054cd6a · 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03 to < cb185d5f1ebf900f4ae3bf84cee212e6dd035aca · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.7 (affected) · 0 to < 5.7 (unaffected · semver) · 5.10.76 through 5.10.* (unaffected · semver) · 5.14.15 through 5.14.* (unaffected · semver) · 5.15 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2024-049 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolaarch64 | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-kvm | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-kvm | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernelx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-abi-stablelistsx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-corex86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-cross-headersaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-cross-headersx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-debugx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-debug-corex86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-debug-develx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-debug-modulesx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-debug-modules-extrax86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-develx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-docx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-headersaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-headersx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-modulesx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-modules-extrax86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-toolsaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-toolsx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-tools-libsaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-tools-libsx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-tools-libs-develaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-tools-libs-develx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | perfaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | perfx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | python3-perfaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | python3-perfx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolaarch64 | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolaarch64 | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | bpftools390x | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | bpftools390x | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | bpftools390x | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoaarch64 | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoaarch64 | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoaarch64 | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfos390x | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfos390x | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfos390x | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-553.16.1.el8_10 | RHSA-2024:5101 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-372.121.1.el8_6 | RHSA-2024:6297 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached only via the local userfaultfd(2) syscall and UFFDIO_WRITEPROTECT ioctl into userfaultfd_writeprotect()/mwriteprotect_range(), not via network packet processing or physical device I/O. AC:L - The attacker fully controls both sides of the race by creating a userfaultfd, registering a WP range, sharing the fd (fork/SCM_RIGHTS), exiting the mm owner so exit_mmap() frees VMAs, and concurrently issuing UFFDIO_WRITEPROTECT from the fd holder. PR:L - Any unprivileged user can open userfaultfd with UFFD_USER_MODE_ONLY (allowed by default) and use UFFDIO_WRITEPROTECT; CAP_SYS_PTRACE is not required for this path. UI:N - The attacker performs the uffd setup, fd sharing, process exit, and ioctl hammering themselves; no separate victim action is required. S:U - This is a standard in-kernel VMA use-after-free within the host kernel authority, with no VM escape, IOMMU bypass, or other cross-boundary impact. C:H - The race is a use-after-free on VMA structures (KASAN-detected) while find_vma/change_protection still touch them; UAF enables reclaim/spray and arbitrary kernel memory disclosure. I:H - Use-after-free of VMAs during change_protection allows heap manipulation of VMA state that drives page-table writes, enabling arbitrary write and control-flow hijacking primitives. A:H - Concurrent exit_mmap() freeing of VMAs while mwriteprotect_range() walks and modifies them causes kernel oops/panic even when not fully exploited for code execution.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03 to < 3cda4bfffd4f755645577aaa9e96a606657b4525 (affected · git)63b2d4174c4ad1f40b48d7138e71bcb564c1fe03 to < 149958ecd0627a9f1e9c678c25c665400054cd6a (affected · git)63b2d4174c4ad1f40b48d7138e71bcb564c1fe03 to < cb185d5f1ebf900f4ae3bf84cee212e6dd035aca (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.7 (affected)0 to < 5.7 (unaffected · semver)5.10.76 through 5.10.* (unaffected · semver)5.14.15 through 5.14.* (unaffected · semver)5.15 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
3Linux · cna
userfaultfd: fix a race between writeprotect and exit_mmap()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- bc3dd29ae2876b8b6f22dec9a9ec0c5b5999469937212b02ea4f619115052023
- Ingested
- 23 Sep 2026, 07:57:11 UTC
- Source record
- Official CVE record