CVE-2024-57843

MEDIUM EPSS 9.9%
Published Jan 11, 20251y ago · Modified Jun 17, 20261w ago
5.5 CVSS 3.1
Medium
Find Similar
Published Jan 11, 2025 1y ago
Last Modified Jun 17, 2026 1w ago

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.

CVSS Details

Base Score
5.5
Exploitability
1.8
Impact
3.6
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

EPSS Exploit Probability
9.9% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-191

Affected Products 2

VendorProductVersionRange
linuxlinux_kernel* <6.6.66
linuxlinux_kernel*≥6.7  –  <6.12.5

References 3

  • git.kernel.org https://git.kernel.org/stable/c/67a11de8965c2ab19e215fb6651d44847e068614
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/6aacd1484468361d1d04badfe75f264fa5314864
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/a8f7d6963768b114ec9644ff0148dde4c104e84b
    Patch

Remediation

  • git.kernel.org https://git.kernel.org/stable/c/67a11de8965c2ab19e215fb6651d44847e068614
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/6aacd1484468361d1d04badfe75f264fa5314864
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/a8f7d6963768b114ec9644ff0148dde4c104e84b
    Patch