FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

FreeBSD -- Kernel memory disclosure via KTLS control messages

Affected packages
15.1 <= FreeBSD-kernel < 15.1_7
14.5 <= FreeBSD-kernel < 14.5_4
14.4 <= FreeBSD-kernel < 14.4_13

Details

VuXML ID 8f936426-e30f-11f1-a3e1-bc241121aa0a
Discovery 2026-11-17
Entry 2026-11-18

Problem Description:

The code in sosend_generic() which parses TLS_SET_RECORD_TYPE control messages failed to verify that the message was large enough to hold its one-byte payload. A control message containing only a cmsghdr would pass the size check, causing the kernel to read one byte past the end of the message and use it as the TLS record type.

Impact:

A local user with a KTLS-enabled socket can send a crafted TLS_SET_RECORD_TYPE control message to cause the kernel to read one byte of uninitialized kernel memory and use it as the TLS record type in an outgoing TLS record. For TLS 1.2 connections, the record type is visible in the plaintext record header, constituting a kernel information disclosure.

References

CVE Name CVE-2026-101313
FreeBSD Advisory SA-26:74.ktls