{"id":"CVE-2026-143233","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:18:02.297","lastModified":"2026-12-03T10:18:02.297","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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->heads[]\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->xskb_list or pool->free_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->free_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->nr_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->free_heads[].\n\nReproduced with a KUnit test feeding synthetic buffers to xsk_rcv_zc(),\nby Nagato Shiratana."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["include/net/xdp_sock_drv.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"24ea50127ecf0efe819c1f6230add27abc6ca9d9","lessThan":"53e8c5e077a113954c27b89f9663add10ed95fb8","versionType":"git","status":"affected"},{"version":"24ea50127ecf0efe819c1f6230add27abc6ca9d9","lessThan":"084974e4c6b226b772758eff64b06e4e99f7e8d3","versionType":"git","status":"affected"},{"version":"24ea50127ecf0efe819c1f6230add27abc6ca9d9","lessThan":"94ae1259175f566ed5a33f37b09b6f32a1b2d8af","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["include/net/xdp_sock_drv.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/084974e4c6b226b772758eff64b06e4e99f7e8d3","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/53e8c5e077a113954c27b89f9663add10ed95fb8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/94ae1259175f566ed5a33f37b09b6f32a1b2d8af","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}