{"id":"CVE-2025-40292","aliases":["CVE-2025-40292"],"related":[],"kind":"vulnerability","state":"published","title":"virtio-net: fix received length check in big packets","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio-net: fix received length check in big packets\n\nSince commit 4959aebba8c0 (\"virtio-net: use mtu size as buffer length\nfor big packets\"), when guest gso is off, the allocated size for big\npackets is not MAX_SKB_FRAGS * PAGE_SIZE anymore but depends on\nnegotiated MTU. The number of allocated frags for big packets is stored\nin vi->big_packets_num_skbfrags.\n\nBecause the host announced buffer length can be malicious (e.g. the host\nvhost_net driver's get_rx_bufs is modified to announce incorrect\nlength), we need a check in virtio_net receive path. Currently, the\ncheck is not adapted to the new change which can lead to NULL page\npointer dereference in the below while loop when receiving length that\nis larger than the allocated one.\n\nThis commit fixes the received length check corresponding to the new\nchange.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio-net: fix received length check in big packets\n\nSince commit 4959aebba8c0 (\"virtio-net: use mtu size as buffer length\nfor big packets\"), when guest gso is off, the allocated size for big\npackets is not MAX_SKB_FRAGS * PAGE_SIZE anymore but depends on\nnegotiated MTU. The number of allocated frags for big packets is stored\nin vi->big_packets_num_skbfrags.\n\nBecause the host announced buffer length can be malicious (e.g. the host\nvhost_net driver's get_rx_bufs is modified to announce incorrect\nlength), we need a check in virtio_net receive path. Currently, the\ncheck is not adapted to the new change which can lead to NULL page\npointer dereference in the below while loop when receiving length that\nis larger than the allocated one.\n\nThis commit fixes the received length check corresponding to the new\nchange.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nvirtio-net: corrige la comprobación de longitud recibida en paquetes grandes\n\nDesde el commit 4959aebba8c0 ('virtio-net: usar el tamaño de mtu como longitud de búfer para paquetes grandes'), cuando el gso del invitado está desactivado, el tamaño asignado para paquetes grandes ya no es MAX_SKB_FRAGS * PAGE_SIZE, sino que depende de la MTU negociada. El número de fragmentos asignados para paquetes grandes se almacena en vi -> big_packets_num_skbfrags.\n\nDebido a que la longitud del búfer anunciada por el host puede ser maliciosa (por ejemplo, el get_rx_bufs del controlador vhost_net del host se modifica para anunciar una longitud incorrecta), necesitamos una comprobación en la ruta de recepción de virtio_net. Actualmente, la comprobación no está adaptada al nuevo cambio, lo que puede llevar a una desreferencia de puntero de página NULL en el bucle 'while' inferior al recibir una longitud mayor que la asignada.\n\nEste commit corrige la comprobación de longitud recibida correspondiente al nuevo cambio.","source":"nvd"}],"published":"2025-12-08T00:46:15.761Z","modified":"2026-10-15T22:19:07.123Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4959aebba8c06992abafa09d1e80965e0825af54","fixed":"82f9028e83944a9eee5229cbc6fee9be1de8a62d","status":"affected"},{"type":"git","introduced":"4959aebba8c06992abafa09d1e80965e0825af54","fixed":"946dec89c41726b94d31147ec528b96af0be1b5a","status":"affected"},{"type":"git","introduced":"4959aebba8c06992abafa09d1e80965e0825af54","fixed":"82fe78065450d2d07f36a22e2b6b44955cf5ca5b","status":"affected"},{"type":"git","introduced":"4959aebba8c06992abafa09d1e80965e0825af54","fixed":"3e9d89f2ecd3636bd4cbdfd0b2dfdaf58f9882e2","status":"affected"},{"type":"git","introduced":"4959aebba8c06992abafa09d1e80965e0825af54","fixed":"0c716703965ffc5ef4311b65cb5d84a703784717","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.117","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/82f9028e83944a9eee5229cbc6fee9be1de8a62d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/946dec89c41726b94d31147ec528b96af0be1b5a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82fe78065450d2d07f36a22e2b6b44955cf5ca5b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e9d89f2ecd3636bd4cbdfd0b2dfdaf58f9882e2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c716703965ffc5ef4311b65cb5d84a703784717","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:58:49.590Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40292","url":"https://www.cve.org/CVERecord?id=CVE-2025-40292","licence":"CVE Terms of Use","modified":"2026-10-15T22:02:42.769Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40292","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40292","licence":"Public domain","modified":"2026-10-15T22:19:07.123Z"}],"updatedAt":"2026-11-25T22:59:08.392Z","epss":{"score":0.00182,"percentile":0.0814,"date":"2026-12-01T12:00:22.000Z"}}