{"id":"CVE-2026-143332","state":"PUBLISHED","title":"vdpa: fix double free of the reply skb in vdpa_nl_cmd_dev_config_get_doit()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa: fix double free of the reply skb in vdpa_nl_cmd_dev_config_get_doit()\n\ngenlmsg_reply() consumes the reply skb on every outcome: netlink_unicast()\nfrees it whether it queues it, drops it, or bails out early.\nvdpa_nl_cmd_dev_config_get_doit() lets its return value fall through to the\nshared error label, which calls nlmsg_free(msg) again and double-frees the\nsk_buff on any reply failure. The failure is reachable unprivileged:\nVDPA_CMD_DEV_CONFIG_GET carries no GENL_ADMIN_PERM, so batching several\nrequests into one sendto() on a socket with a shrunken SO_RCVBUF fills the\nreceive queue, and netlink_attachskb() then takes its MSG_DONTWAIT path,\nfreeing the skb and returning -EAGAIN.\n\nSet msg to NULL once genlmsg_reply() has consumed it so the shared exit\npath frees the skb only on the early error gotos that still own it;\nnlmsg_free(NULL) is a no-op.\n\n  BUG: KASAN: slab-use-after-free in sk_skb_reason_drop (net/core/skbuff.c:1220)\n  Read of size 4 at addr ffff88800d99d49c by task exploit/147\n  Call Trace:\n   sk_skb_reason_drop (net/core/skbuff.c:1220)\n   vdpa_nl_cmd_dev_config_get_doit (drivers/vdpa/vdpa.c:1324)\n   genl_family_rcv_msg_doit (net/netlink/genetlink.c:1114)\n   genl_rcv_msg (net/netlink/genetlink.c:1194)\n   netlink_rcv_skb (net/netlink/af_netlink.c:2556)\n   genl_rcv (net/netlink/genetlink.c:1218)\n   netlink_unicast (net/netlink/af_netlink.c:1345)\n   netlink_sendmsg (net/netlink/af_netlink.c:1900)\n   __sys_sendto (net/socket.c:2281)\n   __x64_sys_sendto (net/socket.c:2284)\n   entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)\n\n  The buggy address belongs to the object at ffff88800d99d3c0\n   which belongs to the cache skbuff_head_cache of size 232\n  The buggy address is located 220 bytes inside of\n   freed 232-byte region [ffff88800d99d3c0, ffff88800d99d4a8)","publishedAt":"2026-12-03T09:21:56.209Z","updatedAt":"2026-12-03T09:21:56.209Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ad69dd0bf26b88ec6ab26f8bbe5cd74fbed7672a","status":"affected","lessThan":"9b5291de9a872cc68666a51caa89a6df541bd2c3","versionType":"git"},{"version":"ad69dd0bf26b88ec6ab26f8bbe5cd74fbed7672a","status":"affected","lessThan":"f89c137a5dc0e5eca910f045c3d1d0c40b7d6c00","versionType":"git"},{"version":"ad69dd0bf26b88ec6ab26f8bbe5cd74fbed7672a","status":"affected","lessThan":"64607e57eb66ec37ffa69d28ec3463e5ab4a0050","versionType":"git"},{"version":"ad69dd0bf26b88ec6ab26f8bbe5cd74fbed7672a","status":"affected","lessThan":"1f8824fe7f6eaaf2355404db08d3cd05a28aa576","versionType":"git"},{"version":"447092100c7e71aa20469a270fcee441d807ed58","status":"affected","versionType":"git"},{"version":"5.15.198","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","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-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa.c"]}],"references":["https://git.kernel.org/stable/c/9b5291de9a872cc68666a51caa89a6df541bd2c3","https://git.kernel.org/stable/c/f89c137a5dc0e5eca910f045c3d1d0c40b7d6c00","https://git.kernel.org/stable/c/64607e57eb66ec37ffa69d28ec3463e5ab4a0050","https://git.kernel.org/stable/c/1f8824fe7f6eaaf2355404db08d3cd05a28aa576"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143332.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143332","state":"PUBLISHED","datePublished":"2026-12-03T09:21:56.209Z","dateUpdated":"2026-12-03T09:21:56.209Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.367Z"},"containers":{"cna":{"title":"vdpa: fix double free of the reply skb in vdpa_nl_cmd_dev_config_get_doit()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa: fix double free of the reply skb in vdpa_nl_cmd_dev_config_get_doit()\n\ngenlmsg_reply() consumes the reply skb on every outcome: netlink_unicast()\nfrees it whether it queues it, drops it, or bails out early.\nvdpa_nl_cmd_dev_config_get_doit() lets its return value fall through to the\nshared error label, which calls nlmsg_free(msg) again and double-frees the\nsk_buff on any reply failure. The failure is reachable unprivileged:\nVDPA_CMD_DEV_CONFIG_GET carries no GENL_ADMIN_PERM, so batching several\nrequests into one sendto() on a socket with a shrunken SO_RCVBUF fills the\nreceive queue, and netlink_attachskb() then takes its MSG_DONTWAIT path,\nfreeing the skb and returning -EAGAIN.\n\nSet msg to NULL once genlmsg_reply() has consumed it so the shared exit\npath frees the skb only on the early error gotos that still own it;\nnlmsg_free(NULL) is a no-op.\n\n  BUG: KASAN: slab-use-after-free in sk_skb_reason_drop (net/core/skbuff.c:1220)\n  Read of size 4 at addr ffff88800d99d49c by task exploit/147\n  Call Trace:\n   sk_skb_reason_drop (net/core/skbuff.c:1220)\n   vdpa_nl_cmd_dev_config_get_doit (drivers/vdpa/vdpa.c:1324)\n   genl_family_rcv_msg_doit (net/netlink/genetlink.c:1114)\n   genl_rcv_msg (net/netlink/genetlink.c:1194)\n   netlink_rcv_skb (net/netlink/af_netlink.c:2556)\n   genl_rcv (net/netlink/genetlink.c:1218)\n   netlink_unicast (net/netlink/af_netlink.c:1345)\n   netlink_sendmsg (net/netlink/af_netlink.c:1900)\n   __sys_sendto (net/socket.c:2281)\n   __x64_sys_sendto (net/socket.c:2284)\n   entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)\n\n  The buggy address belongs to the object at ffff88800d99d3c0\n   which belongs to the cache skbuff_head_cache of size 232\n  The buggy address is located 220 bytes inside of\n   freed 232-byte region [ffff88800d99d3c0, ffff88800d99d4a8)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ad69dd0bf26b88ec6ab26f8bbe5cd74fbed7672a","status":"affected","lessThan":"9b5291de9a872cc68666a51caa89a6df541bd2c3","versionType":"git"},{"version":"ad69dd0bf26b88ec6ab26f8bbe5cd74fbed7672a","status":"affected","lessThan":"f89c137a5dc0e5eca910f045c3d1d0c40b7d6c00","versionType":"git"},{"version":"ad69dd0bf26b88ec6ab26f8bbe5cd74fbed7672a","status":"affected","lessThan":"64607e57eb66ec37ffa69d28ec3463e5ab4a0050","versionType":"git"},{"version":"ad69dd0bf26b88ec6ab26f8bbe5cd74fbed7672a","status":"affected","lessThan":"1f8824fe7f6eaaf2355404db08d3cd05a28aa576","versionType":"git"},{"version":"447092100c7e71aa20469a270fcee441d807ed58","status":"affected","versionType":"git"},{"version":"5.15.198","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","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-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9b5291de9a872cc68666a51caa89a6df541bd2c3"},{"url":"https://git.kernel.org/stable/c/f89c137a5dc0e5eca910f045c3d1d0c40b7d6c00"},{"url":"https://git.kernel.org/stable/c/64607e57eb66ec37ffa69d28ec3463e5ab4a0050"},{"url":"https://git.kernel.org/stable/c/1f8824fe7f6eaaf2355404db08d3cd05a28aa576"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:56.209Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"7.4-rc2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.198"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}