CVE-2026-6386
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceThe pmap_pkru_update_range() kernel subroutine for applying protection keys to memory ranges fails to account for 1GB largepage mappings created via shm_create_largepage(3). It incorrectly treats all page directory entries as pointing to page table pages, allowing an unprivileged user to trick the function into treating userspace memory as a page table page and overwrite memory they should not access.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 13.5= 14.3= 14.4= 15.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check FreeBSD versionRun 'freebsd-version -k' or 'uname -r' to determine the running kernel versionAffected if The version is 13.5, 14.3, 14.4, or 15.0 - these are the affected versions listed in the CVE
-
Verify if largepage support is loaded or availableCheck for presence of the largepage subsystem: 'kldstat | grep largepage' or check kernel module availability with 'kldload -n largepage' (dry run)Affected if Largepage support is available in the kernel - this is required for the vulnerable code path to be exercised
-
Determine if shm_create_largepage(3) is accessible to unprivileged usersCheck the security.shm.max user limits or examine if unprivileged processes can call shm_create_largepage - review sysctl 'kern.ipc.shm' settings or test with a non-root user attempting the callAffected if Unprivileged users can call shm_create_largepage(3) - the vulnerability requires an unprivileged user to be able to invoke this function to trigger the flawed pmap_pkru_update_range() code path
-
Check if PKRU (Protection Keys) support is enabledVerify x86 PKRU feature presence: 'cpuctl identify 0' or check for 'pkru' in 'dmesg' output, or verify the CPU supports PKRU via 'sysctl hw.model' combined with CPU feature checksAffected if PKRU is enabled and in use on the system - the vulnerable function pmap_pkru_update_range() only executes when protection keys are being applied to memory ranges
A system is affected if it runs FreeBSD 13.5, 14.3, 14.4, or 15.0 AND has largepage support enabled AND allows unprivileged users to call shm_create_largepage(3) while PKRU protection keys are in use.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataApply vendor-provided kernel patches that add proper validation for largepage mappings in pmap_pkru_update_range(); until patched, consider restricting access to shm_create_largepage(3) for unprivileged users.
- Consultation4.0 h
- Implementation12.0 h
- Testing8.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,808.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-6386 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-6386 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data