Skip to content
OpenAdvisories
Medium · 6.2 CVE-2026-6386 EUVD-2026-24592GHSA-99g5-mwj2-6xjq

Missing large page handling in pmap_pkru_update_range()

Published Apr 22, 2026 · Updated Apr 22, 2026 · Assigned by freebsd

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.

Affected products

VendorProductAffectedFixed
FreeBSD FreeBSD 15.0-RELEASE – < p6, 14.4-RELEASE – < p2, 14.3-RELEASE – < p11, 13.5-RELEASE – < p12 p6

Advisories 1

References