{"id":"CVE-2026-143233","state":"PUBLISHED","title":"xsk: fix list corruption in xsk_buff_add_frag()","description":"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.","publishedAt":"2026-12-03T09:20:48.617Z","updatedAt":"2026-12-03T09:20:48.617Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"24ea50127ecf0efe819c1f6230add27abc6ca9d9","status":"affected","lessThan":"53e8c5e077a113954c27b89f9663add10ed95fb8","versionType":"git"},{"version":"24ea50127ecf0efe819c1f6230add27abc6ca9d9","status":"affected","lessThan":"084974e4c6b226b772758eff64b06e4e99f7e8d3","versionType":"git"},{"version":"24ea50127ecf0efe819c1f6230add27abc6ca9d9","status":"affected","lessThan":"94ae1259175f566ed5a33f37b09b6f32a1b2d8af","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/xdp_sock_drv.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","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/xdp_sock_drv.h"]}],"references":["https://git.kernel.org/stable/c/53e8c5e077a113954c27b89f9663add10ed95fb8","https://git.kernel.org/stable/c/084974e4c6b226b772758eff64b06e4e99f7e8d3","https://git.kernel.org/stable/c/94ae1259175f566ed5a33f37b09b6f32a1b2d8af"],"weaknesses":[],"ingestedAt":"2026-12-03T09:42:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143233.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143233","state":"PUBLISHED","datePublished":"2026-12-03T09:20:48.617Z","dateUpdated":"2026-12-03T09:20:48.617Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.361Z"},"containers":{"cna":{"title":"xsk: fix list corruption in xsk_buff_add_frag()","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":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"24ea50127ecf0efe819c1f6230add27abc6ca9d9","status":"affected","lessThan":"53e8c5e077a113954c27b89f9663add10ed95fb8","versionType":"git"},{"version":"24ea50127ecf0efe819c1f6230add27abc6ca9d9","status":"affected","lessThan":"084974e4c6b226b772758eff64b06e4e99f7e8d3","versionType":"git"},{"version":"24ea50127ecf0efe819c1f6230add27abc6ca9d9","status":"affected","lessThan":"94ae1259175f566ed5a33f37b09b6f32a1b2d8af","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/xdp_sock_drv.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","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/xdp_sock_drv.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/53e8c5e077a113954c27b89f9663add10ed95fb8"},{"url":"https://git.kernel.org/stable/c/084974e4c6b226b772758eff64b06e4e99f7e8d3"},{"url":"https://git.kernel.org/stable/c/94ae1259175f566ed5a33f37b09b6f32a1b2d8af"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:48.617Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}