CVE-2026-143154: tls: only install push_pending_record for a TX context

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

tls: only install pushpendingrecord for a TX context

tlssetswoffload() assigns ctx->pushpendingrecord for both directions, but the hook is a TX-side dispatcher. On a socket whose TX side is HW offloaded, tlssetdeviceoffload() installs tlsdevicepushpendingrecord(); any later TLSRX setsockopt overwrites it with tlsswpushpendingrecord(), because tlssetdeviceoffloadrx() itself calls tlssetswoffload(sk, 0, NULL) for the software half of a successful HW RX offload, and so does the fallback when the RX offload is declined (NIC with TX-only offload, tlsdevadd() failure).

From then on tlshandleopenrecord() (a TLSSETRECORDTYPE cmsg after a MSGMORE send, or the close path with a pending writer) runs tlsswpushpendingrecord() against privctxtx, which is a struct tlsoffloadcontexttx, not a struct tlsswcontexttx, and reads openrec from inside the offload context. On x8664 without lock debugging that field overlays sgtxdata[2].dmaaddress, which is never set, so the push is silently skipped and the data buffered by the MSGMORE send is later sent under the cmsg's record type, e.g. application data in a handshake or alert record. Enabling CONFIGDEBUGSPINLOCK, CONFIGDEBUGLOCKALLOC and CONFIGLOCKDEP, but not CONFIGLOCKSTAT, in the tested x8664 configuration moves openrec over sgtxdata[5].pagelink. Once populated, its page pointer and scatterlist flags are interpreted as a tlsrec pointer and dereferenced while reading msgplaintext.sg.size.

Only set the hook when initialising the TX side.

Found by code review while developing TLS 1.3 HW offload rekey support.

Tested with HW TLS TX and RX offload on Mellanox ConnectX-6 Dx (Crypto Enabled): after setting TLSRX, send() "AAAA" with MSGMORE, then sendmsg() "BBBB" with a TLSSETRECORDTYPE cmsg for a handshake record. Without this patch the peer receives a single handshake record "AAAABBBB"; with it, an application data record "AAAA" followed by a handshake record "BBBB".

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 3, 2026
CVE Published
via MITRE·09:19 AM
Data Sourced
via MITRE·09:19 AM
Description

Frequently Asked Questions

1

Which TLS offload configurations are affected?

The issue requires a socket with TX hardware offload. A later TLS_RX setsockopt can replace the TX device push handler, including when RX hardware offload succeeds or when RX offload is declined or falls back to software, such as with a TX-only NIC or a tls_dev_add() failure.

2

What application behavior can trigger the incorrect record handling?

A TLS_SET_RECORD_TYPE control message after a MSG_MORE send can invoke the incorrect handler. The close path can also invoke it when there is a pending writer.

3

What is the observable effect of the issue?

On x86_64 without lock debugging, the pending push can be silently skipped because the overlaid DMA-address field is unset. Data buffered by MSG_MORE may then be transmitted under the record type specified by a later control message.

4

Which fixes are referenced for remediation?

The provided references identify stable commits 5a3882bda2b37b30af5ab79d99a3def2d2176b6f, 2df23216d7ac87cc707a8c0a3665eb3ebca8c964, and ef01c2770c81966221753a6c1c8b70b9efd80486. No affected or fixed kernel version ranges are provided.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203