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 4049735B12B for ; Tue, 16 Dec 2025 14:08:47 +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=1765894128; cv=none; b=aAatWfA0rjBnerOj8WWHTtdNdT3aR0W4t7swlVBobzevangas/pHkMKihjq3vrdh+6JSAPnX0IfpkaTnkQOI6v5hrfeSRrxnV1elgI9boOHGmDLYgFLLq7uZGD8e63lfcNKEWgl6DD3MowQXBAiknIPYTjx4wDo5FRRCs6c4wHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765894128; c=relaxed/simple; bh=u7HIDzMQsk7qfKYN4vdbnRB3t7VxtKBZcklnBFW1olk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VpXWTnett+VwiYvDvDeFOfvEnsr/cieTP9Y0+20WppjmoYB3Yk+J4q2Vzx+2vrdQX1A9dG20LqGct9Plgd4tj59/Wv5DwmyAC2y9146wMCRAAocNPCXlET3BbeCGHvLV44GEFSpIxxNxGFucJSW4FcJDZa96kie1S/o/FyW9kqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ny2B3gNU; 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="ny2B3gNU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F70DC4CEF1; Tue, 16 Dec 2025 14:08:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765894127; bh=u7HIDzMQsk7qfKYN4vdbnRB3t7VxtKBZcklnBFW1olk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ny2B3gNUWGDDGTD0Nlgr5AQ79mjBM8NknUNqHruTiY5kWxaHs4gdj7yeor+pPPndG WiXrWaRAq81LTyzoO9MGIp/+VD1/sWNJ9o6YH6FT9d+kB26DBMHnV2sSim2mXi1KP0 Wc0Fllpze1dNdfyEF7LC+r0oua0IFx7RjId6BN3c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68237: mtdchar: fix integer overflow in read/write ioctls Date: Tue, 16 Dec 2025 15:08:37 +0100 Message-ID: <2025121635-CVE-2025-68237-7f03@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2779; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nP+ptK3Xi8O5QyIhe4yvt/yWJ4bW1hltlhhGEwJac58=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmO6Y/j613naSZ8XpfxgE9wocKRBUHGkwMYVaQurDpzf YLTcTvLjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIgBnDPAX5jO63F19Hnb+X KFpxYprf7G1idxgWTNXSUbcWMTANKTl0UsiuZH71nn96AA== 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: mtdchar: fix integer overflow in read/write ioctls The "req.start" and "req.len" variables are u64 values that come from the user at the start of the function. We mask away the high 32 bits of "req.len" so that's capped at U32_MAX but the "req.start" variable can go up to U64_MAX which means that the addition can still integer overflow. Use check_add_overflow() to fix this bug. The Linux kernel CVE team has assigned CVE-2025-68237 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 6420ac0af95dbcb2fd8452e2d551ab50e1bbad83 and fixed in 6.1.159 with commit f37efdd97fd1ec3e0d0f1eec279c8279e28f981e Issue introduced in 5.17 with commit 6420ac0af95dbcb2fd8452e2d551ab50e1bbad83 and fixed in 6.6.118 with commit 457376c6fbf0c69326a9bf1f72416225f681192b Issue introduced in 5.17 with commit 6420ac0af95dbcb2fd8452e2d551ab50e1bbad83 and fixed in 6.12.60 with commit eb9361484814fb12f3b7544b33835ea67d7a6a97 Issue introduced in 5.17 with commit 6420ac0af95dbcb2fd8452e2d551ab50e1bbad83 and fixed in 6.17.10 with commit 37944f4f8199cd153fef74e95ca268020162f212 Issue introduced in 5.17 with commit 6420ac0af95dbcb2fd8452e2d551ab50e1bbad83 and fixed in 6.18 with commit e4185bed738da755b191aa3f2e16e8b48450e1b8 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-68237 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/mtdchar.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/f37efdd97fd1ec3e0d0f1eec279c8279e28f981e https://git.kernel.org/stable/c/457376c6fbf0c69326a9bf1f72416225f681192b https://git.kernel.org/stable/c/eb9361484814fb12f3b7544b33835ea67d7a6a97 https://git.kernel.org/stable/c/37944f4f8199cd153fef74e95ca268020162f212 https://git.kernel.org/stable/c/e4185bed738da755b191aa3f2e16e8b48450e1b8