{"api_version":"1","generated_at":"2026-12-03T06:04:44+00:00","cve":"CVE-2026-142896","urls":{"html":"https://cve.report/CVE-2026-142896","api":"https://cve.report/api/cve/CVE-2026-142896.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142896","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142896"},"summary":{"title":"tls: avoid field-spanning write when copying crypto info","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: avoid field-spanning write when copying crypto info\n\ndo_tls_setsockopt_conf() copies the cipher-specific part of the crypto\ninfo to crypto_info + 1, where crypto_info points at the 4-byte info\nmember of union tls_crypto_context. When optval is a kernel sockptr,\ncopy_from_sockptr_offset() is a memcpy(), and FORTIFY_SOURCE bounds the\ndestination by that member:\n\n  [    6.948348] memcpy: detected field-spanning write (size 52) of single field \"dst\" at include/linux/sockptr.h:49 (size 0)\n  [    6.948480] WARNING: include/linux/sockptr.h:49 at tls_setsockopt+0x9b2/0xa30, CPU#1: init/1\n  [    7.001355] Call Trace:\n  [    7.003146]  do_sock_setsockopt+0xb0/0x190\n  [    7.003975]  __sys_setsockopt+0x76/0xc0\n  [    7.005368]  do_syscall_64+0xda/0x4b0\n\ntls_setsockopt() gets a kernel sockptr whenever a cgroup setsockopt BPF\nprogram is attached, even one that leaves the option alone, because\n__cgroup_bpf_run_filter_setsockopt() passes optval on in a kernel\nbuffer. With a no-op program on the root cgroup, a plain TLS_TX\nsetsockopt() with AES-GCM-256 triggers the warning above on an x86_64\nbuild with CONFIG_FORTIFY_SOURCE.\n\nCopy into the union at offset sizeof(struct tls_crypto_info) instead.\ncrypto_ctx already points at the right union for both the first set\nand the TLS 1.3 rekey (tmp) case, and the address is unchanged.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:28","updated_at":"2026-12-03 04:18:28"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/202c9cb2130528f0ce9845b0f04879ee75d78a3c","name":"https://git.kernel.org/stable/c/202c9cb2130528f0ce9845b0f04879ee75d78a3c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c43c1c24f3cdc0d2d3f59e5686573ac3129637aa","name":"https://git.kernel.org/stable/c/c43c1c24f3cdc0d2d3f59e5686573ac3129637aa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/69bb302af0ee1b570a49689970367ccfee406b1c","name":"https://git.kernel.org/stable/c/69bb302af0ee1b570a49689970367ccfee406b1c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b92cd530e692fceff6c40187c700e94033fe5f9c","name":"https://git.kernel.org/stable/c/b92cd530e692fceff6c40187c700e94033fe5f9c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c72fbed869f9fc1048323d6b90c462c4e14d95c2","name":"https://git.kernel.org/stable/c/c72fbed869f9fc1048323d6b90c462c4e14d95c2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7a55f31d959668bcc072e33b2e6ae3313f21d600","name":"https://git.kernel.org/stable/c/7a55f31d959668bcc072e33b2e6ae3313f21d600","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142896","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142896","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a7b75c5a8c41445f33efb663887ff5f5c3b4454b b92cd530e692fceff6c40187c700e94033fe5f9c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a7b75c5a8c41445f33efb663887ff5f5c3b4454b 202c9cb2130528f0ce9845b0f04879ee75d78a3c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a7b75c5a8c41445f33efb663887ff5f5c3b4454b c72fbed869f9fc1048323d6b90c462c4e14d95c2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a7b75c5a8c41445f33efb663887ff5f5c3b4454b 7a55f31d959668bcc072e33b2e6ae3313f21d600 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a7b75c5a8c41445f33efb663887ff5f5c3b4454b 69bb302af0ee1b570a49689970367ccfee406b1c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a7b75c5a8c41445f33efb663887ff5f5c3b4454b c43c1c24f3cdc0d2d3f59e5686573ac3129637aa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * 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_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"b92cd530e692fceff6c40187c700e94033fe5f9c","status":"affected","version":"a7b75c5a8c41445f33efb663887ff5f5c3b4454b","versionType":"git"},{"lessThan":"202c9cb2130528f0ce9845b0f04879ee75d78a3c","status":"affected","version":"a7b75c5a8c41445f33efb663887ff5f5c3b4454b","versionType":"git"},{"lessThan":"c72fbed869f9fc1048323d6b90c462c4e14d95c2","status":"affected","version":"a7b75c5a8c41445f33efb663887ff5f5c3b4454b","versionType":"git"},{"lessThan":"7a55f31d959668bcc072e33b2e6ae3313f21d600","status":"affected","version":"a7b75c5a8c41445f33efb663887ff5f5c3b4454b","versionType":"git"},{"lessThan":"69bb302af0ee1b570a49689970367ccfee406b1c","status":"affected","version":"a7b75c5a8c41445f33efb663887ff5f5c3b4454b","versionType":"git"},{"lessThan":"c43c1c24f3cdc0d2d3f59e5686573ac3129637aa","status":"affected","version":"a7b75c5a8c41445f33efb663887ff5f5c3b4454b","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/tls/tls_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.9"},{"lessThan":"5.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: avoid field-spanning write when copying crypto info\n\ndo_tls_setsockopt_conf() copies the cipher-specific part of the crypto\ninfo to crypto_info + 1, where crypto_info points at the 4-byte info\nmember of union tls_crypto_context. When optval is a kernel sockptr,\ncopy_from_sockptr_offset() is a memcpy(), and FORTIFY_SOURCE bounds the\ndestination by that member:\n\n  [    6.948348] memcpy: detected field-spanning write (size 52) of single field \"dst\" at include/linux/sockptr.h:49 (size 0)\n  [    6.948480] WARNING: include/linux/sockptr.h:49 at tls_setsockopt+0x9b2/0xa30, CPU#1: init/1\n  [    7.001355] Call Trace:\n  [    7.003146]  do_sock_setsockopt+0xb0/0x190\n  [    7.003975]  __sys_setsockopt+0x76/0xc0\n  [    7.005368]  do_syscall_64+0xda/0x4b0\n\ntls_setsockopt() gets a kernel sockptr whenever a cgroup setsockopt BPF\nprogram is attached, even one that leaves the option alone, because\n__cgroup_bpf_run_filter_setsockopt() passes optval on in a kernel\nbuffer. With a no-op program on the root cgroup, a plain TLS_TX\nsetsockopt() with AES-GCM-256 triggers the warning above on an x86_64\nbuild with CONFIG_FORTIFY_SOURCE.\n\nCopy into the union at offset sizeof(struct tls_crypto_info) instead.\ncrypto_ctx already points at the right union for both the first set\nand the TLS 1.3 rekey (tmp) case, and the address is unchanged."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:25:46.359Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/b92cd530e692fceff6c40187c700e94033fe5f9c"},{"url":"https://git.kernel.org/stable/c/202c9cb2130528f0ce9845b0f04879ee75d78a3c"},{"url":"https://git.kernel.org/stable/c/c72fbed869f9fc1048323d6b90c462c4e14d95c2"},{"url":"https://git.kernel.org/stable/c/7a55f31d959668bcc072e33b2e6ae3313f21d600"},{"url":"https://git.kernel.org/stable/c/69bb302af0ee1b570a49689970367ccfee406b1c"},{"url":"https://git.kernel.org/stable/c/c43c1c24f3cdc0d2d3f59e5686573ac3129637aa"}],"title":"tls: avoid field-spanning write when copying crypto info","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142896","datePublished":"2026-12-03T03:25:46.359Z","dateReserved":"2026-12-03T03:10:28.336Z","dateUpdated":"2026-12-03T03:25:46.359Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:28","lastModifiedDate":"2026-12-03 04:18:28","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142896","Ordinal":"1","Title":"tls: avoid field-spanning write when copying crypto info","CVE":"CVE-2026-142896","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142896","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: avoid field-spanning write when copying crypto info\n\ndo_tls_setsockopt_conf() copies the cipher-specific part of the crypto\ninfo to crypto_info + 1, where crypto_info points at the 4-byte info\nmember of union tls_crypto_context. When optval is a kernel sockptr,\ncopy_from_sockptr_offset() is a memcpy(), and FORTIFY_SOURCE bounds the\ndestination by that member:\n\n  [    6.948348] memcpy: detected field-spanning write (size 52) of single field \"dst\" at include/linux/sockptr.h:49 (size 0)\n  [    6.948480] WARNING: include/linux/sockptr.h:49 at tls_setsockopt+0x9b2/0xa30, CPU#1: init/1\n  [    7.001355] Call Trace:\n  [    7.003146]  do_sock_setsockopt+0xb0/0x190\n  [    7.003975]  __sys_setsockopt+0x76/0xc0\n  [    7.005368]  do_syscall_64+0xda/0x4b0\n\ntls_setsockopt() gets a kernel sockptr whenever a cgroup setsockopt BPF\nprogram is attached, even one that leaves the option alone, because\n__cgroup_bpf_run_filter_setsockopt() passes optval on in a kernel\nbuffer. With a no-op program on the root cgroup, a plain TLS_TX\nsetsockopt() with AES-GCM-256 triggers the warning above on an x86_64\nbuild with CONFIG_FORTIFY_SOURCE.\n\nCopy into the union at offset sizeof(struct tls_crypto_info) instead.\ncrypto_ctx already points at the right union for both the first set\nand the TLS 1.3 rekey (tmp) case, and the address is unchanged.","Type":"Description","Title":"tls: avoid field-spanning write when copying crypto info"}]}}}