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 BEBAA1E200F for ; Wed, 4 Sep 2024 18:38:53 +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=1725475133; cv=none; b=s8JhiLu7LbkybccdwadVF+3npsokB1IRK803uXUrB1LsemwCQDN7pT3SCS0qg0ZEOpge45zTjPgf/8C6eLTcybegiSXPrfXPyCPeGOi8AOkhsVR+lc1selli5MwrF+c5pgLmOY7PttUOhYUY9rFXB15/+KcbztBCANq9gBczHgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725475133; c=relaxed/simple; bh=QKfhUriVHsBUqP05GxiA76zg5JH7d9tAInLytC7MdJ8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U6PpuA6ro/ukfI8Y5t5hgZghZlMSIZff2DWCJNE/lnTegVTC4zjS1VZHzqzC2V+2coXdaerKAfdUvM70ggHCqkdf1oPR2Wkq9aywqtYnCPftHH5Z5+9RglIBeG0w3zbJ/mJdzL214kStkO7NUJDEJX7uLCcZ1OmhI8aI5GLYNZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A6pwbtyr; 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="A6pwbtyr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27787C4CEC2; Wed, 4 Sep 2024 18:38:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725475133; bh=QKfhUriVHsBUqP05GxiA76zg5JH7d9tAInLytC7MdJ8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=A6pwbtyr804Z2uMWaiXKuwciTSYtG2DkYvOW0ENJM12YGGz4Xha43Ay0Xrbra54df UUFSmOLL/DwGS4I5a24mCamxQedTn9kr7QpI6Drd1mOHJySMLbhpel4Tefu5thSouI ux1TQ8W9hHb7t/pnlXpZQzWh8IAEY7h6weVNah3Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44966: binfmt_flat: Fix corruption when not offsetting data start Date: Wed, 4 Sep 2024 20:38:50 +0200 Message-ID: <2024090449-CVE-2024-44966-3aac@gregkh> X-Mailer: git-send-email 2.46.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=2804; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QKfhUriVHsBUqP05GxiA76zg5JH7d9tAInLytC7MdJ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3Vlo6B8c5XT18NuxBxe4lr18vv+i6616Ofu3K46ULH Y7PO1sQ2hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATCVRlmKfBe/x82GQBA3HX 2rk5MdMUupP7OBkWLOt99TjAZZfuxw+LRfw5GlgbM9PdAA== 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: binfmt_flat: Fix corruption when not offsetting data start Commit 04d82a6d0881 ("binfmt_flat: allow not offsetting data start") introduced a RISC-V specific variant of the FLAT format which does not allocate any space for the (obsolete) array of shared library pointers. However, it did not disable the code which initializes the array, resulting in the corruption of sizeof(long) bytes before the DATA segment, generally the end of the TEXT segment. Introduce MAX_SHARED_LIBS_UPDATE which depends on the state of CONFIG_BINFMT_FLAT_NO_DATA_START_OFFSET to guard the initialization of the shared library pointer region so that it will only be initialized if space is reserved for it. The Linux kernel CVE team has assigned CVE-2024-44966 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 04d82a6d0881 and fixed in 5.15.165 with commit 3a684499261d Issue introduced in 5.13 with commit 04d82a6d0881 and fixed in 6.1.106 with commit af65d5383854 Issue introduced in 5.13 with commit 04d82a6d0881 and fixed in 6.6.47 with commit 49df34d2b7da Issue introduced in 5.13 with commit 04d82a6d0881 and fixed in 6.10.6 with commit 9350ba06ee61 Issue introduced in 5.13 with commit 04d82a6d0881 and fixed in 6.11-rc4 with commit 3eb3cd5992f7 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-44966 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: fs/binfmt_flat.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/3a684499261d0f7ed5ee72793025c88c2276809c https://git.kernel.org/stable/c/af65d5383854cc3f172a7d0843b628758bf462c8 https://git.kernel.org/stable/c/49df34d2b7da9e57c839555a2f7877291ce45ad1 https://git.kernel.org/stable/c/9350ba06ee61db392c486716ac68ecc20e030f7c https://git.kernel.org/stable/c/3eb3cd5992f7a0c37edc8d05b4c38c98758d8671