{"api_version":"1","generated_at":"2026-12-03T13:40:16+00:00","cve":"CVE-2026-143154","urls":{"html":"https://cve.report/CVE-2026-143154","api":"https://cve.report/api/cve/CVE-2026-143154.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143154","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143154"},"summary":{"title":"tls: only install push_pending_record for a TX context","description":"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->push_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\".","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:50","updated_at":"2026-12-03 10:17:50"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/2df23216d7ac87cc707a8c0a3665eb3ebca8c964","name":"https://git.kernel.org/stable/c/2df23216d7ac87cc707a8c0a3665eb3ebca8c964","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c47e766c5307c06a78304582b2b5b5ab01ee1358","name":"https://git.kernel.org/stable/c/c47e766c5307c06a78304582b2b5b5ab01ee1358","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/18f4e9564c974f71fd542110accead449452e746","name":"https://git.kernel.org/stable/c/18f4e9564c974f71fd542110accead449452e746","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ef01c2770c81966221753a6c1c8b70b9efd80486","name":"https://git.kernel.org/stable/c/ef01c2770c81966221753a6c1c8b70b9efd80486","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2325edb8908f06b956acb8e45869ff465f9819ad","name":"https://git.kernel.org/stable/c/2325edb8908f06b956acb8e45869ff465f9819ad","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5a3882bda2b37b30af5ab79d99a3def2d2176b6f","name":"https://git.kernel.org/stable/c/5a3882bda2b37b30af5ab79d99a3def2d2176b6f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143154","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143154","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e8f69799810c32dd40c6724d829eccc70baad07f 5a3882bda2b37b30af5ab79d99a3def2d2176b6f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e8f69799810c32dd40c6724d829eccc70baad07f 2df23216d7ac87cc707a8c0a3665eb3ebca8c964 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e8f69799810c32dd40c6724d829eccc70baad07f ef01c2770c81966221753a6c1c8b70b9efd80486 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e8f69799810c32dd40c6724d829eccc70baad07f 2325edb8908f06b956acb8e45869ff465f9819ad git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e8f69799810c32dd40c6724d829eccc70baad07f 18f4e9564c974f71fd542110accead449452e746 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e8f69799810c32dd40c6724d829eccc70baad07f c47e766c5307c06a78304582b2b5b5ab01ee1358 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.276 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.227 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/tls/tls_sw.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"5a3882bda2b37b30af5ab79d99a3def2d2176b6f","status":"affected","version":"e8f69799810c32dd40c6724d829eccc70baad07f","versionType":"git"},{"lessThan":"2df23216d7ac87cc707a8c0a3665eb3ebca8c964","status":"affected","version":"e8f69799810c32dd40c6724d829eccc70baad07f","versionType":"git"},{"lessThan":"ef01c2770c81966221753a6c1c8b70b9efd80486","status":"affected","version":"e8f69799810c32dd40c6724d829eccc70baad07f","versionType":"git"},{"lessThan":"2325edb8908f06b956acb8e45869ff465f9819ad","status":"affected","version":"e8f69799810c32dd40c6724d829eccc70baad07f","versionType":"git"},{"lessThan":"18f4e9564c974f71fd542110accead449452e746","status":"affected","version":"e8f69799810c32dd40c6724d829eccc70baad07f","versionType":"git"},{"lessThan":"c47e766c5307c06a78304582b2b5b5ab01ee1358","status":"affected","version":"e8f69799810c32dd40c6724d829eccc70baad07f","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/tls/tls_sw.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.18"},{"lessThan":"4.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.276","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.227","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.276","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.227","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"4.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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->push_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\"."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:19:55.971Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/5a3882bda2b37b30af5ab79d99a3def2d2176b6f"},{"url":"https://git.kernel.org/stable/c/2df23216d7ac87cc707a8c0a3665eb3ebca8c964"},{"url":"https://git.kernel.org/stable/c/ef01c2770c81966221753a6c1c8b70b9efd80486"},{"url":"https://git.kernel.org/stable/c/2325edb8908f06b956acb8e45869ff465f9819ad"},{"url":"https://git.kernel.org/stable/c/18f4e9564c974f71fd542110accead449452e746"},{"url":"https://git.kernel.org/stable/c/c47e766c5307c06a78304582b2b5b5ab01ee1358"}],"title":"tls: only install push_pending_record for a TX context","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143154","datePublished":"2026-12-03T09:19:55.971Z","dateReserved":"2026-12-03T03:10:28.355Z","dateUpdated":"2026-12-03T09:19:55.971Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:50","lastModifiedDate":"2026-12-03 10:17:50","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143154","Ordinal":"1","Title":"tls: only install push_pending_record for a TX context","CVE":"CVE-2026-143154","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143154","Ordinal":"1","NoteData":"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->push_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\".","Type":"Description","Title":"tls: only install push_pending_record for a TX context"}]}}}