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 10394279906 for ; Tue, 20 May 2025 11:00:03 +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=1747738804; cv=none; b=nR1UDi4N5BfNrOWJYvEoaCa9+rHb8y8ZUNSlp5eo+gBo6gMwnzSLtqlbP3iEkoMe/X5i+WVzBJwbFI//Wr8btdMx0LDyknpZXr1g3f3h3s41DQcyi/ngc1Pp94kkC4xPDTAge6zJjLPuT+GzzuC33JRFg4G5pBd7fhKO3+XxhiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747738804; c=relaxed/simple; bh=orIX/niRRtzm0sfrcVqTWBf5Qr0rEIDdvZwt2Cy1ADk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DSPemBolEdQLTxKtDYDKeBu8TS3glJHmg8Et2LyTfwm6bK9gc02NDs/iiqQuBLK/UwV9EeHl3D/aELVQPuNzlGbPe0Z4C8ArI94idXEIstPs5M+9AtBJkOPbUQSqnjXdgQcGDm7ar/GImNhoSoT9nhB6Jz/GGd+YAL4otFiySUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rJii3RTu; 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="rJii3RTu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC2F3C4CEE9; Tue, 20 May 2025 11:00:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747738803; bh=orIX/niRRtzm0sfrcVqTWBf5Qr0rEIDdvZwt2Cy1ADk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rJii3RTuL3lR+bban30SSdbMIViLaGFac+OcHwVb738y6NhWIY/GA3z6svbF75jxc 3qnDEy2/O65OT+MQ2iGWBLaciaC9/sK9CCZI7i2YnpdjyN0MVncJx/M4zn4iDplaqj /4ZomjuGvAJ6ScNsRLsS3LSWsEGVCjuQxlcxONIM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37892: mtd: inftlcore: Add error check for inftl_read_oob() Date: Tue, 20 May 2025 12:59:58 +0200 Message-ID: <2025052057-CVE-2025-37892-2103@gregkh> X-Mailer: git-send-email 2.49.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=3642; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bZuPxoMEWv4aKD5baSW4KWdpmCdNhcHrtEy9s5k63hg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6CWsFlrTO/2zszxrA97lE0Sz/4v6PdwSDeQ7w+m1in H70xLTvHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRDnaGBbuadyffZuH98dD8 0dWQ+ss7z+ULBTEsmGxlfHdVsntDhcsjjhNbe4QvtkjeBwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: mtd: inftlcore: Add error check for inftl_read_oob() In INFTL_findwriteunit(), the return value of inftl_read_oob() need to be checked. A proper implementation can be found in INFTL_deleteblock(). The status will be set as SECTOR_IGNORE to break from the while-loop correctly if the inftl_read_oob() fails. The Linux kernel CVE team has assigned CVE-2025-37892 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.18 with commit 8593fbc68b0df1168995de76d1af38eb62fd6b62 and fixed in 5.4.293 with commit b828d394308e8e00df0a6f57e7dabae609bb8b7b Issue introduced in 2.6.18 with commit 8593fbc68b0df1168995de76d1af38eb62fd6b62 and fixed in 5.10.237 with commit 0300e751170cf80c05ca1a762a7b449e8ca6b693 Issue introduced in 2.6.18 with commit 8593fbc68b0df1168995de76d1af38eb62fd6b62 and fixed in 5.15.181 with commit e7d6ceff95c55297f0ee8f9dbc4da5c558f30e9e Issue introduced in 2.6.18 with commit 8593fbc68b0df1168995de76d1af38eb62fd6b62 and fixed in 6.1.135 with commit 6af3b92b1c0b58ca281d0e1501bad2567f73c1a5 Issue introduced in 2.6.18 with commit 8593fbc68b0df1168995de76d1af38eb62fd6b62 and fixed in 6.6.88 with commit 7772621041ee78823ccc5f1fe38f6faa22af7023 Issue introduced in 2.6.18 with commit 8593fbc68b0df1168995de76d1af38eb62fd6b62 and fixed in 6.12.24 with commit 5479a6af3c96f73bec2d2819532b6d6814f52dd6 Issue introduced in 2.6.18 with commit 8593fbc68b0df1168995de76d1af38eb62fd6b62 and fixed in 6.13.12 with commit 1c22356dfb041e5292835c9ff44d5f91bef8dd18 Issue introduced in 2.6.18 with commit 8593fbc68b0df1168995de76d1af38eb62fd6b62 and fixed in 6.14.3 with commit 114d94f095aa405fa9a51484c4be34846d7bb386 Issue introduced in 2.6.18 with commit 8593fbc68b0df1168995de76d1af38eb62fd6b62 and fixed in 6.15-rc2 with commit d027951dc85cb2e15924c980dc22a6754d100c7c 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-2025-37892 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: drivers/mtd/inftlcore.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/b828d394308e8e00df0a6f57e7dabae609bb8b7b https://git.kernel.org/stable/c/0300e751170cf80c05ca1a762a7b449e8ca6b693 https://git.kernel.org/stable/c/e7d6ceff95c55297f0ee8f9dbc4da5c558f30e9e https://git.kernel.org/stable/c/6af3b92b1c0b58ca281d0e1501bad2567f73c1a5 https://git.kernel.org/stable/c/7772621041ee78823ccc5f1fe38f6faa22af7023 https://git.kernel.org/stable/c/5479a6af3c96f73bec2d2819532b6d6814f52dd6 https://git.kernel.org/stable/c/1c22356dfb041e5292835c9ff44d5f91bef8dd18 https://git.kernel.org/stable/c/114d94f095aa405fa9a51484c4be34846d7bb386 https://git.kernel.org/stable/c/d027951dc85cb2e15924c980dc22a6754d100c7c