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 1CD8718028 for ; Mon, 2 Sep 2024 17:36:25 +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=1725298586; cv=none; b=QrmT11YE2QG+zMt5NysA3aq1zUXML+JUvvyLpsMgLtaMlRzK3w+RUXlSRI4n98BNgZneQCxIyD7NHXg3GLKrSl6ek7CQAAudV64tNwt329wWs4YPf4NVsLigSWAbrsx8w3j3+7TA70QTR3PywYmJOokEiIDa+TGvIjpTG4cGf6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725298586; c=relaxed/simple; bh=JCKsvCuP3QNNHXIMl215mtLQ8nZimG0rgMsF9gxFrIU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gHsF8wKpq2i1dBGlXSrO9zcc8AHfTvGbMU85Wy5D21uKSUzdujK5fyQVTiZmZDiqow5f7oH4h1aOzHI677ljM6OerVNExxVp1KoffKMLOmomN9Q4l9zsTJy/OWZisj4OnQn+1djcjc3LyPoKbasHBmqANC8U9lwde/slFhkwCm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pYrIUX78; 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="pYrIUX78" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2274CC4CECC; Mon, 2 Sep 2024 17:36:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725298585; bh=JCKsvCuP3QNNHXIMl215mtLQ8nZimG0rgMsF9gxFrIU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pYrIUX78wCF83iIIIrc83eA60uMSV4/1qnq1gGqTGbmGZHMz9iypgEn7wupkGWjWU vR8fPwv6Ln/TTCC4NsmtSo+jH9Pu92zt/Qhr0R8mQzYy2T0wUHUyb9oIGhIb85F1m5 eT8BRPUuEjdeDnoYOAZ7Cw4CtFxyH9L3Ky6dEEQU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44947: fuse: Initialize beyond-EOF page contents before setting uptodate Date: Mon, 2 Sep 2024 19:36:20 +0200 Message-ID: <2024090219-CVE-2024-44947-f49c@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=2652; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JCKsvCuP3QNNHXIMl215mtLQ8nZimG0rgMsF9gxFrIU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlXv0++ljTttnv1xLI1WSzsldG/Y24dPejJ9WFG6TVTx Zunds+y64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJTPRimJ+akTJt1kblxHTB H7udzB8z28rdD2RYsDHC0zxfLlFpTv2PHf3bExT2vXIOBQA= 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: fuse: Initialize beyond-EOF page contents before setting uptodate fuse_notify_store(), unlike fuse_do_readpage(), does not enable page zeroing (because it can be used to change partial page contents). So fuse_notify_store() must be more careful to fully initialize page contents (including parts of the page that are beyond end-of-file) before marking the page uptodate. The current code can leave beyond-EOF page contents uninitialized, which makes these uninitialized page contents visible to userspace via mmap(). This is an information leak, but only affects systems which do not enable init-on-alloc (via CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y or the corresponding kernel command line parameter). The Linux kernel CVE team has assigned CVE-2024-44947 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.36 with commit a1d75f258230 and fixed in 6.1.107 with commit 831433527773 Issue introduced in 2.6.36 with commit a1d75f258230 and fixed in 6.6.48 with commit ac42e0f0eb66 Issue introduced in 2.6.36 with commit a1d75f258230 and fixed in 6.10.7 with commit 18a067240817 Issue introduced in 2.6.36 with commit a1d75f258230 and fixed in 6.11-rc4 with commit 3c0da3d163eb 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-44947 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/fuse/dev.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/831433527773e665bdb635ab5783d0b95d1246f4 https://git.kernel.org/stable/c/ac42e0f0eb66af966015ee33fd355bc6f5d80cd6 https://git.kernel.org/stable/c/18a067240817bee8a9360539af5d79a4bf5398a5 https://git.kernel.org/stable/c/3c0da3d163eb32f1f91891efaade027fa9b245b9