CVE-2026-6386

Missing large page handling in pmap_pkru_update_range()

State
Published
Severity
6.2 Medium
Published
Apr 22, 2026
Updated
Apr 22, 2026
Reserved
Apr 15, 2026

Read the record on cve.org

Description

In order to apply a particular protection key to an address range, the kernel must update the corresponding page table entries. The subroutine which handled this failed to take into account the presence of 1GB largepage mappings created using the shm_create_largepage(3) interface. In particular, it would always treat a page directory page entry as pointing to another page table page.

The bug can be abused by an unprivileged user to cause pmap_pkru_update_range() to treat userspace memory as a page table page, and thus overwrite memory to which the application would otherwise not have access.

Scores

CVSSScoreVectorSource
3.16.2 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NCISA-ADP

Weaknesses

  • CWE-269 Improper Privilege Management
  • CWE-732 Incorrect Permission Assignment for Critical Resource

Affected Products

ProductVersions
FreeBSDFreeBSD
  • 15.0-RELEASE to before p6Affected
  • 14.4-RELEASE to before p2Affected
  • 14.3-RELEASE to before p11Affected
  • 13.5-RELEASE to before p12Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.