AZL-118388: CVE-2026-143233 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
xsk: fix list corruption in xskbuffaddfrag()
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 xskbuffaddfrag() a buffer that is the head of the frame or is already on pool->xskblist or pool->freelist.
Re-adding a linked node corrupts the list. With buffers A, B, C, B, xskrcvzc() 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 xskbufffree() cleanup follows B into pool->freelist and passes the list head to xpfree():
BUG: kernel NULL pointer dereference, address: 00000000000000c0 RIP: 0010:xpfree+0x1a/0x50 Call Trace: xskrcvzc+0xca/0x200
The head is not on any list and needs a separate check. Adding it as its own frag lets bpfxdpadjusttail() free the in-use head and wrap sinfo->nrfrags to 255.
Reject such buffers before adding them to the frags array, as commit e37b2abca804 ("xsk: fix NULL pointer dereference in xskrcv()") 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->freeheads[].
Reproduced with a KUnit test feeding synthetic buffers to xskrcvzc(), by Nagato Shiratana.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In xsk_buff_add_frag(), reject a buffer before adding it to the frags array if it is the frame head or is already on pool->xskb_list or pool->free_list.
Event History
Frequently Asked Questions
What conditions are required for this issue to occur?
The affected path is aligned mode, where a fill-ring address maps directly to a pool->heads[] entry. User space must post the same address more than once, and a driver must subsequently pass that buffer to xsk_buff_add_frag().
What is the likely runtime symptom?
List corruption can lead to a kernel NULL pointer dereference in xp_free when receive-ring cleanup occurs because there is no room for a frame. The reported call trace includes xsk_rcv_zc and xp_free.
How can I look for evidence of exposure or triggering activity?
Check for kernel crash logs or traces showing a NULL pointer dereference at xp_free with xsk_rcv_zc in the call trace. Also review aligned-mode fill-ring handling for duplicate buffer addresses posted by user space.