Severity: Unknown
Affected Package: kernel/ktls
Summary: Kernel memory disclosure via KTLS control messages (CVE-2026-101313)
Kernel TLS (KTLS) moves Transport Layer Security record processing into the kernel, allowing applications to encrypt and decrypt socket data without copying it to and from userspace and to serve TLS data with sendfile(2). Applications using KTLS on the transmit path may select the TLS record type of each outgoing record by passing a TLS_SET_RECORD_TYPE control message to sendmsg(2). sosend_generic() in sys/kern/uipc_socket.c accepted a TLS_SET_RECORD_TYPE control message as soon as it was large enough to hold a struct cmsghdr, and then read the one-byte record type from the data following the header. A control message consisting of only the cmsghdr passed this check, so the kernel read one byte past the end of the control data and used it as the record type of the outgoing TLS record. A local user with a socket on which transmit-side KTLS is enabled can send a crafted TLS_SET_RECORD_TYPE control message and cause one byte of uninitialized kernel memory to be used as the record type. For TLS 1.2 connections the record type is sent in the plaintext record header, so this discloses kernel memory to the peer (which the user may control). Systems with the kern.ipc.tls.enable sysctl set to 0 are unaffected.
No specific recommendations provided.
Aliases: CVE-2026-101313
Published: November 18, 2026
Last Modified: November 18, 2026