Skip to contentSkip to conversation

CVE-2025-38375: virtio-net: ensure the received length does not exceed allocated size

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 25, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

virtio-net: ensure the received length does not exceed allocated size

In xdp_linearize_page, when reading the following buffers from the ring, we forget to check the received length with the true allocate size. This can lead to an out-of-bound read. This commit adds that missing check.

The Linux kernel CVE team has assigned CVE-2025-38375 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 5.15.189 with commit 982beb7582c193544eb9c6083937ec5ac1c9d651
	Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 6.1.144 with commit 6aca3dad2145e864dfe4d1060f45eb1bac75dd58
	Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 6.6.97 with commit 80b971be4c37a4d23a7f1abc5ff33dc7733d649b
	Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 6.12.37 with commit bc68bc3563344ccdc57d1961457cdeecab8f81ef
	Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 6.15.6 with commit 11f2d0e8be2b5e784ac45fa3da226492c3e506d8
	Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 6.16-rc5 with commit 315dbdd7cdf6aa533829774caaf4d25f1fd20e73

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2025-38375

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/virtio_net.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/982beb7582c193544eb9c6083937ec5ac1c9d651
	https://git.kernel.org/stable/c/6aca3dad2145e864dfe4d1060f45eb1bac75dd58
	https://git.kernel.org/stable/c/80b971be4c37a4d23a7f1abc5ff33dc7733d649b
	https://git.kernel.org/stable/c/bc68bc3563344ccdc57d1961457cdeecab8f81ef
	https://git.kernel.org/stable/c/11f2d0e8be2b5e784ac45fa3da226492c3e506d8
	https://git.kernel.org/stable/c/315dbdd7cdf6aa533829774caaf4d25f1fd20e73