CVE-2026-45257

published 26 Jun 2026 · updated 27 Jun 2026

Arbitrary file overwrite via the KTLS receive path

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in p15, p6 and p10.

The KTLS receive path decrypted each record in place, assuming that the mbufs holding received data were anonymous and safe to modify. This assumption does not hold for data placed on a socket by sendfile(2), which can reference file-backed memory directly through non-anonymous M_EXTPG pages or EXT_SFBUF mbufs. When the sender transmits such data over a loopback connection without enabling KTLS on the transmit side, the file-backed mbufs reach the receiver's decryption path unchanged. Decrypting a record in place then overwrites the backing file's page cache instead of a private copy of the data. An unprivileged local user who can read a file can overwrite its contents with data of their choosing by sending the file over a loopback connection on which they have enabled KTLS receive. The write modifies the page cache directly, so it bypasses file flags such as schg and is written back to disk. By overwriting a setuid binary or other trusted file, a local user can escalate privileges, potentially gaining full control of the affected system.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
FreeBSD>=14.3-RELEASE <p15, >=14.4-RELEASE <p6, >=15.0-RELEASE <p10p15, p6, p10

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-45257 severity on Zeptric[![CVE-2026-45257](https://zeptric.io/badge/cve/CVE-2026-45257.svg)](https://zeptric.io/cve/CVE-2026-45257)