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

userfaultfd: prevent registration of special VMAs

Vova Tokarev says:

userfaultfd allows registration on shadow stack VMAs. With userfaultfd
access, you can register on the shadow stack, discard a page ... and
inject a page with chosen return addresses via UFFDIO_COPY.

Update vma_can_userfault() to reject VM_SHADOW_STACK.

While on it, also reject VM_SPECIAL so that if a driver would implement
vm_uffd_ops, it wouldn't be possible to register special VMAs with
userfaultfd.

Since VM_SPECIAL includes VM_DONTEXPAND which is set but hugetlb, exclude
hugetlb VMAs from the check for VM_SPECIAL.
Published: 2026-08-10
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The patch reveals that the userfaultfd interface permits registration on shadow stack and other special virtual memory areas. By performing a UFFDIO_COPY operation, a local user can inject data directly into these protected regions, overwriting return addresses or other control data. This yields kernel‑level arbitrary memory write and the ability to execute arbitrary code in privilege‑elevated context.

Affected Systems

All Linux kernel builds that ship the userfaultfd system call are affected. The vulnerability is independent of distribution; any system running an unpatched kernel that includes the pre‑fix code can register shadow stack or special VMAs and exploit the flaw.

Risk and Exploitability

Because the flaw allows a local user to write to kernel memory, it is a high‑impact privilege escalation vulnerability. The EPSS score is not available, but the nature of the bug suggests a significant likelihood of exploitation in environments where userfaultfd is enabled. It is not listed in the CISA KEV catalog, yet the severity warrants immediate attention.

Generated by OpenCVE AI on August 10, 2026 at 18:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that rejects VM_SHADOW_STACK and VM_SPECIAL in vma_can_userfault(), which is included in kernel releases following the linked commits.
  • If an immediate kernel upgrade is not possible, recompile the kernel with CONFIG_USERFAULTFD disabled to eliminate the vulnerable interface entirely.
  • Implement a container or host‑level policy (e.g., seccomp, SELinux, AppArmor) that blocks the UFFDIO_COPY ioctl for unprivileged processes, thereby preventing data injection into protected regions.

Generated by OpenCVE AI on August 10, 2026 at 18:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-787

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: userfaultfd: prevent registration of special VMAs Vova Tokarev says: userfaultfd allows registration on shadow stack VMAs. With userfaultfd access, you can register on the shadow stack, discard a page ... and inject a page with chosen return addresses via UFFDIO_COPY. Update vma_can_userfault() to reject VM_SHADOW_STACK. While on it, also reject VM_SPECIAL so that if a driver would implement vm_uffd_ops, it wouldn't be possible to register special VMAs with userfaultfd. Since VM_SPECIAL includes VM_DONTEXPAND which is set but hugetlb, exclude hugetlb VMAs from the check for VM_SPECIAL.
Title userfaultfd: prevent registration of special VMAs
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-10T11:59:34.576Z

Reserved: 2026-07-30T09:28:09.372Z

Link: CVE-2026-68166

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T18:45:17Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-787

    Out-of-bounds Write