{"id":"CVE-2026-143233","summary":"xsk: fix list corruption in xsk_buff_add_frag()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nxsk: fix list corruption in xsk_buff_add_frag()\n\nIn aligned mode, a fill ring address maps straight to its pool-\u003eheads[]\nentry. If user space posts the same address twice, a driver can pass\nxsk_buff_add_frag() a buffer that is the head of the frame or is\nalready on pool-\u003exskb_list or pool-\u003efree_list.\n\nRe-adding a linked node corrupts the list. With buffers A, B, C, B,\nxsk_rcv_zc() emits two descriptors instead of four and leaves the list\nhead pointing at a self-linked B. When the Rx ring later has no room\nfor a frame, the xsk_buff_free() cleanup follows B into pool-\u003efree_list\nand passes the list head to xp_free():\n\n  BUG: kernel NULL pointer dereference, address: 00000000000000c0\n  RIP: 0010:xp_free+0x1a/0x50\n  Call Trace:\n   xsk_rcv_zc+0xca/0x200\n\nThe head is not on any list and needs a separate check. Adding it as\nits own frag lets bpf_xdp_adjust_tail() free the in-use head and wrap\nsinfo-\u003enr_frags to 255.\n\nReject such buffers before adding them to the frags array, as commit\ne37b2abca804 (\"xsk: fix NULL pointer dereference in __xsk_rcv()\") does\nin the copy path. Callers already drop the frame on failure.\n\nUnaligned mode is not affected, as each fill ring entry gets its own\nxskb from pool-\u003efree_heads[].\n\nReproduced with a KUnit test feeding synthetic buffers to xsk_rcv_zc(),\nby Nagato Shiratana.","modified":"2026-12-03T11:01:42.572489865Z","published":"2026-12-03T09:20:48.617Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143233.json"},"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/084974e4c6b226b772758eff64b06e4e99f7e8d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/53e8c5e077a113954c27b89f9663add10ed95fb8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/94ae1259175f566ed5a33f37b09b6f32a1b2d8af"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143233.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143233"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"24ea50127ecf0efe819c1f6230add27abc6ca9d9"},{"fixed":"53e8c5e077a113954c27b89f9663add10ed95fb8"},{"fixed":"084974e4c6b226b772758eff64b06e4e99f7e8d3"},{"fixed":"94ae1259175f566ed5a33f37b09b6f32a1b2d8af"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143233.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.6.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-143233.json"}}],"schema_version":"1.9.2"}