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 9FA6235AAC9 for ; Thu, 11 Sep 2025 16:53: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=1757609606; cv=none; b=LZGs63gZbW5zzvUXCSSrxIxARRPylf1X2noFKpFOmBphbIAb5F87p6Np4WNuHp1DTgp35s+9uaDORwHPuHsuvn5kMT/PP30tLtS381Npk5zhHTd3Lf2UTA2/wOuqgF7OFsV0Zf1VCgrIgIg5f9DP6DaNxkXH1PLESXsQBlwLWyE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757609606; c=relaxed/simple; bh=scH54ugQLmoCLu5wn0IBJK32LEDjH78Gm9joVMMAa+g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kfxee1R4jzDyamXb2b2VOOKOLurYWwlT1OLPV0Dkl0K6VP+ZlxRH7aGsQtVyxTtjyDSGm1uNNa8PLJMq9X6TcZu947BEQekc01zZBIja9VKQEvjm5JDeRyerhYydngN/iCbfOqFFgQW753kSCBl9KOhEi8VR1KN2G4HZ+f4Qw+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0roQw7AS; 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="0roQw7AS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7ABFAC4CEF0; Thu, 11 Sep 2025 16:53:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757609605; bh=scH54ugQLmoCLu5wn0IBJK32LEDjH78Gm9joVMMAa+g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0roQw7ASywq28tBm6zWRtNB1fquJJRDaDn2rZL65K1eg2j5x9Ds5AzEvgdui0ZVeR bUFYhPR18iMQVGqeyaOgwAZmDfv+weY7OPjyISPCZVuoVheUF2fuVYsapnmaeWZHs2 AwmuSeaY28a4fD7NRRe1kdm3Og9Jc8Lp1vdc4FsA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39743: jfs: truncate good inode pages when hard link is 0 Date: Thu, 11 Sep 2025 18:52:44 +0200 Message-ID: <2025091139-CVE-2025-39743-75bd@gregkh> X-Mailer: git-send-email 2.51.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=2898; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=loYKBLc1x9TRd1QObH3RRqc9RIQB2l9Ebmu0Dxmk3tY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmH/oWzfkkPnuX1o6A8+h9/Tf71T06qjhLfdvSd292+Y YN8MduyjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIiwnDgs1nP8+9336zv+2z 2qUM3cPx626u/MqwoO3msdnrrub2hZ4Jn+C5PGr+h1svvwMA 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: jfs: truncate good inode pages when hard link is 0 The fileset value of the inode copy from the disk by the reproducer is AGGR_RESERVED_I. When executing evict, its hard link number is 0, so its inode pages are not truncated. This causes the bugon to be triggered when executing clear_inode() because nrpages is greater than 0. The Linux kernel CVE team has assigned CVE-2025-39743 to this issue. Affected and fixed versions =========================== Fixed in 5.4.297 with commit 89fff8e3d6710fc32507b8e19eb5afa9fb79b896 Fixed in 5.10.241 with commit 5845b926c561b8333cd65169526eec357d7bb449 Fixed in 5.15.190 with commit 8ed7275910fb7177012619864e04d3008763f3ea Fixed in 6.1.149 with commit b5b471820c33365a8ccd2d463578bf4e47056c2c Fixed in 6.6.103 with commit 34d8e982bac48bdcca7524644a8825a580edce74 Fixed in 6.12.43 with commit df3fd8daf278eca365f221749ae5b728e8382a04 Fixed in 6.15.11 with commit 2b1d5ca395a5fb170c3f885cd42c16179f7f54ec Fixed in 6.16.2 with commit 1bb5cdc3e39f0c2b311fcb631258b7e60d3fb0d3 Fixed in 6.17-rc1 with commit 2d91b3765cd05016335cd5df5e5c6a29708ec058 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-39743 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/jfs/inode.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/89fff8e3d6710fc32507b8e19eb5afa9fb79b896 https://git.kernel.org/stable/c/5845b926c561b8333cd65169526eec357d7bb449 https://git.kernel.org/stable/c/8ed7275910fb7177012619864e04d3008763f3ea https://git.kernel.org/stable/c/b5b471820c33365a8ccd2d463578bf4e47056c2c https://git.kernel.org/stable/c/34d8e982bac48bdcca7524644a8825a580edce74 https://git.kernel.org/stable/c/df3fd8daf278eca365f221749ae5b728e8382a04 https://git.kernel.org/stable/c/2b1d5ca395a5fb170c3f885cd42c16179f7f54ec https://git.kernel.org/stable/c/1bb5cdc3e39f0c2b311fcb631258b7e60d3fb0d3 https://git.kernel.org/stable/c/2d91b3765cd05016335cd5df5e5c6a29708ec058