From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD3B67F9 for ; Sat, 11 Jan 2025 14:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736605875; cv=none; b=MtPXgvl9N3NU0IyQKpPV+fOBZOTmREi8Qt22VXn3riP0nvK+WCGwKDe3FEfjIbcEfdmg/oFtidH2hEcVMJKU//l8MR71XK5UpEPd9L6hpf2PxyKDbp/Wd7dMc3JV530+JyXQ9mmsPkw2i9ZYcu5sNjM9NpVyI3KdmrlF52JFZdY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736605875; c=relaxed/simple; bh=TSPV4jLuneVI0Y0JqszZ5s6qwRmsVFXu+lSdDztDnQI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DXBw2pjrOU993+VVmyRB7QnCEtdEUKq0rj+Pa+aOBrONJoCxU1lkGVch3O0HTCkgaw8nzEwC2xs59V3S09IyulNizzH0h3JIBnEIbeuxnSxIcBtCUZuV9c9yvRJjyGebYi93hCRy/BQj1PEX5zV/yUcqYXelcDQl4moZGSSC7EI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T4FiJmru; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="T4FiJmru" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 046C6C4CED2; Sat, 11 Jan 2025 14:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736605875; bh=TSPV4jLuneVI0Y0JqszZ5s6qwRmsVFXu+lSdDztDnQI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=T4FiJmruJRy/N6kbM81+Zm8QXeRETu6hxpH8QzVy8q0IQCN9ao5QuOgc6FFNF9btN KcspJgmm5d8ZaMvFTseEnboCHB7AySawGAmtjMSd/6QH8IMypuWnFfmejZjS2vL0qx t8uKcpH8/idi78w4NVayi19kjb4IAN2tEiFtSb88= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57839: Revert "readahead: properly shorten readahead when falling back to do_page_cache_ra()" Date: Sat, 11 Jan 2025 15:31:02 +0100 Message-ID: <2025011101-CVE-2024-57839-daf6@gregkh> X-Mailer: git-send-email 2.48.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2538; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TSPV4jLuneVI0Y0JqszZ5s6qwRmsVFXu+lSdDztDnQI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNDUt5wo+9STnMrDHN6uCl/ZNSc3plgt0ez3b2WGYeW FVrKnymI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZi4Mkwm834Ge+PNs89/Zti nvHdS07aWb9lLsNcMRHm3/4z/rSXnPkt5fi9kMUs0G8pAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== 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. The Linux kernel CVE team has assigned CVE-2024-57839 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 7c877586da3178974a8a94577b6045a48377ff25 and fixed in 6.12.5 with commit 85351e4941a253e4c50fb7048bfc19b60b4ec44b Issue introduced in 6.11 with commit 7c877586da3178974a8a94577b6045a48377ff25 and fixed in 6.13-rc2 with commit a220d6b95b1ae12c7626283d7609f0a1438e6437 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2024-57839 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: mm/readahead.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/85351e4941a253e4c50fb7048bfc19b60b4ec44b https://git.kernel.org/stable/c/a220d6b95b1ae12c7626283d7609f0a1438e6437