{"id":"AZL-118214","summary":"CVE-2026-143154 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: only install push_pending_record for a TX context\n\ntls_set_sw_offload() assigns ctx-\u003epush_pending_record for both\ndirections, but the hook is a TX-side dispatcher. On a socket whose TX\nside is HW offloaded, tls_set_device_offload() installs\ntls_device_push_pending_record(); any later TLS_RX setsockopt\noverwrites it with tls_sw_push_pending_record(), because\ntls_set_device_offload_rx() itself calls tls_set_sw_offload(sk, 0, NULL)\nfor the software half of a successful HW RX offload, and so does the\nfallback when the RX offload is declined (NIC with TX-only offload,\ntls_dev_add() failure).\n\nFrom then on tls_handle_open_record() (a TLS_SET_RECORD_TYPE cmsg after\na MSG_MORE send, or the close path with a pending writer) runs\ntls_sw_push_pending_record() against priv_ctx_tx, which is a\nstruct tls_offload_context_tx, not a struct tls_sw_context_tx, and\nreads open_rec from inside the offload context. On x86_64 without lock\ndebugging that field overlays sg_tx_data[2].dma_address, which is never\nset, so the push is silently skipped and the data buffered by the\nMSG_MORE send is later sent under the cmsg's record type, e.g.\napplication data in a handshake or alert record. Enabling\nCONFIG_DEBUG_SPINLOCK, CONFIG_DEBUG_LOCK_ALLOC and CONFIG_LOCKDEP, but\nnot CONFIG_LOCK_STAT, in the tested x86_64 configuration moves open_rec\nover sg_tx_data[5].page_link. Once populated, its page pointer and\nscatterlist flags are interpreted as a tls_rec pointer and dereferenced\nwhile reading msg_plaintext.sg.size.\n\nOnly set the hook when initialising the TX side.\n\nFound by code review while developing TLS 1.3 HW offload rekey support.\n\nTested with HW TLS TX and RX offload on Mellanox ConnectX-6 Dx (Crypto\nEnabled): after setting TLS_RX, send() \"AAAA\" with MSG_MORE, then\nsendmsg() \"BBBB\" with a TLS_SET_RECORD_TYPE cmsg for a handshake\nrecord. Without this patch the peer receives a single handshake record\n\"AAAABBBB\"; with it, an application data record \"AAAA\" followed by a\nhandshake record \"BBBB\".","modified":"2026-12-04T14:18:39.933358999Z","published":"2026-12-03T10:17:50Z","upstream":["CVE-2026-143154"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143154"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-118214.json"}}],"schema_version":"1.9.2"}