# CVE-2025-40292: virtio-net: fix received length check in big packets

- Priority: **Routine**
- Reason: Not severe (CVSS 8.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-08 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2025-40292, DEBIAN-CVE-2025-40292
- Record: https://cvemate.com/vulnerability/CVE-2025-40292 · JSON: https://cvemate.com/vulnerability/CVE-2025-40292/json

## Description

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

virtio-net: fix received length check in big packets

Since commit 4959aebba8c0 ("virtio-net: use mtu size as buffer length
for big packets"), when guest gso is off, the allocated size for big
packets is not MAX_SKB_FRAGS * PAGE_SIZE anymore but depends on
negotiated MTU. The number of allocated frags for big packets is stored
in vi->big_packets_num_skbfrags.

Because the host announced buffer length can be malicious (e.g. the host
vhost_net driver's get_rx_bufs is modified to announce incorrect
length), we need a check in virtio_net receive path. Currently, the
check is not adapted to the new change which can lead to NULL page
pointer dereference in the below while loop when receiving length that
is larger than the allocated one.

This commit fixes the received length check corresponding to the new
change.
```

## Signals

- CVSS: 8.4 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.182%, percentile 8.112%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 130)

- debian linux (Debian): \< 6.1.159-1 \| \< 6.12.63-1 \| \< 6.17.8-1
- ubuntu linux (Ubuntu): \< 6.8.0-106.106 \| \< 6.17.0-14.14
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1050.53 \| \< 6.17.0-1007.7
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): \< 6.17.0-1007.7~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1050.53~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 6.8.0-1050.53+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1051.57 \| \< 6.17.0-1008.8
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 25)

- <https://git.kernel.org/stable/c/82f9028e83944a9eee5229cbc6fee9be1de8a62d>
- <https://git.kernel.org/stable/c/946dec89c41726b94d31147ec528b96af0be1b5a>
- <https://git.kernel.org/stable/c/82fe78065450d2d07f36a22e2b6b44955cf5ca5b>
- <https://git.kernel.org/stable/c/3e9d89f2ecd3636bd4cbdfd0b2dfdaf58f9882e2>
- <https://git.kernel.org/stable/c/0c716703965ffc5ef4311b65cb5d84a703784717>
- <https://ubuntu.com/security/CVE-2025-40292>
- <https://www.cve.org/CVERecord?id=CVE-2025-40292>
- <https://git.kernel.org/linus/0c716703965ffc5ef4311b65cb5d84a703784717>
- <https://ubuntu.com/security/notices/USN-8029-1>
- <https://ubuntu.com/security/notices/USN-8030-1>
- <https://ubuntu.com/security/notices/USN-8029-2>
- <https://ubuntu.com/security/notices/USN-8048-1>
- <https://ubuntu.com/security/notices/USN-8029-3>
- <https://ubuntu.com/security/notices/USN-8095-1>
- <https://ubuntu.com/security/notices/USN-8100-1>
- <https://ubuntu.com/security/notices/USN-8095-2>
- <https://ubuntu.com/security/notices/USN-8095-3>
- <https://ubuntu.com/security/notices/USN-8095-4>
- <https://ubuntu.com/security/notices/USN-8125-1>
- <https://ubuntu.com/security/notices/USN-8126-1>

---

Data as of 2026-12-05T07:00:30.501Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
