CVE-2026-45257
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.
Scoring
- Severity
- HIGH
- CVSS base score
- 7.8
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS probability
- 0.18%
- CWE
- CWE-123
- Published
- 2026-06-26
- Last modified
- 2026-06-27
Affected products
- FreeBSD FreeBSD
- FreeBSD FreeBSD
- FreeBSD FreeBSD
Weakness type
Related vulnerabilities
- CVE-2026-81579 — An untrusted Pointer Dereference can be exploited to escalate privileges by an unprivileged user on Windows
- CVE-2026-20469 — In trusted_mem, there is a possible escalation of privilege due to improper input validation. This...
- CVE-2026-47473 — NVIDIA TensorRT-LLM contains a vulnerability where an attacker could cause a write-what-where...
- CVE-2026-41952 — Local privilege escalation due to improper input validation. The following products are affected:...
- CVE-2025-14857 — Semtech LR11xx Memory Write Access Control Bypass
- CVE-2026-25634 — iccDEV memcpy-param-overlap in CIccTagMultiProcessElement::Apply()
- CVE-2025-29943 — Write what were condition within AMD CPUs may allow an admin-privileged attacker to modify the...
- CVE-2025-62164 — VLLM deserialization vulnerability leading to DoS and potential RCE