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 3B4561E49E for ; Tue, 27 Feb 2024 18:47:34 +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=1709059655; cv=none; b=Uh8jHp3rhuwO9AJcq2j9m1zoTHEiagwzeb9Ie9yKESY+xJ05Uo7tqOXcPjpFI+P8pE3KuPZPLHnexYQkVS3cDRr7Id8pLgirURMIXkEMTxv6HEEV+6XRE4a1s8bLg3wPvZHbK4D3uMEswah3S4AzQNX+VLp1rxXUMK0PcP+MMDc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059655; c=relaxed/simple; bh=EqAK3URMY8+vxKpPS3yoR0rSnPxZyKHgDtP6aPAiT7U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E+SIf6D+YFi7YNbfYNZmmkUHorvD+cYA1JtvenVyNsa7TlaTxAl8eaoy9y9LVRPzqpK6OGmKsjSelplmKN3j4F/P6DGIbrDIznCTRtCJMz2XKX4s0xG12E793tCSxSzLJuJrjorrIWRbGhW7pGPfXLdTotKO9eMR5bNxWfeWTQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z0NXoOrU; 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="Z0NXoOrU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5524CC433C7; Tue, 27 Feb 2024 18:47:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709059654; bh=EqAK3URMY8+vxKpPS3yoR0rSnPxZyKHgDtP6aPAiT7U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Z0NXoOrU1XFsM0H/zY99ERjWuY0pQYUKgEKJWGIGlH2anxo5NSTwyPLGnRH3HnRx5 WRRkuuZAjh51ScXbXMZHdwyVkYKJgaXlydr7FzgQJqPVai6khM28zlYvV2tIs0CTDK lqPQHFnjmkxmc2flgC8FcPlvgdGqAKCMTW4QizYE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46965: mtd: physmap: physmap-bt1-rom: Fix unintentional stack access Date: Tue, 27 Feb 2024 19:47:25 +0100 Message-ID: <2024022719-CVE-2021-46965-3b74@gregkh> X-Mailer: git-send-email 2.44.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=2317; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EqAK3URMY8+vxKpPS3yoR0rSnPxZyKHgDtP6aPAiT7U=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn39My/fpnlJLJixUvL+tbKJUcX1wtbe78TanXibKzIz nCde39WRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk9yrDfB/7jzUnX4t9Zlg/ +0/gnt1/ONcWX2OYZ5yxN8eM15D37upJC3tuc01yNHHfAQA= 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: mtd: physmap: physmap-bt1-rom: Fix unintentional stack access Cast &data to (char *) in order to avoid unintentionally accessing the stack. Notice that data is of type u32, so any increment to &data will be in the order of 4-byte chunks, and this piece of code is actually intended to be a byte offset. Addresses-Coverity-ID: 1497765 ("Out-of-bounds access") The Linux kernel CVE team has assigned CVE-2021-46965 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit b3e79e7682e0 and fixed in 5.10.36 with commit 34ec706bf0b7 Issue introduced in 5.10 with commit b3e79e7682e0 and fixed in 5.11.20 with commit 4e4ebb827bf0 Issue introduced in 5.10 with commit b3e79e7682e0 and fixed in 5.12.3 with commit 4d786870e326 Issue introduced in 5.10 with commit b3e79e7682e0 and fixed in 5.13 with commit 683313993dbe Please see https://www.kernel.org or 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-2021-46965 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/maps/physmap-bt1-rom.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/34ec706bf0b7c4ca249a729c1bcb91f706c7a7be https://git.kernel.org/stable/c/4e4ebb827bf09311469ffd9d0c14ed40ed9747aa https://git.kernel.org/stable/c/4d786870e3262ec098a3b4ed10b895176bc66ecb https://git.kernel.org/stable/c/683313993dbe1651c7aa00bb42a041d70e914925