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 6BBF22AF00 for ; Sat, 4 Oct 2025 15:17:54 +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=1759591074; cv=none; b=PWc1awBtiGVcnwc+0JYuqMqysZmfpWP8yE0O74dUwwtJ24y5/yVteeDEikhLJxwNzCmw7lYbUQF5n6ctfqhVZ+1zkQZiSqxXxYvNaMu7SwKgSSPRDU5pmJ5gZVQs82H9Mbrx8zjEYjvvxtZkw6QxpcPPRBwSd39L1vksr7LOOhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591074; c=relaxed/simple; bh=zC4e0kqMEYxnr4/0V7XocNwaDwhuP5uBiyj65ZuoyOQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dL73QfEt9H/irPkzq5OuVpsK+XMXNhQqzHWIKxX8q+f2wIt51nf+JzLAsCbc2KWNT/98o9ds2mVENt4dI0Abjolk+q4hNE7D/bevHsaToFGYgfqUeJiQz3F9xn2LrHsttFI0Xt53UkSyR1+x5cgOoKXqeW1u8XG7/a4sblYQ2GU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GP8MuTZn; 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="GP8MuTZn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA5E7C4CEF1; Sat, 4 Oct 2025 15:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591074; bh=zC4e0kqMEYxnr4/0V7XocNwaDwhuP5uBiyj65ZuoyOQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GP8MuTZnPzZm3wqLQwoQ6fkvhqMY32H6pz0kxC47Wru9keXadDk0QxI4v1kNhs8jP WQhxBETajCMnzBQQrFGCWrXPY2S0SliOqcQ8EaO3bDRzlTMbMf0ASfr+6V2A39tK5C +ixIAcFYAj4SRZB7AV3+dfj3s7CtRKqtV9hc0vF8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53541: mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write Date: Sat, 4 Oct 2025 17:16:55 +0200 Message-ID: <2025100444-CVE-2023-53541-d961@gregkh> X-Mailer: git-send-email 2.51.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=3457; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=N/b9qYRXtjNO5KpUXu8ULfKWTs2ncZ2RyAj+CRkaPtQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrWL2xBdH/TjYwhd1d/KR/e+FljuuOjj1UOHV48cq2 PRmq3fP64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJyDxlWLDkRtF5ix/nbafo 74qXzf/i4ypt2cowT0E7NWBPG5sa56rl7ie4DkoueP5uDgA= 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: rawnand: brcmnand: Fix potential out-of-bounds access in oob write When the oob buffer length is not in multiple of words, the oob write function does out-of-bounds read on the oob source buffer at the last iteration. Fix that by always checking length limit on the oob buffer read and fill with 0xff when reaching the end of the buffer to the oob registers. The Linux kernel CVE team has assigned CVE-2023-53541 to this issue. Affected and fixed versions =========================== Issue introduced in 4.2 with commit 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 and fixed in 4.14.326 with commit 2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b Issue introduced in 4.2 with commit 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 and fixed in 4.19.295 with commit 14b1d00520b4d6a4818364334ce472b79cfc8976 Issue introduced in 4.2 with commit 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 and fixed in 5.4.257 with commit aae45746f4aee9818296e0500e0703e9d8caa5b8 Issue introduced in 4.2 with commit 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 and fixed in 5.10.195 with commit d00b031266514a9395124704630b056a5185ec17 Issue introduced in 4.2 with commit 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 and fixed in 5.15.132 with commit 2353b7bb61e45e7cfd21505d0c6747ac8c9496a1 Issue introduced in 4.2 with commit 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 and fixed in 6.1.54 with commit 45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25 Issue introduced in 4.2 with commit 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 and fixed in 6.5.4 with commit 648d1150a688698e37f7aaf302860180901cb30e Issue introduced in 4.2 with commit 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 and fixed in 6.6 with commit 5d53244186c9ac58cb88d76a0958ca55b83a15cd 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-2023-53541 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/nand/raw/brcmnand/brcmnand.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/2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b https://git.kernel.org/stable/c/14b1d00520b4d6a4818364334ce472b79cfc8976 https://git.kernel.org/stable/c/aae45746f4aee9818296e0500e0703e9d8caa5b8 https://git.kernel.org/stable/c/d00b031266514a9395124704630b056a5185ec17 https://git.kernel.org/stable/c/2353b7bb61e45e7cfd21505d0c6747ac8c9496a1 https://git.kernel.org/stable/c/45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25 https://git.kernel.org/stable/c/648d1150a688698e37f7aaf302860180901cb30e https://git.kernel.org/stable/c/5d53244186c9ac58cb88d76a0958ca55b83a15cd