Skip to main content

FreeBSD Kernel CVE-2026-6386

| EUVDEUVD-2026-24592 MEDIUM
Improper Privilege Management (CWE-269)
2026-04-22 freebsd GHSA-99g5-mwj2-6xjq
6.2
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Create largepage shared memory segment
  2. Delivery
    Apply PKRU protection key operation
  3. Exploit
    Trigger pmap_pkru_update_range()
  4. Execution
    Misinterpret directory entry as page table
  5. Impact
    Read kernel memory

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) local user-level code execution on a vulnerable FreeBSD system, (2) the shm_create_largepage(3) interface to be available in the kernel (enabled by default in standard FreeBSD builds), and (3) use of memory protection key operations (pkey_mprotect or related syscalls) on the largepage-mapped memory region. The vulnerability is amd64-specific and does not affect other architectures. Non-amd64 systems (i386, ARM, etc.) are NOT vulnerable. The attack is NOT remote and does not require authentication, but it IS limited to users with local shell access or code execution. Default FreeBSD configurations are vulnerable if the affected kernel versions are running; no special tunables or hardening options prevent exploitation.

Impact

This vulnerability presents moderate real-world risk despite the low EPSS score of 0.02%. CVSS 6.2 (AV:L/AC:L/PR:N) correctly identifies a local, unprivileged attack vector with no attack complexity, confirming accessibility to any user on affected systems. The low EPSS percentile (4th) suggests limited exploit prevalence, likely because shm_create_largepage(3) usage is uncommon in production workloads and the vulnerability requires specific kernel version combinations. However, the confidentiality impact (C:H) is confirmed - attackers read unrestricted kernel memory, which may leak cryptographic keys, ASLR bypasses, or other sensitive data. The integrity and availability impacts are rated None, limiting scope; attackers cannot modify kernel state or cause denial of service through this path alone. No active CISA KEV listing or public POC has been identified, suggesting this is a researcher-discovered vulnerability with vendor-coordinated disclosure. For systems running vulnerable FreeBSD versions with largepage workloads (e.g., high-performance databases, caching systems), this warrants prioritized patching; for standard deployments without largepage usage, risk is lower but not eliminated since exploitation requires no special privileges or user interaction.

Exploit ScenarioDerived

A local attacker without special privileges creates a shared memory largepage segment using shm_create_largepage(3), then manipulates protection keys via a PKRU-modifying syscall (such as pkey_mprotect). The kernel's flawed pmap_pkru_update_range() function misinterprets the largepage directory entry, treating userspace memory as a page table, allowing the attacker to read arbitrary kernel memory locations. This could be used to leak KASLR offsets or encryption keys.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 22, 2026

Unprivileged local users on FreeBSD can read sensitive kernel memory via a page table manipulation bug in pmap_pkru_update_range(). When applying protection keys to 1GB largepage mappings created through shm_create_largepage(3), the kernel incorrectly treats userspace memory as page table entries, enabling unauthorized information disclosure. This affects FreeBSD 13.5, 14.3, 14.4, and 15.0 releases and has been confirmed fixed by vendor patches.

RemediationAI

Apply the vendor-released patches immediately: FreeBSD 13.5-RELEASE-p12 or later, 14.3-RELEASE-p11 or later, 14.4-RELEASE-p2 or later, or 15.0-RELEASE-p6 or later. Administrators using 'freebsd-update' should run 'freebsd-update fetch install' followed by a system reboot. No workarounds are available; patching is mandatory for affected systems. Interim mitigation is to disable shm_create_largepage(3) functionality if workload-dependent, but this does not eliminate the underlying kernel vulnerability and is not recommended as a permanent solution. See https://security.freebsd.org/advisories/FreeBSD-SA-26:11.amd64.asc for detailed patch instructions and verification procedures.

Affected VersionsENISA

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

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the FreeBSD kernel's memory protection key (PKU/PKRU) management subsystem. When updating protection keys across an address range, the pmap_pkru_update_range() function must navigate page table hierarchies to identify which entries require updates. The bug occurs because the function fails to recognize 1GB largepage mappings, which are created via the shm_create_largepage(3) interface and represent a non-standard page directory entry structure. Instead of detecting these largepage entries, the code incorrectly interprets them as pointing to conventional page table pages, leading to out-of-bounds memory access. The underlying issue is improper privilege boundary checking (CWE-269) when manipulating page table structures without validating entry types. The vulnerability is architecture-specific to amd64 (x86-64) systems where largepage mappings and PKRU support are implemented.

Know when Freebsd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
CVSS changed
Apr 22, 2026 - 15:22 NVD
6.2 (MEDIUM)
CVE Published
Apr 22, 2026 - 02:33 nvd
MEDIUM 6.2

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +31
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

CVE-2012-0217 HIGH POC
7.2 Jun 12

The x86-64 kernel system-call functionality in Xen 4.1.2 and earlier, as used in Citrix XenServer 6.0.2 and earlier and

CVE-2025-14558 HIGH POC
7.2 Mar 09

The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess

CVE-2020-1967 HIGH POC
7.5 Apr 21

Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due

CVE-2013-4854 HIGH POC
7.8 Jul 29

The RFC 5011 implementation in rdata.c in ISC BIND 9.7.x and 9.8.x before 9.8.5-P2, 9.8.6b1, 9.9.x before 9.9.3-P2, and

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2013-2171 MEDIUM POC
6.9 Jul 02

The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through 9.1-RELEAS

CVE-2021-3449 MEDIUM
5.9 Mar 25

An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med

CVE-2016-5766 HIGH POC
8.8 Aug 07

Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used

CVE-2016-1879 HIGH POC
7.5 Jan 29

The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w

CVE-2020-7457 HIGH POC
8.1 Jul 09

In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy