CVE-2024-57843 Details
Description
In the Linux kernel, the following vulnerability has been resolved: virtio-net: fix overflow inside virtnet_rq_alloc When the frag just got a page, then may lead to regression on VM. Specially if the sysctl net.core.high_order_alloc_disable value is 1, then the frag always get a page when do refill. Which could see reliable crashes or scp failure (scp a file 100M in size to VM). The issue is that the virtnet_rq_dma takes up 16 bytes at the beginning of a new frag. When the frag size is larger than PAGE_SIZE, everything is fine. However, if the frag is only one page and the total size of the buffer and virtnet_rq_dma is larger than one page, an overflow may occur. The commit f9dac92ba908 ("virtio_ring: enable premapped mode whatever use_dma_api") introduced this problem. And we reverted some commits to fix this in last linux version. Now we try to enable it and fix this bug directly. Here, when the frag size is not enough, we reduce the buffer len to fix this problem.
A vulnerability in the Linux kernel's virtio-net implementation can lead to a buffer overflow in the virtnet_rq_alloc function. This issue arises when the fragment size is one page and the combined size of the buffer and virtnet_rq_dma exceeds one page, causing an overflow. The problem was introduced by a previous commit and has been causing reliable crashes or failures when transferring large files via SCP to a virtual machine, especially when a specific sysctl value is set.
Users can upgrade to the latest Linux version where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/67a11de8965c2ab19e215fb6651d44847e068614 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6aacd1484468361d1d04badfe75f264fa5314864 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a8f7d6963768b114ec9644ff0148dde4c104e84b | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-191 | Integer Underflow (Wrap or Wraparound) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 6.6.66 >= 6.7, < 6.12.5 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Sep 24, 2025 | Initial Analysis | [email protected] |
| Jan 11, 2025 | New CVE Received | kernel.org |