Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1451+ Articles
151+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-35547: FreeBSD libnv Heap Buffer Overflow Allows
CVE-2026-35547: FreeBSD libnv Heap Buffer Overflow Allows

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-35547

CVE-2026-35547: FreeBSD libnv Heap Buffer Overflow Allows

A critical heap buffer overflow in FreeBSD's libnv library allows an unprivileged program to write outside heap allocation bounds during message header...

Dylan H.

Security Team

May 1, 2026
5 min read

Affected Products

  • FreeBSD (multiple supported branches)

CVE-2026-35547: FreeBSD libnv Heap Buffer Overflow

A critical heap buffer overflow vulnerability tracked as CVE-2026-35547 has been disclosed affecting FreeBSD's libnv library. The flaw exists in the message header processing path, where the library fails to properly validate the incoming message size before performing a heap write. An unprivileged program can exploit this to write data outside the bounds of a heap allocation, potentially crashing the system or enabling escalation to higher privilege levels.

The vulnerability was published on April 30, 2026, with a CVSS v3.1 score of 9.1 (Critical).


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-35547
CVSS Score9.1 (Critical)
CWE ClassificationCWE-122 — Heap-based Buffer Overflow
Affected ComponentFreeBSD libnv — message header parsing
Attack VectorLocal
Privileges RequiredNone (unprivileged user)
Primary ImpactCrash / System Panic (DoS)
Secondary ImpactPotential privilege escalation
Patch AvailableCheck FreeBSD security advisories

Technical Details

Root Cause

The vulnerability resides in libnv, FreeBSD's name/value pair library used for inter-process communication and kernel–userspace data exchange. When processing the header of an incoming message, libnv reads a message size field from the header but fails to validate this value before using it to control subsequent heap operations.

The lack of size validation allows a malicious program to supply a crafted message with an oversized or malformed size field, causing libnv to perform a write operation that extends beyond the end of the allocated heap buffer by an attacker-controlled number of bytes.

Exploitation Scenario

Denial of Service (Reliable): The out-of-bounds write corrupts adjacent heap metadata or other heap allocations. On most FreeBSD configurations this results in a detectable heap consistency failure, triggering a system panic. Any unprivileged local process can trigger this condition by sending a crafted message to a libnv consumer.

Privilege Escalation (Conditional): Under favourable heap layout conditions — influenced by timing, allocation patterns, and the specific application consuming libnv — an attacker may be able to corrupt heap structures in a way that leads to arbitrary code execution within the context of a privileged process or the kernel. The CVSS score of 9.1 reflects this potential for impact beyond simple DoS.

Vulnerable Code Path

Unprivileged process sends crafted message
  → libnv header parsing
    → Message size field read from untrusted input
      → No bounds validation performed
        → Heap write using attacker-controlled size
          → Out-of-bounds write past heap allocation
            → Heap corruption → System panic (DoS)
              → [Heap shaping] Potential arbitrary code execution

Impact Assessment

Impact AreaDescription
System AvailabilityAny unprivileged local process can trigger a kernel panic
Privilege EscalationHeap-based exploitation may allow escalation to root or privileged process context
Multi-Tenant SystemsShared servers and VPS environments with untrusted shell users are at elevated risk
FreeBSD AppliancesEmbedded FreeBSD devices (firewalls, NAS, routers) using libnv are affected
Exploit ComplexityDoS is straightforward; full LPE requires heap grooming and layout control

Remediation

Official Patch

Monitor the FreeBSD Security Advisories page and apply patches as released for your FreeBSD branch.

Via freebsd-update (binary updates):

freebsd-update fetch
freebsd-update install
reboot

Via ports/source:

# Apply official advisory patch
patch -p0 < /path/to/advisory.patch
# Rebuild affected components and reboot

Interim Mitigations

Until a patch can be applied:

  1. Restrict local shell access — Limit which users have shell access on systems running FreeBSD, especially shared or multi-tenant environments
  2. Audit libnv consumers — Identify privileged services that process libnv messages and assess their exposure surface
  3. Monitor for anomalous IPC activity — Watch for unusual inter-process message patterns from unprivileged accounts
  4. Consider jails — Use FreeBSD jails to isolate untrusted workloads and limit their ability to interact with system-level libnv consumers

Context: FreeBSD libnv

FreeBSD's libnv (name/value pair library) is a kernel and userspace facility used throughout the OS for safe, structured data exchange between processes and between userspace and the kernel. It is used by various system daemons and kernel subsystems. Its attack surface is reachable by unprivileged processes wherever these daemons or subsystems accept libnv-formatted messages, making validation of message size fields a foundational security requirement.


Key Takeaways

  1. CVE-2026-35547 is a CVSS 9.1 critical heap buffer overflow in FreeBSD's libnv library, triggered by missing message size validation
  2. Any unprivileged local process can cause an out-of-bounds heap write — reliably crashing the system and potentially escalating privileges
  3. All FreeBSD systems running affected branches should apply patches immediately from the official FreeBSD Security Advisory
  4. Systems with untrusted local users — shared hosts, VPS providers, and container environments — should treat this as a high-priority emergency
  5. Interim mitigations include restricting shell access and using FreeBSD jails to isolate untrusted workloads

Sources

  • CVE-2026-35547 — NIST NVD
  • FreeBSD Security Advisories

Related Reading

  • CVE-2026-3038: FreeBSD Kernel Stack Buffer Overflow in
  • CVE-2026-32956: Critical Heap Buffer Overflow in silex
  • CVE-2026-5272: Chrome GPU Heap Buffer Overflow Enables
#CVE-2026-35547#FreeBSD#libnv#Heap Buffer Overflow#CWE-122#Vulnerability#Privilege Escalation#Denial of Service

Related Articles

CVE-2026-47369: UniFi OS Privilege Escalation via Improper Input Validation

A critical CVSS 9.9 privilege escalation vulnerability in Ubiquiti UniFi OS allows a low-privileged network attacker to escalate privileges within UniFi...

5 min read

CVE-2025-6254: WordPress Doctreat Core Plugin Privilege Escalation (CVSS 9.8)

A critical unauthenticated privilege escalation vulnerability in the Doctreat Core WordPress plugin allows attackers to register with elevated roles,...

3 min read

CVE-2026-50211: Leftover Engineering Diagnostics Grant Malicious Apps NVRAM Write Access

A critical CVSS 9.8 vulnerability exposes factory-level diagnostic interfaces left in retail firmware builds, allowing malicious applications to gain write…

4 min read
Back to all Security Alerts