PT-2026-167012
CVE-2026-143154
·
Publicado
2026-12-03
·
Atualizado
2026-12-03
Descrição por
Pontuação
N/A
Não disponívelNão há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.
In the Linux kernel, the following vulnerability has been resolved:
tls: only install push pending record for a TX context
tls set sw offload() assigns ctx->push pending record for both
directions, but the hook is a TX-side dispatcher. On a socket whose TX
side is HW offloaded, tls set device offload() installs
tls device push pending record(); any later TLS RX setsockopt
overwrites it with tls sw push pending record(), because
tls set device offload rx() itself calls tls set sw offload(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,
tls dev add() failure).
From then on tls handle open record() (a TLS SET RECORD TYPE cmsg after
a MSG MORE send, or the close path with a pending writer) runs
tls sw push pending record() against priv ctx tx, which is a
struct tls offload context tx, not a struct tls sw context tx, and
reads open rec from inside the offload context. On x86 64 without lock
debugging that field overlays sg tx data[2].dma address, which is never
set, so the push is silently skipped and the data buffered by the
MSG MORE send is later sent under the cmsg's record type, e.g.
application data in a handshake or alert record. Enabling
CONFIG DEBUG SPINLOCK, CONFIG DEBUG LOCK ALLOC and CONFIG LOCKDEP, but
not CONFIG LOCK STAT, in the tested x86 64 configuration moves open rec
over sg tx data[5].page link. Once populated, its page pointer and
scatterlist flags are interpreted as a tls rec pointer and dereferenced
while reading msg plaintext.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 TLS RX, send() "AAAA" with MSG MORE, then
sendmsg() "BBBB" with a TLS SET RECORD TYPE 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".
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾