# CVE-2025-37955: virtio-net: free xsk_buffs on error in virtnet_xsk_pool_enable()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-05-20T16:01:49.209Z
- Modified: 2026-06-17T09:15:46.190Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

virtio-net: free xsk_buffs on error in virtnet_xsk_pool_enable()

The selftests added to our CI by Bui Quang Minh recently reveals
that there is a mem leak on the error path of virtnet_xsk_pool_enable():

unreferenced object 0xffff88800a68a000 (size 2048):
  comm "xdp_helper", pid 318, jiffies 4294692778
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc 0):
    __kvmalloc_node_noprof+0x402/0x570
    virtnet_xsk_pool_enable+0x293/0x6a0 (drivers/net/virtio_net.c:5882)
    xp_assign_dev+0x369/0x670 (net/xdp/xsk_buff_pool.c:226)
    xsk_bind+0x6a5/0x1ae0
    __sys_bind+0x15e/0x230
    __x64_sys_bind+0x72/0xb0
    do_syscall_64+0xc1/0x1d0
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

(As written by CVE List.)

## Affected

- Linux Linux: from e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568 before 94a6f6c204abb2b2dcd2ce287536cc924469cfb5; from e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568 before ba6917810bb4a5a32661fa941717399052b3f0d9; from e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568 before 4397684a292a71fbc1e815c3e283f7490ddce5ae; 6.11 (not affected: before 6.11; from 6.12.29 up to 6.12.*; from 6.14.7 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.11 before 6.12.29; from 6.13 before 6.14.7; 6.15

## References

- <https://git.kernel.org/stable/c/94a6f6c204abb2b2dcd2ce287536cc924469cfb5> (patch)
- <https://git.kernel.org/stable/c/ba6917810bb4a5a32661fa941717399052b3f0d9> (patch)
- <https://git.kernel.org/stable/c/4397684a292a71fbc1e815c3e283f7490ddce5ae> (patch)

## Sources

- CVE List: [CVE-2025-37955](https://www.cve.org/CVERecord?id=CVE-2025-37955), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-37955](https://nvd.nist.gov/vuln/detail/CVE-2025-37955), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-37955 · Whole record: https://cve.day/CVE-2025-37955.json · Rebuilt by cve.day 2026-11-25T22:58:58.305Z
