# CVE-2026-6386

> Vulnerability · severity: **MEDIUM** (CVSS 6.2).

## 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.

## Key facts

- **CVE ID:** CVE-2026-6386
- **Published:** 2026-04-22
- **CVSS severity:** MEDIUM
- **CVSS base score:** 6.2
- **CWE codes:** CWE-269, CWE-732

## Affected products

- `freebsd:freebsd`

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-6386

## Citation

> AI Analytics. CVE-2026-6386. Retrieved 2026-07-23 from https://api.ai-analytics.org/cve/CVE-2026-6386. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*