CVE-2024-57843

Medium

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.

Package Linux Kernel
Published 2025-01-11
Last modified 2025-09-24
CVSS version 3.1
Patch available
Yes

CVSS 3.1 score

5.5

out of 10
Medium
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness type

CWE-191

CVE-2024-57843 is classified as CWE-191

See CWE-191 on MITRE CWE for full details on this weakness type.

Affected versions

Linux kernel versions 6.6 and later are affected. Fixed in 6.6.66, 6.12.5, 6.13 and their respective stable series.

Affected from
≥ 6.6
Fixed in
✓ 6.6.66 6.6.x ✓ 6.12.5 6.12.x ✓ 6.13

References

The following references provide additional information about CVE-2024-57843 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.

Frequently asked questions

  • What is CVE-2024-57843?

    CVE-2024-57843 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 6.6 onward and has been patched in 6.6.66, 6.12.5 and 6.13. CVE-2024-57843 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • What is the CVSS score for CVE-2024-57843?

    CVE-2024-57843 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H .

  • Is there a patch available for CVE-2024-57843?

    Yes — CVE-2024-57843 has been patched. Fixed versions include 6.6.66, 6.12.5 and 6.13. If you are running Linux kernel 6.6 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2024-57843 actively exploited?

    No — CVE-2024-57843 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.