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 619462E22B5 for ; Tue, 9 Dec 2025 04:11:01 +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=1765253461; cv=none; b=f5pq5SH17xqH35lJoC1s5WUBCoonKi8faEmbzy1d3L1E1+Lu51ts1a1ouqpa3AJ6LANnNipGhYh7h/Vad19OzBTLM63DmTavqwVDGMAR158FmrM/2bk/h2SA91c5VdQmgTU2NlVv+e8Hm2RjljYSUgLpP7AlEqKBqd+LP7SNWUE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765253461; c=relaxed/simple; bh=zESoWbEU7Th19eVZWgf9SHxrX0T09z2OvXGg1/F2hMo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qFjbeNFU2x7NmE6TqmXmXN/MBMFaym0OtGU73+kfPxeOwF9pYOQzA2LFG9QS0MVCHRx9UdNFrI8/qH2wjeGVYEm6y2E/hW5l2GLWLwocoq2e/H3B63HWqVoEssZaUPGOeBgjaLfB0VcsCRfZI+bnl+IzH0/RxIurh3naDs2SueI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2cGeleP/; 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="2cGeleP/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9F1CC4CEF5; Tue, 9 Dec 2025 04:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765253461; bh=zESoWbEU7Th19eVZWgf9SHxrX0T09z2OvXGg1/F2hMo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=2cGeleP/pt8rAWcuJxTyc5IGd5rk5oVJFeqAKZ4JvE86teqf/Vu3Aj4xEKyiI9AYD 2mlm2nbzFRNINYdEb3elfeJmCou/p0Of2roGGzUXJfO2QHa3WXKzZatl2KIpJUh4y4 fuF0IB9NmASKKHzxO1ORkuiLRC5t88QwLbuxLjok= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40333: f2fs: fix infinite loop in __insert_extent_tree() Date: Tue, 9 Dec 2025 13:10:15 +0900 Message-ID: <2025120910-CVE-2025-40333-4f6a@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2086; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=auN0RLyG//Ge9pJp4vyAR6A8aZh5RBiq4DGJK8297nQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmC5WW5PzcWbfXZDlPSV6y8t+izAVLvUNY9Fg3W5Zfj S9lOMHaEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpADdZk2HB1qtCZ94uv3uDdbOx bMH7oAUKry9HMMxPXB28uqQg8MP6G6dSxLf8COSqlOgFAA== 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 infinite loop in __insert_extent_tree() When we get wrong extent info data, and look up extent_node in rb tree, it will cause infinite loop (CONFIG_F2FS_CHECK_FS=n). Avoiding this by return NULL and print some kernel messages in that case. The Linux kernel CVE team has assigned CVE-2025-40333 to this issue. Affected and fixed versions =========================== Fixed in 6.6.117 with commit 765f8816d3959ef1f3f7f85e2af748594d091f40 Fixed in 6.12.58 with commit c0b9951bb2668d67eb4817bb23fc109abc08c075 Fixed in 6.17.8 with commit f4c31adcb2a0556f43776d4e51a67de88d7fb9ee Fixed in 6.18 with commit 23361bd54966b437e1ed3eb1a704572f4b279e58 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-40333 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/765f8816d3959ef1f3f7f85e2af748594d091f40 https://git.kernel.org/stable/c/c0b9951bb2668d67eb4817bb23fc109abc08c075 https://git.kernel.org/stable/c/f4c31adcb2a0556f43776d4e51a67de88d7fb9ee https://git.kernel.org/stable/c/23361bd54966b437e1ed3eb1a704572f4b279e58