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 0204128750A for ; Fri, 22 Aug 2025 16:02:44 +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=1755878565; cv=none; b=mLfDYzz2hz+Lyctuk6cFukccdm8osQY6ClT65xjV8BNh/DcyIRPmpvqpY62BzVXa9qk8psjSAuTquHLKkEtkHGwOXUQv40F1TTUNXCAGfTk5KPZCplYA+Zsd912EU0g6iaCItvTCqPmqMgmi/IEyBygZM5B8pMFwm4oy9A2KkTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878565; c=relaxed/simple; bh=l2GdK78P6uBJcdpgihdhol2yqmFbAWQFtPEZa+T1iHM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EgM9AKkqLI2JF0xhx1sN/M/qIqMkcCIG4md5ODutezV6wEcsUrWdofZ0vHm7PAnI3nEQJVImEVWVnYMXIWv9hGJOw+3ppPpouisMBnoRdTrjGjN24CabfO6VcwigVSxwgzXhPjWn4DeE0oiQdYeo4d0kx0xvoGx+4JwxBOCRdAY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ihZFgt5L; 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="ihZFgt5L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32855C4CEED; Fri, 22 Aug 2025 16:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878564; bh=l2GdK78P6uBJcdpgihdhol2yqmFbAWQFtPEZa+T1iHM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ihZFgt5L7BGJDtsC6aM26m5DuCN/lvd98SXDEYrq7/LwfkjwAb6ThuzrsLpjWgAOw aWEbQxASgd76nYXDs6hlZO+RWtAU3Wj3jDfdel2Z2pSF4LQRa1IxzdGgTt23V1HHcX pO4a5dOz2EftrSK3W/gdM0y4tYZCFjeEWUwCJeF0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38659: gfs2: No more self recovery Date: Fri, 22 Aug 2025 18:01:07 +0200 Message-ID: <2025082239-CVE-2025-38659-de59@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=3055; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TsFjvKT2IMo2r7WBiHGbcyvDuoi0/J5ozGdeSKyupcc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpqjPlTc6M0FJif/aK2NTnVX+uc/bvVQZdobaLfhv8 69OWnpXRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkIiPD/ILT0u+95veuUlKS nXJ49jqHhu++JxgWTF60k6XZb9OtwhlsAmddKjb+XKRuCgA= 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: gfs2: No more self recovery When a node withdraws and it turns out that it is the only node that has the filesystem mounted, gfs2 currently tries to replay the local journal to bring the filesystem back into a consistent state. Not only is that a very bad idea, it has also never worked because gfs2_recover_func() will refuse to do anything during a withdraw. However, before even getting to this point, gfs2_recover_func() dereferences sdp->sd_jdesc->jd_inode. This was a use-after-free before commit 04133b607a78 ("gfs2: Prevent double iput for journal on error") and is a NULL pointer dereference since then. Simply get rid of self recovery to fix that. The Linux kernel CVE team has assigned CVE-2025-38659 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 601ef0d52e9617588fcff3df26953592f2eb44ac and fixed in 6.6.102 with commit 1a91ba12abef628b43cada87478328274d988e88 Issue introduced in 5.7 with commit 601ef0d52e9617588fcff3df26953592f2eb44ac and fixed in 6.12.42 with commit f5426ffbec971a8f7346a57392d3a901bdee5a9b Issue introduced in 5.7 with commit 601ef0d52e9617588fcff3df26953592f2eb44ac and fixed in 6.15.10 with commit 6784367b2f3cd7b89103de35764f37f152590dbd Issue introduced in 5.7 with commit 601ef0d52e9617588fcff3df26953592f2eb44ac and fixed in 6.16.1 with commit 97c94c7dbddc34d353c83b541b3decabf98d04af Issue introduced in 5.7 with commit 601ef0d52e9617588fcff3df26953592f2eb44ac and fixed in 6.17-rc1 with commit deb016c1669002e48c431d6fd32ea1c20ef41756 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-38659 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/gfs2/util.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/1a91ba12abef628b43cada87478328274d988e88 https://git.kernel.org/stable/c/f5426ffbec971a8f7346a57392d3a901bdee5a9b https://git.kernel.org/stable/c/6784367b2f3cd7b89103de35764f37f152590dbd https://git.kernel.org/stable/c/97c94c7dbddc34d353c83b541b3decabf98d04af https://git.kernel.org/stable/c/deb016c1669002e48c431d6fd32ea1c20ef41756