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

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-26T14:50:27.157Z
- Modified: 2026-06-27T05:16:45.920Z
- Weaknesses: CWE-123
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: freebsd

## Description

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.

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 15.0-RELEASE before p10; from 14.4-RELEASE before p6; from 14.3-RELEASE before p15; 14.3; 14.4; 15.0; 15.1

## References

- <https://www.heise.de/en/news/FreeBSD-Privilege-Escalation-Vulnerability-with-Tongue-in-Cheek-Codename-11329109.html> (exploit, third-party-advisory)
- <https://security.freebsd.org/advisories/FreeBSD-SA-26:26.ktls.asc> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/06/10/20> (mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2026/06/10/21> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2026-45257](https://www.cve.org/CVERecord?id=CVE-2026-45257), CVE Terms of Use, modified 2026-06-27
- NVD: [CVE-2026-45257](https://nvd.nist.gov/vuln/detail/CVE-2026-45257), Public domain, modified 2026-06-27

---

Page: https://cve.day/CVE-2026-45257 · Whole record: https://cve.day/CVE-2026-45257.json · Rebuilt by cve.day 2026-11-25T22:59:26.467Z
