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 15EF82FF163 for ; Tue, 19 Aug 2025 17:21:16 +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=1755624076; cv=none; b=h1pHbVuCNFOjmoOE6OM33YopseMYd2lWZ2rhyEvoRDdg2Hw9ImLbW7g8t/qiA3OKx84QhAqdyRgpF609OxEh1Y2tw09xutt876wuRId4Y/YURqNWFLrULa4eLK2+Rwg1PTrSLRiIk3Ojv7xhX9fvQ2QcmwUyD3DgMNCb1nTp6T8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624076; c=relaxed/simple; bh=VTlXahhmvUW/sRzL3XfjL4sgRwpvUeo7koKv20DiUSQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y67QKJ1ZdjLCy2V5AKOM9yUgmQvvob5hCIGeCmh71QZbqiQM2USP5UC6CXhqe/bnaZslZQiCmCABSuc1uc5ZLc+GzVxG8ew8d00xPfFgNFSAoZ+3xTo+BhAd51IDBZbBeelsWMVoOx73/0lkY1zD1OV65sKgUf9uahaB3PLp65M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wr/R1FBN; 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="wr/R1FBN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BC51C4CEF1; Tue, 19 Aug 2025 17:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624076; bh=VTlXahhmvUW/sRzL3XfjL4sgRwpvUeo7koKv20DiUSQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wr/R1FBNrtrKIw5qB81EG3R+WXoRNQJJEPNyEA/yxu37EyANt/CaHZtsDgrVKYkUy uOakspKie30aAliYn0KdLLw2GNm1F6cjRjqNg6WXnIDLGITBxXVf+GrlMHyQfjd0Y6 FPk6dobs16eH82JggIobcwas6weGIeCU84lirp0k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38579: f2fs: fix KMSAN uninit-value in extent_info usage Date: Tue, 19 Aug 2025 19:18:25 +0200 Message-ID: <2025081913-CVE-2025-38579-db94@gregkh> X-Mailer: git-send-email 2.50.1 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=3165; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X2UQ6ab43mqy7da91BUsuaDWAhR1F2+y0f0XAxIHddw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNl7NudKvxH9woZ+Xz77zsszOok0aJyXPNjJ90og8w ayo6l/UEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABdJY1gwK4xV4U+PUuwENjb3 VUWHI/xjEjwY5nvOZZn1RrUlwsiY4XnRAY7m8AuS3gA= 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: f2fs: fix KMSAN uninit-value in extent_info usage KMSAN reported a use of uninitialized value in `__is_extent_mergeable()` and `__is_back_mergeable()` via the read extent tree path. The root cause is that `get_read_extent_info()` only initializes three fields (`fofs`, `blk`, `len`) of `struct extent_info`, leaving the remaining fields uninitialized. This leads to undefined behavior when those fields are accessed later, especially during extent merging. Fix it by zero-initializing the `extent_info` struct before population. The Linux kernel CVE team has assigned CVE-2025-38579 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 94afd6d6e5253179c9b891d02081cc8355a11768 and fixed in 6.1.148 with commit e68b751ec2b15d866967812c57cfdfc1eba6a269 Issue introduced in 5.15 with commit 94afd6d6e5253179c9b891d02081cc8355a11768 and fixed in 6.6.102 with commit dabfa3952c8e6bfe6414dbf32e8b6c5f349dc898 Issue introduced in 5.15 with commit 94afd6d6e5253179c9b891d02081cc8355a11768 and fixed in 6.12.42 with commit 44a79437309e0ee2276ac17aaedc71253af253a8 Issue introduced in 5.15 with commit 94afd6d6e5253179c9b891d02081cc8355a11768 and fixed in 6.15.10 with commit cc1615d5aba4f396cf412579928539a2b124c8a0 Issue introduced in 5.15 with commit 94afd6d6e5253179c9b891d02081cc8355a11768 and fixed in 6.16.1 with commit 01b6f5955e0008af6bc3a181310d2744bb349800 Issue introduced in 5.15 with commit 94afd6d6e5253179c9b891d02081cc8355a11768 and fixed in 6.17-rc1 with commit 154467f4ad033473e5c903a03e7b9bca7df9a0fa 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-38579 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/f2fs/extent_cache.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/e68b751ec2b15d866967812c57cfdfc1eba6a269 https://git.kernel.org/stable/c/dabfa3952c8e6bfe6414dbf32e8b6c5f349dc898 https://git.kernel.org/stable/c/44a79437309e0ee2276ac17aaedc71253af253a8 https://git.kernel.org/stable/c/cc1615d5aba4f396cf412579928539a2b124c8a0 https://git.kernel.org/stable/c/01b6f5955e0008af6bc3a181310d2744bb349800 https://git.kernel.org/stable/c/154467f4ad033473e5c903a03e7b9bca7df9a0fa