{"id":"CVE-2024-57839","summary":"Revert \"readahead: properly shorten readahead when falling back to do_page_cache_ra()\"","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRevert \"readahead: properly shorten readahead when falling back to do_page_cache_ra()\"\n\nThis reverts commit 7c877586da3178974a8a94577b6045a48377ff25.\n\nAnders and Philippe have reported that recent kernels occasionally hang\nwhen used with NFS in readahead code.  The problem has been bisected to\n7c877586da3 (\"readahead: properly shorten readahead when falling back to\ndo_page_cache_ra()\").  The cause of the problem is that ra-\u003esize can be\nshrunk by read_pages() call and subsequently we end up calling\ndo_page_cache_ra() with negative (read huge positive) number of pages. \nLet's revert 7c877586da3 for now until we can find a proper way how the\nlogic in read_pages() and page_cache_ra_order() can coexist.  This can\nlead to reduced readahead throughput due to readahead window confusion but\nthat's better than outright hangs.","modified":"2026-04-02T12:25:19.591787Z","published":"2025-01-11T14:30:56.149Z","related":["USN-7379-2","USN-7380-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57839.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/85351e4941a253e4c50fb7048bfc19b60b4ec44b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a220d6b95b1ae12c7626283d7609f0a1438e6437"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57839.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57839"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7c877586da3178974a8a94577b6045a48377ff25"},{"fixed":"85351e4941a253e4c50fb7048bfc19b60b4ec44b"},{"fixed":"a220d6b95b1ae12c7626283d7609f0a1438e6437"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57839.json"}}],"schema_version":"1.7.5"}