Skip to main content

FreeBSD CVE-2026-49416

| EUVDEUVD-2026-39960 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-06-27 freebsd GHSA-f3p8-j3ww-gvq7
7.8
CVSS 3.1 · Vendor: freebsd
View

Attack ChainAIDerived

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

  1. Access
    Obtain unprivileged local shell on FreeBSD host
  2. Delivery
    Open vt(4) terminal device
  3. Exploit
    Issue CONS_HISTORY ioctl with oversized size
  4. Execution
    Integer overflow undersizes heap buffer
  5. Persist
    Out-of-bounds write corrupts kernel heap
  6. Impact
    Escalate privileges to root

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

Exploitation requires an unprivileged but authenticated local user (CVSS PR:L) who has open access to a vt(4) virtual terminal device and can issue the CONS_HISTORY console ioctl with an attacker-chosen oversized history size - that oversized size is the concrete trigger. There is no network vector (AV:L) and no user interaction (UI:N). Limiting factors that reduce real-world risk: the attacker must already have a local account/shell on the FreeBSD host, must be able to open a vt(4) device node (so systems that deny untrusted users console-device access are not exposed), and the host must be running an unpatched 14.3/14.4/15.0 release. Single-user or single-tenant deployments where no untrusted local users exist face minimal practical risk.

Impact

Signals are internally consistent and point to a credible but locally-scoped threat. The CVSS 3.1 vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (7.8 High) reflects local attack vector, low complexity, low privileges (any user with device access), no user interaction, and full CIA impact consistent with kernel memory corruption leading to privilege escalation. EPSS is low (0.18%, 8th percentile), which is expected and not contradictory: EPSS predicts broad remote mass-exploitation likelihood, and a local-only kernel bug requiring an authenticated session on a FreeBSD host will naturally score low even when genuinely dangerous on multi-user systems. This is not in CISA KEV and no POC has been published, so there is no evidence of active exploitation. Real-world priority is high for multi-user, shared, or shell-providing FreeBSD systems (jails hosts, hosting providers, shared dev boxes) where untrusted local users exist, and lower for single-user or single-tenant appliances where the local-access prerequisite is rarely met by an adversary.

Exploit ScenarioDerived

An attacker with an unprivileged shell account on a shared FreeBSD server (for example a hosting or jail-host environment) opens a vt(4) device and issues a CONS_HISTORY ioctl with a deliberately oversized history value, triggering the integer overflow and a controlled heap out-of-bounds write. By grooming kernel heap objects around the undersized allocation, the attacker overwrites adjacent kernel data to corrupt credentials or hijack control flow and escalate to root. No public exploit code is currently identified, and the low attack complexity (AC:L) means a working exploit would be reliable once developed.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 29, 2026

Local privilege escalation in the FreeBSD kernel's vt(4) console driver stems from an integer overflow in the CONS_HISTORY ioctl handler, where an unvalidated history-size value undersizes a heap allocation and a subsequent buffer initialization writes past its end. Any unprivileged local user with access to a vt(4) terminal device can corrupt kernel heap memory and potentially escalate to root. Exploitation is local (PR:L) with no public exploit identified at time of analysis and a low EPSS of 0.18% (8th percentile).

RemediationAI

Apply the FreeBSD-released patches: update to FreeBSD 14.3-RELEASE-p15, 14.4-RELEASE-p6, or 15.0-RELEASE-p10 (or later) per advisory FreeBSD-SA-26:34.vt at https://security.freebsd.org/advisories/FreeBSD-SA-26:34.vt.asc, typically via freebsd-update fetch && freebsd-update install followed by a reboot, or by rebuilding the kernel from corrected sources. Where immediate patching is not possible, reduce exposure by restricting access to vt(4) console/terminal device nodes so untrusted local users cannot open them, and avoid granting shell access to untrusted accounts on affected hosts; on systems that do not require the vt scrollback console, limiting who can reach the physical/virtual console reduces the attack surface. The trade-off of restricting console device access is potential disruption to legitimate local console users and tooling that relies on the history ioctl, so validate in a maintenance window. Patching is strongly preferred over workarounds because the underlying ioctl is part of standard kernel console functionality.

Affected VersionsENISA

FreeBSD 14.3-RELEASE <p15
FreeBSD 14.4-RELEASE <p6
FreeBSD 15.0-RELEASE <p10

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 flaw lives in vt(4), FreeBSD's modern virtual terminal/console subsystem, specifically its scrollback history feature exposed through the CONS_HISTORY console ioctl. The root cause is CWE-190 (Integer Overflow or Wraparound): the handler multiplies/computes a buffer size from an attacker-supplied history size without bounds checking, so a sufficiently large value wraps the size calculation and yields a heap allocation smaller than the logically intended buffer. The driver then initializes the buffer assuming the larger requested size, producing a classic heap out-of-bounds write inside kernel address space. The CPE cpe:2.3:a:freebsd:freebsd:*:*:*:*:* identifies the affected component as the FreeBSD base operating system itself rather than a third-party port.

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

Vendor (freebsd) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local access to a vt(4) device by an unprivileged user (AV:L/PR:L), straightforward overflow trigger (AC:L), and kernel memory corruption enabling root escalation gives full C/I/A impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (freebsd).

CVSS VectorVendor: freebsd

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

Lifecycle Timeline

2
CVSS changed
Jun 29, 2026 - 20:22 NVD
7.8 (HIGH)
CVE Published
Jun 27, 2026 - 09:25 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

The CONS_HISTORY ioctl handler did not adequately validate the requested history size. A large value caused an integer overflow in the buffer size calculation, resulting in a heap allocation smaller than expected. Subsequent initialization of the buffer wrote beyond the end of the allocation.

An unprivileged local user with access to a vt(4) device can trigger an out-of-bounds write in the kernel, potentially escalating privileges.

Executive ViewAI

Why It Matters

A vulnerability in FreeBSD's kernel console driver allows local system users to escalate privileges to root. Organizations operating FreeBSD systems with multi-user access face potential unauthorized system compromise and administrative control by unprivileged users.

Business Impact: High
Compensating Controls

Restrict vt(4) device file permissions to administrative users only; disable vt(4) kernel module if console functionality is not operationally required; monitor system logs for unauthorized device access and potential heap corruption indicators.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
FreeBSD is a widely used server/appliance OS but far less prevalent than Linux
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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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