CVE-2026-143233

Source
https://cve.org/CVERecord?id=CVE-2026-143233
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143233.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143233
Downstream
Published
2026-12-03T09:20:48Z
Modified
2026-12-03T11:01:42Z
Summary
xsk: fix list corruption in xsk_buff_add_frag()
Details

In the Linux kernel, the following vulnerability has been resolved:

xsk: fix list corruption in xsk_buff_add_frag()

In aligned mode, a fill ring address maps straight to its pool->heads[] entry. If user space posts the same address twice, a driver can pass xsk_buff_add_frag() a buffer that is the head of the frame or is already on pool->xskb_list or pool->free_list.

Re-adding a linked node corrupts the list. With buffers A, B, C, B, xsk_rcv_zc() emits two descriptors instead of four and leaves the list head pointing at a self-linked B. When the Rx ring later has no room for a frame, the xsk_buff_free() cleanup follows B into pool->free_list and passes the list head to xp_free():

BUG: kernel NULL pointer dereference, address: 00000000000000c0 RIP: 0010:xp_free+0x1a/0x50 Call Trace: xsk_rcv_zc+0xca/0x200

The head is not on any list and needs a separate check. Adding it as its own frag lets bpf_xdp_adjust_tail() free the in-use head and wrap sinfo->nr_frags to 255.

Reject such buffers before adding them to the frags array, as commit e37b2abca804 ("xsk: fix NULL pointer dereference in __xsk_rcv()") does in the copy path. Callers already drop the frame on failure.

Unaligned mode is not affected, as each fill ring entry gets its own xskb from pool->free_heads[].

Reproduced with a KUnit test feeding synthetic buffers to xsk_rcv_zc(), by Nagato Shiratana.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143233.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

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"

Linux / Kernel

Package

Name
Kernel

Affected 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"