CVE-2026-143090: xen/pvcalls: unwind pvcalls_new_active_socket() step by step
In the Linux kernel, the following vulnerability has been resolved:
xen/pvcalls: unwind pvcallsnewactivesocket() step by step
Every error path in pvcallsnewactivesocket() jumps to one shared label that does listdel(&map->list) and then hands map to pvcallsbackreleaseactive(). But map comes from kzalloc() and its listhead is only published at the very end of the function, after the last of those jumps:
down(&fedata->socketlock); listaddtail(&map->list, &fedata->socketmappings); up(&fedata->socketlock);
so on the error path map->list is still {NULL, NULL} and listdel() writes through a NULL pointer.
A frontend gets there with one value it owns: the ringorder field of the page it granted. Anything above MAXRINGORDER takes the second goto, and nothing else in the function has run by then.
The result is an oops in whichever context handled the request - the pvcalls-back threaded IRQ handler for PVCALLSCONNECT, mappass->wq for PVCALLSACCEPT - and because it happens after down(&fedata->socketlock) that semaphore is never released, so every later operation on the frontend blocks on it and the backend never completes backenddisconnect(). (With CONFIGDEBUGLIST the listdel() only reports and returns, and pvcallsbackreleaseactive() then runs on a map whose irq is still 0 and whose bytes, ioworker.wq and saveddataready are all NULL.)
A frontend asking for ringorder 5, on a dom0 built with KASAN (the request was issued by a test-only change to the frontend):
[ 133.728877] pvcallsnewactivesocket frontend requested ringorder 5, which is > MAX (4) [ 133.732868] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI [ 133.737910] KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] [ 133.741666] CPU: 0 UID: 0 PID: 133 Comm: irq/39-pvcalls- Not tainted 7.3.0-kCTLblk2-15482-g21a7f44fd076-dirty #1 PREEMPT(full) [ 133.746986] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 133.751512] RIP: 0010:pvcallsnewactivesocket+0x821/0xb90 [ 133.754237] Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 f6 01 00 00 48 8d 79 08 4c 8b 6b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 14 02 00 00 4c 89 ea 4c 89 69 08 48 b8 00 00 00 [ 133.763126] RSP: 0018:ffffc900004afb38 EFLAGS: 00010202 [ 133.765861] RAX: dffffc0000000000 RBX: ffff88810886c900 RCX: 0000000000000000 [ 133.769348] RDX: 0000000000000001 RSI: 0000000000000246 RDI: 0000000000000008 [ 133.772787] RBP: 1ffff92000095f6b R08: 0000000000000001 R09: fffff52000095f58 [ 133.776260] R10: 0000000000000003 R11: ffff888100077320 R12: ffff88810858b410 [ 133.779823] R13: 0000000000000000 R14: ffff88810858b460 R15: ffff88810858b400 [ 133.783382] FS: 0000000000000000(0000) GS:ffff8881b034c000(0000) knlGS:0000000000000000 [ 133.787351] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 133.790308] CR2: 00000000006042c0 CR3: 0000000108400001 CR4: 0000000000770ef0 [ 133.793822] PKRU: 55555554 [ 133.795347] Call Trace: [ 133.796778] <TASK> [ 133.798082] ? pfxpvcallsnewactivesocket+0x10/0x10 [ 133.800801] ? securitysocketpostcreate+0x4d/0x60 [ 133.803275] ? releasesock+0x1a/0x1d0 [ 133.805182] pvcallsbackevent+0x1b09/0x23e0 [ 133.807431] ? pfxpvcallsbackevent+0x10/0x10 [ 133.809814] ? pfxrawspinlockirqsave+0x10/0x10 [ 133.812251] ? pfxpvcallsbackevent+0x10/0x10 [ 133.814554] irqthreadfn+0x86/0x150 [ 133.816468] irqthread+0x2da/0x580 [ 133.818363] ? pfxirqthreadfn+0x10/0x10 [ 133.820586] ? pfxirqthread+0x10/0x10 [ 133.822670] ? kthreadparkme+0x88/0x170 [ 133.824803] ? pfxirqthread+0x10/0x10 [ 133.827153] ? pfxirqthread+0x10/0x10 [ 133.829304] kthread+0x2c8/0x3b0 [ 133.831176] ? recalcsigpending+0x15c/0x1e0 [ 133.833570] ? pfxkthread+0x10/0x10 [ 133.835572] retfromfork+0x373/0x5b0 [ 133.837581] ---truncated---
Affected Software
Event History
Frequently Asked Questions
Who can trigger this issue?
A Xen PVCALLS frontend can trigger it by supplying a granted page with a ring_order value above MAX_RING_ORDER. The affected processing occurs in the backend for PVCALLS_CONNECT or PVCALLS_ACCEPT requests.
What is the operational impact of a successful trigger?
The backend can oops in the PVCALLS_CONNECT threaded IRQ handler or the workqueue handling PVCALLS_ACCEPT. The socket_lock semaphore remains held, causing later frontend operations to block and preventing backend_disconnect() from completing.
How can I recognize that a backend may have been affected?
Look for an oops in PVCALLS request handling, specifically the threaded IRQ context for PVCALLS_CONNECT or the mappass workqueue for PVCALLS_ACCEPT. Affected backends may then show all later operations for that frontend blocking and failure of backend disconnect to complete.