AZL-118601: CVE-2026-143332 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
vdpa: fix double free of the reply skb in vdpanlcmddevconfiggetdoit()
genlmsgreply() consumes the reply skb on every outcome: netlinkunicast() frees it whether it queues it, drops it, or bails out early. vdpanlcmddevconfiggetdoit() lets its return value fall through to the shared error label, which calls nlmsgfree(msg) again and double-frees the skbuff on any reply failure. The failure is reachable unprivileged: VDPACMDDEVCONFIGGET carries no GENLADMINPERM, so batching several requests into one sendto() on a socket with a shrunken SORCVBUF fills the receive queue, and netlinkattachskb() then takes its MSGDONTWAIT path, freeing the skb and returning -EAGAIN.
Set msg to NULL once genlmsgreply() has consumed it so the shared exit path frees the skb only on the early error gotos that still own it; nlmsgfree(NULL) is a no-op.
BUG: KASAN: slab-use-after-free in skskbreasondrop (net/core/skbuff.c:1220) Read of size 4 at addr ffff88800d99d49c by task exploit/147 Call Trace: skskbreasondrop (net/core/skbuff.c:1220) vdpanlcmddevconfiggetdoit (drivers/vdpa/vdpa.c:1324) genlfamilyrcvmsgdoit (net/netlink/genetlink.c:1114) genlrcvmsg (net/netlink/genetlink.c:1194) netlinkrcvskb (net/netlink/afnetlink.c:2556) genlrcv (net/netlink/genetlink.c:1218) netlinkunicast (net/netlink/afnetlink.c:1345) netlinksendmsg (net/netlink/afnetlink.c:1900) syssendto (net/socket.c:2281) x64syssendto (net/socket.c:2284) entrySYSCALL64afterhwframe (arch/x86/entry/entry64.S:121)
The buggy address belongs to the object at ffff88800d99d3c0 which belongs to the cache skbuffheadcache of size 232 The buggy address is located 220 bytes inside of freed 232-byte region [ffff88800d99d3c0, ffff88800d99d4a8)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In vdpa_nl_cmd_dev_config_get_doit(), set msg to NULL after genlmsg_reply() consumes the reply skb so the shared error path does not free it again.
Event History
Frequently Asked Questions
Can an unprivileged local user trigger this issue?
Yes. The affected VDPA_CMD_DEV_CONFIG_GET operation does not require GENL_ADMIN_PERM, and the described failure path can be reached by an unprivileged process using a netlink socket.
What conditions are needed to reach the double-free path?
The described trigger batches several requests in one sendto() call while using a socket with a reduced SO_RCVBUF. Filling the receive queue can cause netlink_attachskb() to take the MSG_DONTWAIT path and return -EAGAIN after the reply skb has already been consumed.
How can affected systems be identified?
The reported symptom is a KASAN slab-use-after-free involving sk_skb_reason_drop, with vdpa_nl_cmd_dev_config_get_doit in the call trace. The issue affects the Azure Linux kernel package version 6.6.161.1-1 identified in this advisory.