CVE-2024-57839

Medium

In the Linux kernel, the following vulnerability has been resolved: Revert "readahead: properly shorten readahead when falling back to do_page_cache_ra()" This reverts commit 7c877586da3178974a8a94577b6045a48377ff25. Anders and Philippe have reported that recent kernels occasionally hang when used with NFS in readahead code. The problem has been bisected to 7c877586da3 ("readahead: properly shorten readahead when falling back to do_page_cache_ra()"). The cause of the problem is that ra->size can be shrunk by read_pages() call and subsequently we end up calling do_page_cache_ra() with negative (read huge positive) number of pages. Let's revert 7c877586da3 for now until we can find a proper way how the logic in read_pages() and page_cache_ra_order() can coexist. This can lead to reduced readahead throughput due to readahead window confusion but that's better than outright hangs.

Package Linux Kernel
Published 2025-01-11
Last modified 2025-10-17
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-704

CVE-2024-57839 is a Incorrect Type Conversion or Cast vulnerability

What is Incorrect Type Conversion or Cast?

The product does not correctly convert an object, resource, or structure from one type to another. Learn more on MITRE CWE

Affected versions

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

Affected from
≥ 6.11
Fixed in
✓ 6.12.5 6.12.x ✓ 6.13

References

The following references provide additional information about CVE-2024-57839 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-57839?

    CVE-2024-57839 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as an Incorrect Type Conversion or Cast flaw (CWE-704) . It affects Linux kernel versions from 6.11 onward and has been patched in 6.12.5 and 6.13. CVE-2024-57839 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

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

    CVE-2024-57839 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-57839?

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

  • Is CVE-2024-57839 actively exploited?

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

  • What is Incorrect Type Conversion or Cast (CWE-704)?

    The product does not correctly convert an object, resource, or structure from one type to another. View CWE-704 on MITRE CWE →