{"id":"CVE-2026-143218","state":"PUBLISHED","title":"net: require a full socket in sock_confirm_neigh()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: require a full socket in sock_confirm_neigh()\n\nAn skb can retain dst_pending_confirm after its original output and\nsocket owner have changed. For example, a raw MSG_CONFIRM packet can\ncross veth, have a TCP request socket assigned by TPROXY, and be bridged\ninto gretap. Neighbor output for the outer packet then calls\nsock_confirm_neigh() with the request socket in skb->sk.\n\nThe helper unconditionally treats a non-NULL skb->sk as a full socket\nwhen accessing sk_dst_pending_confirm. TCP request and TIME_WAIT sockets\ndo not contain that field. This produces an out-of-bounds four-byte read\nand, if the word is nonzero, an out-of-bounds four-byte zero write. A\nKASAN-enabled kernel reports:\n\n  BUG: KASAN: slab-out-of-bounds in ip_finish_output2+0xc9f/0xd60\n  Read of size 4 at addr ffff8880bdc3d880 by task tproxy_dst_conf/1771\n\nRequire sk_fullsock() before accessing the socket field, moving the\nexisting helper earlier in the header to make it available here. Keep\nneigh_confirm() independent of the socket type so the skb's neighbor\nconfirmation still works, including for socketless packets. This also\ncovers the IPv6, VRF, and BPF neighbor-output callers.","publishedAt":"2026-12-03T09:20:37.174Z","updatedAt":"2026-12-03T09:20:37.174Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"76d3dbb497bf2f1e6c9c91726eb99794dfcb24b4","versionType":"git"},{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"af303cad749e40b5f4206e6dc2b0f19ed133e038","versionType":"git"},{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"7d6df3e17c07d919c073dcdab57335e2589424c4","versionType":"git"},{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"0b71b1991b0e2e2f48fa0e6d1226c9d66f551509","versionType":"git"},{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"54a0b6c82bc5e01565f14de0add0bababb57e449","versionType":"git"},{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"c78b47704934e44442f4e48bfdcc99039e3b85a5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/sock.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/sock.h"]}],"references":["https://git.kernel.org/stable/c/76d3dbb497bf2f1e6c9c91726eb99794dfcb24b4","https://git.kernel.org/stable/c/af303cad749e40b5f4206e6dc2b0f19ed133e038","https://git.kernel.org/stable/c/7d6df3e17c07d919c073dcdab57335e2589424c4","https://git.kernel.org/stable/c/0b71b1991b0e2e2f48fa0e6d1226c9d66f551509","https://git.kernel.org/stable/c/54a0b6c82bc5e01565f14de0add0bababb57e449","https://git.kernel.org/stable/c/c78b47704934e44442f4e48bfdcc99039e3b85a5"],"weaknesses":[],"ingestedAt":"2026-12-03T09:42:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143218.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143218","state":"PUBLISHED","datePublished":"2026-12-03T09:20:37.174Z","dateUpdated":"2026-12-03T09:20:37.174Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.360Z"},"containers":{"cna":{"title":"net: require a full socket in sock_confirm_neigh()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: require a full socket in sock_confirm_neigh()\n\nAn skb can retain dst_pending_confirm after its original output and\nsocket owner have changed. For example, a raw MSG_CONFIRM packet can\ncross veth, have a TCP request socket assigned by TPROXY, and be bridged\ninto gretap. Neighbor output for the outer packet then calls\nsock_confirm_neigh() with the request socket in skb->sk.\n\nThe helper unconditionally treats a non-NULL skb->sk as a full socket\nwhen accessing sk_dst_pending_confirm. TCP request and TIME_WAIT sockets\ndo not contain that field. This produces an out-of-bounds four-byte read\nand, if the word is nonzero, an out-of-bounds four-byte zero write. A\nKASAN-enabled kernel reports:\n\n  BUG: KASAN: slab-out-of-bounds in ip_finish_output2+0xc9f/0xd60\n  Read of size 4 at addr ffff8880bdc3d880 by task tproxy_dst_conf/1771\n\nRequire sk_fullsock() before accessing the socket field, moving the\nexisting helper earlier in the header to make it available here. Keep\nneigh_confirm() independent of the socket type so the skb's neighbor\nconfirmation still works, including for socketless packets. This also\ncovers the IPv6, VRF, and BPF neighbor-output callers."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"76d3dbb497bf2f1e6c9c91726eb99794dfcb24b4","versionType":"git"},{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"af303cad749e40b5f4206e6dc2b0f19ed133e038","versionType":"git"},{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"7d6df3e17c07d919c073dcdab57335e2589424c4","versionType":"git"},{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"0b71b1991b0e2e2f48fa0e6d1226c9d66f551509","versionType":"git"},{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"54a0b6c82bc5e01565f14de0add0bababb57e449","versionType":"git"},{"version":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e","status":"affected","lessThan":"c78b47704934e44442f4e48bfdcc99039e3b85a5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/sock.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/sock.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/76d3dbb497bf2f1e6c9c91726eb99794dfcb24b4"},{"url":"https://git.kernel.org/stable/c/af303cad749e40b5f4206e6dc2b0f19ed133e038"},{"url":"https://git.kernel.org/stable/c/7d6df3e17c07d919c073dcdab57335e2589424c4"},{"url":"https://git.kernel.org/stable/c/0b71b1991b0e2e2f48fa0e6d1226c9d66f551509"},{"url":"https://git.kernel.org/stable/c/54a0b6c82bc5e01565f14de0add0bababb57e449"},{"url":"https://git.kernel.org/stable/c/c78b47704934e44442f4e48bfdcc99039e3b85a5"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:37.174Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}