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 3963B2E370E for ; Tue, 7 Oct 2025 15:20:50 +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=1759850450; cv=none; b=u75hQ2+pJpqpoUPIPj5qfsAZ2ztn8+toeJTZv0h/dQXH/k714jDTBDVjVOQQSJFnItj3VehuDXX/L4UJp/BCeJEa4QQT7uYVNgewd1/ntQXyT+/atK4oFYNf1yLDkJnldALsVOZ/C6U/203O/hS60B97T9u0vtQBpm/TRu4kaE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850450; c=relaxed/simple; bh=6ROktBYlNjRsVzxuHdjXvfE94reAUAvs5vsIRe69du0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D9JjYHOTYFg6NzIB7K64+yo0GGE0Oh7c3CakN93ldpdy/1zyZCKTJHSMVflqFokWX7HYz1lFBSFYMWP0zQ42DgseE4BpEXGWs5aCeKvoJaMvnOVr5lCwnwee73EfMbL8HXAKMBE601l7clfADojR7qCo9yDOIL1kOC0u6YTP4sI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o6nCGpd/; 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="o6nCGpd/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABB88C4CEF1; Tue, 7 Oct 2025 15:20:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850450; bh=6ROktBYlNjRsVzxuHdjXvfE94reAUAvs5vsIRe69du0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=o6nCGpd/V9apmmaIdPspbArDzyKLRNbrsPgsezHCAdNUlEkOipDmsWgJU2SnVM+l1 kVTkSH+hzGxyB18guWJMYSpG09FoLlWIDSDHjZHotTB5KzUdwkOhyW8jNqs3+P+DsG ttH1f7YoeqE7dhlJFRs1dHpuuhy9ni4B5LPcg/Ck= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53622: gfs2: Fix possible data races in gfs2_show_options() Date: Tue, 7 Oct 2025 17:19:27 +0200 Message-ID: <2025100710-CVE-2023-53622-2f9b@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=3148; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=umj73RcebNi3D42Jn8Mlh05+YHXKDdESwvF2IAASpKo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9fP+7bUS2xXy9ZFtWvbGrAslF3buu6lbXTuDh53Ze Y/UFKPfHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR/N0M86M4i3ev1A0/99lJ tGDJfh3dvDm93gwLjv7UuyjT9+6NJ8Od4i1l+wtPTLD6DgA= 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: Fix possible data races in gfs2_show_options() Some fields such as gt_logd_secs of the struct gfs2_tune are accessed without holding the lock gt_spin in gfs2_show_options(): val = sdp->sd_tune.gt_logd_secs; if (val != 30) seq_printf(s, ",commit=%d", val); And thus can cause data races when gfs2_show_options() and other functions such as gfs2_reconfigure() are concurrently executed: spin_lock(>->gt_spin); gt->gt_logd_secs = newargs->ar_commit; To fix these possible data races, the lock sdp->sd_tune.gt_spin is acquired before accessing the fields of gfs2_tune and released after these accesses. Further changes by Andreas: - Don't hold the spin lock over the seq_printf operations. The Linux kernel CVE team has assigned CVE-2023-53622 to this issue. Affected and fixed versions =========================== Fixed in 4.14.324 with commit 7e5bbeb7eb813bb2568e1d5d02587df943272e57 Fixed in 4.19.293 with commit 235a5ae73cea29109a3e06f100493f17857e6a93 Fixed in 5.4.255 with commit b4a7ab57effbed42624842f2ab2a49b177c21a47 Fixed in 5.10.192 with commit 7c5b2649f6a37d45bfb7abf34c9b71d08677139f Fixed in 5.15.128 with commit 85e888150075cb221270b64bf772341fc6bd11d9 Fixed in 6.1.47 with commit a4f71523ed2123d63b431cc0cea4e9f363a0f054 Fixed in 6.4.12 with commit 42077d4de49e4d9c773c97c42d5383b4899a8f9d Fixed in 6.5 with commit 6fa0a72cbbe45db4ed967a51f9e6f4e3afe61d20 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-2023-53622 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/super.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/7e5bbeb7eb813bb2568e1d5d02587df943272e57 https://git.kernel.org/stable/c/235a5ae73cea29109a3e06f100493f17857e6a93 https://git.kernel.org/stable/c/b4a7ab57effbed42624842f2ab2a49b177c21a47 https://git.kernel.org/stable/c/7c5b2649f6a37d45bfb7abf34c9b71d08677139f https://git.kernel.org/stable/c/85e888150075cb221270b64bf772341fc6bd11d9 https://git.kernel.org/stable/c/a4f71523ed2123d63b431cc0cea4e9f363a0f054 https://git.kernel.org/stable/c/42077d4de49e4d9c773c97c42d5383b4899a8f9d https://git.kernel.org/stable/c/6fa0a72cbbe45db4ed967a51f9e6f4e3afe61d20