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 A547636828B for ; Tue, 16 Dec 2025 15:40:31 +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=1765899631; cv=none; b=IyoYZW2YOkbvVoBPRJ4sCzmmZOkmYiEKhNGpniFKhbkziHbwCKHKOQvtRTZdimCX3kTGiEG4bJBky7uCVUBvcIlvrvoYxXsVAn+l5abHPPOACrvPAd+UiAQLvr5auuy4kcsRK9xHB7Htr4+ls2Rb50CbcHvpfpozMv8enf8pvHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765899631; c=relaxed/simple; bh=2wYJQ4xN+G9aQVdNB3GUG2pOYBjJprxd7FPFSOHVmfg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JzE5InHXCA363GHK6eXNnhEfTmktaNDV4MNsRQ56vzjpjjSdcPEdjrcz1xYLpMT4PaUB1BpYCUQcTlCqiOtFR3U2zANvLGhDUt9CwSuTp4YrrPVswIGMtjXwmMdDjJDA3qJjts9ncs7J1GLhOmC1XSmyW+Ja2qW6sDjAN9AQFyg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aC8pzook; 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="aC8pzook" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2007C4CEF1; Tue, 16 Dec 2025 15:40:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765899631; bh=2wYJQ4xN+G9aQVdNB3GUG2pOYBjJprxd7FPFSOHVmfg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=aC8pzook+L7JiW0TrL88+5yMcUpXzK9HfoD5+ROhWbTy+Qgib5u1dwFl5vM36JZNk w8aHA6bD/CkY41K+X7LjUjSV8M6hk0OBGJm/Z2lhoi46pGVPxPUWUrV3bj+UXwfBW+ 66tkuFQLHDKf42t0d2rVekvlDDjvOBB3dQredeiA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68315: f2fs: fix to detect potential corrupted nid in free_nid_list Date: Tue, 16 Dec 2025 16:39:58 +0100 Message-ID: <2025121655-CVE-2025-68315-158d@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=1941; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=N2rq6LHBPGVWPSw5StrNY5oKsrYhH4SGx7ch73hhOw0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOtd4bpLOe5PHUrClS3XRe4K9Z3TmlHN7dLCliVm+PP 228oWvWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNxbmOYH3M9Vuv0I69HP6YG LC36XW86ofLvF4b5adGVfyb3Pr76TKz/yUbLhgNNcVWTAA== 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 to detect potential corrupted nid in free_nid_list As reported, on-disk footer.ino and footer.nid is the same and out-of-range, let's add sanity check on f2fs_alloc_nid() to detect any potential corruption in free_nid_list. The Linux kernel CVE team has assigned CVE-2025-68315 to this issue. Affected and fixed versions =========================== Fixed in 6.12.58 with commit 6b9525596a83cd5b7bbc2c7bd5f9ad9cf5ad60fa Fixed in 6.17.8 with commit adbcb34f03abb89e681a5907c4c3ce4bf224991d Fixed in 6.18 with commit 8fc6056dcf79937c46c97fa4996cda65956437a9 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-68315 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/node.c include/linux/f2fs_fs.h 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/6b9525596a83cd5b7bbc2c7bd5f9ad9cf5ad60fa https://git.kernel.org/stable/c/adbcb34f03abb89e681a5907c4c3ce4bf224991d https://git.kernel.org/stable/c/8fc6056dcf79937c46c97fa4996cda65956437a9