{"id":"CVE-2026-143218","summary":"net: require a full socket in sock_confirm_neigh()","details":"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-\u003esk.\n\nThe helper unconditionally treats a non-NULL skb-\u003esk 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.","modified":"2026-12-03T11:01:43.371518960Z","published":"2026-12-03T09:20:37.174Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143218.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0b71b1991b0e2e2f48fa0e6d1226c9d66f551509"},{"type":"WEB","url":"https://git.kernel.org/stable/c/54a0b6c82bc5e01565f14de0add0bababb57e449"},{"type":"WEB","url":"https://git.kernel.org/stable/c/76d3dbb497bf2f1e6c9c91726eb99794dfcb24b4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7d6df3e17c07d919c073dcdab57335e2589424c4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af303cad749e40b5f4206e6dc2b0f19ed133e038"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c78b47704934e44442f4e48bfdcc99039e3b85a5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143218.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143218"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e"},{"fixed":"76d3dbb497bf2f1e6c9c91726eb99794dfcb24b4"},{"fixed":"af303cad749e40b5f4206e6dc2b0f19ed133e038"},{"fixed":"7d6df3e17c07d919c073dcdab57335e2589424c4"},{"fixed":"0b71b1991b0e2e2f48fa0e6d1226c9d66f551509"},{"fixed":"54a0b6c82bc5e01565f14de0add0bababb57e449"},{"fixed":"c78b47704934e44442f4e48bfdcc99039e3b85a5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143218.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.11.0"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143218.json"}}],"schema_version":"1.9.2"}