Arbitrary file overwrite via the KTLS receive path

Summary

CVECVE-2026-45257
StatePUBLISHED
Assignerfreebsd
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-06-26 15:16:39 UTC
Updated2026-06-26 18:56:23 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from ADP

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

Problem Types: CWE-123 | CWE-123 CWE-123 Write-what-where Condition


VersionSourceTypeScoreSeverityVector
3.1ADPDECLARED7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

NVD Known Affected Configurations (CPE 2.3)

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA FreeBSD FreeBSD affected 15.0-RELEASE p10 release Not specified
CNA FreeBSD FreeBSD affected 14.4-RELEASE p6 release Not specified
CNA FreeBSD FreeBSD affected 14.3-RELEASE p15 release Not specified

References

ReferenceSourceLinkTags
security.freebsd.org/advisories/FreeBSD-SA-26:26.ktls.asc [email protected] security.freebsd.org Vendor Advisory
www.openwall.com/lists/oss-security/2026/06/10/21 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Third Party Advisory
www.openwall.com/lists/oss-security/2026/06/10/20 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Third Party Advisory
www.heise.de/en/news/FreeBSD-Privilege-Escalation-Vulnerability-with-Tongu... 134c704f-9b21-4f2e-91b3-4a467353bcc0 www.heise.de Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Bumsrakete (en)

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report