Skip to main content
Vulnerability Database/CVE-2026-101302

CVE-2026-101302: FreeBSD TLS 1.3 DoS Vulnerability

CVE-2026-101302 is a denial of service vulnerability in FreeBSD TLS 1.3 that allows remote attackers to trigger kernel panics through crafted records. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-101302 Overview

CVE-2026-101302 is a null pointer dereference vulnerability in the FreeBSD kernel TLS (ktls) implementation. The flaw resides in the code that parses the inner record type of a decrypted TLS 1.3 record. An off-by-one bug in the parsing loop triggers an integer underflow, followed by an unconditional null pointer dereference that panics the kernel. A remote TLS 1.3 peer can send a malformed record to any FreeBSD host that terminates TLS 1.3 in the kernel, causing a Denial of Service (DoS). The vulnerability is tracked under CWE-193: Off-by-one Error.

Critical Impact

A single malformed TLS 1.3 record from an authenticated or peer-reachable attacker panics the FreeBSD kernel, disrupting all services on the host.

Affected Products

  • FreeBSD 14.4 (including patch levels p1 through p9)
  • FreeBSD 14.5
  • FreeBSD 15.0 (including patch levels p1 through p13)
  • FreeBSD 15.1 (including patch levels p1 through p3)

Discovery Timeline

  • 2026-10-15 - CVE-2026-101302 published to NVD
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-101302

Vulnerability Analysis

FreeBSD kernel TLS (ktls) offloads TLS record processing from userland into the kernel, allowing high-throughput services such as nginx, sendfile-based web servers, and NFS-over-TLS to decrypt records in kernel context. TLS 1.3 differs from TLS 1.2 in that the real content type (handshake, application data, alert) is encoded as the last non-zero byte of the decrypted payload, with any trailing zero bytes serving as padding.

The FreeBSD ktls code walks the decrypted buffer backwards to locate that final non-zero byte. The parsing routine contains an off-by-one error in its loop boundary. When an attacker crafts a frame whose payload is entirely zero, or whose structure causes the index to decrement past the start of the buffer, the index underflows. The subsequent read dereferences a null pointer, triggering a kernel panic.

Because the bug lives in the TLS 1.3 record demultiplexer, exploitation requires only the ability to complete a TLS 1.3 handshake with a target FreeBSD service that uses ktls. No elevated privilege or user interaction is needed beyond standard protocol participation.

Root Cause

The root cause is a classic off-by-one error [CWE-193] in a length-decrementing loop. The code evaluates the loop termination condition one iteration late, allowing the buffer index to wrap below zero on malformed input. The resulting underflowed index is treated as a valid pointer and dereferenced without a null check, producing an unrecoverable fault in kernel address space.

Attack Vector

The attack vector is network-based. An attacker establishes or participates in a TLS 1.3 session with a FreeBSD host that uses in-kernel TLS and transmits a specially crafted record whose decrypted payload lacks a non-zero content-type byte. The vulnerability has low attack complexity but requires low-privileged protocol-level access (completing the TLS handshake). The impact is restricted to availability: the kernel panics and the host reboots or halts, disrupting every service on the system.

No exploit code or public proof-of-concept is currently available. See the FreeBSD Security Advisory SA-26:67 for the authoritative technical description.

Detection Methods for CVE-2026-101302

Indicators of Compromise

  • Unexpected kernel panics on FreeBSD hosts running TLS 1.3 services, with crash dumps referencing ktls_decrypt or TLS record processing functions.
  • Repeated reboots of FreeBSD systems correlated with inbound TLS 1.3 connections from a single remote peer.
  • ktls statistics (visible via sysctl kern.ipc.tls) showing anomalous counts of failed record decryption immediately before a crash.

Detection Strategies

  • Enable kernel core dumps and inspect panic backtraces for frames inside the ktls record parsing path to confirm exploitation attempts.
  • Correlate host crashes with network flow logs to identify remote peers that opened TLS 1.3 sessions in the seconds leading up to the panic.
  • Deploy TLS-aware network sensors to flag TLS 1.3 records with abnormal padding or zero-length inner payloads.

Monitoring Recommendations

  • Monitor FreeBSD host uptime and generate alerts on unexpected reboots of production systems that terminate TLS 1.3 in kernel.
  • Track ktls sysctl counters and feed them into centralized telemetry to spot pre-crash anomalies.
  • Review authentication and connection logs on TLS-terminating services for repeat connection attempts from the same source immediately preceding a panic.

How to Mitigate CVE-2026-101302

Immediate Actions Required

  • Apply the patched FreeBSD updates referenced in FreeBSD Security Advisory SA-26:67 to all affected 14.4, 14.5, 15.0, and 15.1 hosts.
  • Inventory FreeBSD systems that have ktls enabled via sysctl kern.ipc.tls.enable and prioritize patching for internet-facing services.
  • Restrict network reachability of TLS 1.3 endpoints to trusted peers until patches are deployed.

Patch Information

FreeBSD has published fixes in Security Advisory SA-26:67. Administrators should apply the advisory using freebsd-update fetch install or rebuild the kernel from source after applying the patch. Reboot is required for the fix to take effect because the vulnerable code runs in kernel context. Reference: FreeBSD Security Advisory SA-26:67.

Workarounds

  • Disable kernel TLS by setting sysctl kern.ipc.tls.enable=0 and restarting affected services so that TLS processing falls back to userland libraries.
  • Terminate TLS 1.3 on an upstream reverse proxy or load balancer that is not running the vulnerable FreeBSD code path, forwarding plaintext to backend FreeBSD hosts over a trusted segment.
  • Limit TLS 1.3 negotiation on exposed services where feasible, preferring TLS 1.2 until the host is patched.
bash
# Disable kernel TLS as a temporary workaround
sysctl kern.ipc.tls.enable=0

# Persist the setting across reboots
echo 'kern.ipc.tls.enable=0' >> /etc/sysctl.conf

# Verify ktls is disabled
sysctl kern.ipc.tls.enable

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.