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 C967583CC1 for ; Tue, 19 Nov 2024 01:33:45 +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=1731980025; cv=none; b=qxbaSwGENYbwY6uVz7QhmGA6I0fThLB+fjRtDIATcR9jgeeA+R98A+lSs0ajhtuuj+5hhWh0YVNxfDrGzjaYm2y2q/nV2PDa8toEJnSYrAF5wpSEzVtUVJF/l2cKKAGJag5/orOoylHSqDXKxqg8yZx/H2CIyZVP0mtDUTNsERA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980025; c=relaxed/simple; bh=WeMT/ZFO1Z3JTvlivQKIv+Iohrvb3WiRY4XUArrZhQw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UfoK2aQSlJeIBZccKDeFpfzHPeOtwjSFnQ10BJ/4mDsglQZoCOvfeHs2XOBjWgMVD6L+IXWVKgGw9Xh7tflllZIYKZnGm0NnEVz+JShQc8SavuxhTRzx2TENA3VDjf0zJ6rI4hoiGpJIyXXacgR4OT1bRoJDPP999bTLuMQl/6g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sMgK2fTc; 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="sMgK2fTc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 917ABC4CED0; Tue, 19 Nov 2024 01:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731980025; bh=WeMT/ZFO1Z3JTvlivQKIv+Iohrvb3WiRY4XUArrZhQw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sMgK2fTcn15fAUpQrJ1xihDAQqhbh/dq9RwhjtwAp5527L20BQN6Lj0pqawyIymjV UxaknYCxWGBLLhghJPVqyf8Z98pFR+a/DlQj4beIZ47orKWJ9t0WvH40ey3gvInaF6 7mDvtcKhvWvxL/Ay8S6K1E8mygcdLo9nsbp+ujkM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50272: filemap: Fix bounds checking in filemap_read() Date: Tue, 19 Nov 2024 02:32:27 +0100 Message-ID: <2024111930-CVE-2024-50272-5691@gregkh> X-Mailer: git-send-email 2.47.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=2462; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WeMT/ZFO1Z3JTvlivQKIv+Iohrvb3WiRY4XUArrZhQw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnWr9bdfyUjFWFoqNZns8fgcwQ7zxaxGRrRe1SfmbXIH VY9XvG0I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYy8y7DghWGsY3FFnc3+j87 XjUp5E8Ey2q5yQzzg5ZMLSny1zu5r/dTd7bUj5A4cV9ZAA== 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: filemap: Fix bounds checking in filemap_read() If the caller supplies an iocb->ki_pos value that is close to the filesystem upper limit, and an iterator with a count that causes us to overflow that limit, then filemap_read() enters an infinite loop. This behaviour was discovered when testing xfstests generic/525 with the "localio" optimisation for loopback NFS mounts. The Linux kernel CVE team has assigned CVE-2024-50272 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit c2a9737f45e2 and fixed in 6.1.117 with commit 26530b757c81 Issue introduced in 4.9 with commit c2a9737f45e2 and fixed in 6.6.61 with commit a2746ab3bbc9 Issue introduced in 4.9 with commit c2a9737f45e2 and fixed in 6.11.8 with commit 6450e73f4c86 Issue introduced in 4.9 with commit c2a9737f45e2 and fixed in 6.12 with commit ace149e0830c Issue introduced in 3.16.40 with commit 272830350bb1 Issue introduced in 4.7.10 with commit fbc7b803831e Issue introduced in 4.8.4 with commit 3d549dcfbbb0 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-50272 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/filemap.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/26530b757c81f1389fb33ae0357500150933161b https://git.kernel.org/stable/c/a2746ab3bbc9c6408da5cd072653ec8c24749235 https://git.kernel.org/stable/c/6450e73f4c86d481ac2e22e1bc848d346e140826 https://git.kernel.org/stable/c/ace149e0830c380ddfce7e466fe860ca502fe4ee