CVE-2026-45257: Arbitrary file overwrite via the KTLS receive path

CVE-2026-45257 affects 31 listed versions of FreeBSD in the Dawnsentry catalogue.

7.8CVSS high
Proof of concept publicexploitation
under 1%EPSS (next 30 days)
26 June 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

FreeBSD

31 of 250 listed versions are affected. Fixed in 15.0-RELEASE-p10, 14.4-RELEASE-p6, 14.3-RELEASE-p15. The newest release, 15.1-p7, is not affected.

15.1-rc2 15.0-p9 15.0-p8 15.0-p7 15.0-p6 15.0-p5 15.0-p4 15.0-p3 15.0-p2 15.0-p1 15.0 14.4-p5 14.4-p4 14.4-p3 14.4-p2 14.4-p1 14.4 14.4-rc1 14.3-p14 14.3-p13 14.3-p12 14.3-p11 14.3-p10 14.3-p9 14.3-p8 14.3-p7 14.3-p6 14.3-p5 14.3-p4 14.3-p3 14.3-p2

What it is

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (Freebsd)

Published by Freebsd on 26 June 2026. Last changed 27 June 2026.

Sources

Check one version you run: look CVE-2026-45257 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.