CVE-2026-45257
Arbitrary file overwrite via the KTLS receive path
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.
INFO
Published Date :
June 26, 2026, 3:16 p.m.
Last Modified :
June 27, 2026, 5:16 a.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
Solution
- Apply kernel patches for KTLS and sendfile handling.
- Review KTLS and sendfile usage on loopback connections.
- Monitor file integrity for critical system binaries.
Public PoC/Exploit Available at Github
CVE-2026-45257 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-45257.
| URL | Resource |
|---|---|
| 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 |
| https://www.heise.de/en/news/FreeBSD-Privilege-Escalation-Vulnerability-with-Tongue-in-Cheek-Codename-11329109.html | Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-45257 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-45257
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
一个 CVE 漏洞预警知识库,无 exp/poc,部分包含修复方案。A knowledge base of CVE security vulnerability, no PoCs/exploits.
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-45257 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-45257 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 27, 2026
Action Type Old Value New Value Changed SSVC {'id': 'CVE-2026-45257', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-26T15:26:36.260507Z'} {'id': 'CVE-2026-45257', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-11T00:00:00+00:00'} -
Initial Analysis by [email protected]
Jun. 26, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:o:freebsd:freebsd:15.0:p1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p2:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:-:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p2:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p3:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p4:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p5:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p6:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p7:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p8:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:-:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:rc1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p3:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p9:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:-:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p4:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p10:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p11:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:p1:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:p2:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p5:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p6:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p12:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p13:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:p3:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:p4:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p7:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p8:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.3:p14:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:14.4:p5:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.0:p9:*:*:*:*:*:* *cpe:2.3:o:freebsd:freebsd:15.1:rc2:*:*:*:*:*:* Added Reference Type FreeBSD: https://security.freebsd.org/advisories/FreeBSD-SA-26:26.ktls.asc Types: Vendor Advisory Added Reference Type CISA-ADP: https://www.heise.de/en/news/FreeBSD-Privilege-Escalation-Vulnerability-with-Tongue-in-Cheek-Codename-11329109.html Types: Third Party Advisory Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2026/06/10/20 Types: Mailing List, Third Party Advisory Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2026/06/10/21 Types: Mailing List, Third Party Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 26, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added Reference https://www.heise.de/en/news/FreeBSD-Privilege-Escalation-Vulnerability-with-Tongue-in-Cheek-Codename-11329109.html Added SSVC {'id': 'CVE-2026-45257', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-26T15:26:36.260507Z'} -
New CVE Received by [email protected]
Jun. 26, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'FreeBSD', 'modules': ['ktls'], 'product': 'FreeBSD', 'versions': [{'status': 'affected', 'version': '15.0-RELEASE', 'lessThan': 'p10', 'versionType': 'release'}, {'status': 'affected', 'version': '14.4-RELEASE', 'lessThan': 'p6', 'versionType': 'release'}, {'status': 'affected', 'version': '14.3-RELEASE', 'lessThan': 'p15', 'versionType': 'release'}], 'defaultStatus': 'unknown'}] Added 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. Added CWE CWE-123 Added Reference https://security.freebsd.org/advisories/FreeBSD-SA-26:26.ktls.asc -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Jun. 26, 2026
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2026/06/10/20 Added Reference http://www.openwall.com/lists/oss-security/2026/06/10/21