Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 7030C331EB1 for ; Sun, 19 Jul 2026 12:04:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462680; cv=none; b=JcNEuRTInuUVK7tIUtGx4t67jEyqK7dGePsww7bpfEXoEG1oOnTeJH4rtbMx7jHwvVDEvF6xmWdPYYP7ZV/2DrThu3WCktKBJ/YG1m94AQ+/hLM5z9jrEar2x2DaRSrgaKj2y1f+UjgogOG/8qLvBpxL6VR8anvrBfBAT4nONCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462680; c=relaxed/simple; bh=4dasfUyrYqEHGOrz1zzTnqyWcAMvhFvGdJkMIQOYzDw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SkemqckLxrBZtdSKODJeF6S91OZYUbOIM+DFME1BC5cOWtH9iwkretTfPCHyLJbVAnxhrZB2gprChMVINW0UmVjHSqzeU6WdqvEtIJ5A3ok/iYt0xdwPV+e+tB4PqDaGTjNuVPNEaEMCQGK8lwpU3kkQQQd9g5AbxNtbwtnoFaI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bNaBnmEx; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="bNaBnmEx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D63741F000E9; Sun, 19 Jul 2026 12:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462679; bh=izApSVzw00CsINopzG/UdYqFpEjnk2ekWNT+zG2HLy4=; h=From:To:Cc:Subject:Date:Reply-To; b=bNaBnmExjhbq6V7mltZTKGtwCbcX5xtDQHB9CkOifQ84X5SaNe0Wl6glJAMntU0eu a0tfPCH2IeW6DJRs8SGstSJYjg0YS8CPBNiZGKLorgIWGqxWnEAe2wMaHxRstbOzgS 3MxXgLo09QEcYT92+/0u820gAwA32iE+Lx3I34io= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63804: gfs2: fix use-after-free in gfs2_qd_dealloc Date: Sun, 19 Jul 2026 14:02:21 +0200 Message-ID: <2026071902-CVE-2026-63804-8035@gregkh> X-Mailer: git-send-email 2.55.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=3345; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vN5JJYTAGt61yaRBDYpmsLyC3qkSmiMbuRyrUDC4ZR0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe3bNDz/2eIOIiF7Iz1dtc3ZPjHjUX1+y1UtT6L40z 5zU34G3O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAijtMY5tcLHCysUNx5iTlY 7eDH4359R5vFjzMsmFczrzR3+rbeJvEeV4selVkukrseAQA= 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 use-after-free in gfs2_qd_dealloc gfs2_qd_dealloc(), called as an RCU callback from gfs2_qd_dispose(), accesses the superblock object sdp through qd->qd_sbd after freeing qd. It does so to decrement sd_quota_count and wake up sd_kill_wait. However, by the time the RCU callback runs, gfs2_put_super() may have already freed sdp via free_sbd(). This can happen when gfs2_quota_cleanup() is called during unmount: it disposes of quota objects via call_rcu() and then waits on sd_kill_wait with a 60-second timeout. If the timeout expires, or if gfs2_gl_hash_clear() triggers additional qd_put() calls that schedule more RCU callbacks after the wait completes, gfs2_put_super() will proceed to free the superblock while RCU callbacks referencing it are still pending. Add an rcu_barrier() before free_sbd() in gfs2_put_super() to ensure all pending RCU callbacks (including gfs2_qd_dealloc) have completed before the superblock is freed. The Linux kernel CVE team has assigned CVE-2026-63804 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit a475c5dd16e57c570113eccba51955b5df8bb052 and fixed in 6.6.144 with commit 4fe388218826df8607ae41a6305df67db08a9093 Issue introduced in 6.6 with commit a475c5dd16e57c570113eccba51955b5df8bb052 and fixed in 6.12.95 with commit 8745d9f7e1682c39f0a1578895ac74205e2a6757 Issue introduced in 6.6 with commit a475c5dd16e57c570113eccba51955b5df8bb052 and fixed in 6.18.38 with commit b85ef03f726b15047a6fa6d11b639bdf6c0ee4f0 Issue introduced in 6.6 with commit a475c5dd16e57c570113eccba51955b5df8bb052 and fixed in 7.1.3 with commit 9d0d5ba20cad661f7f287d4c66d2c19022ce2fd0 Issue introduced in 6.6 with commit a475c5dd16e57c570113eccba51955b5df8bb052 and fixed in 7.2-rc1 with commit f9c9ec2c319f843b70ecdf939d48b52d189bc081 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-2026-63804 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/4fe388218826df8607ae41a6305df67db08a9093 https://git.kernel.org/stable/c/8745d9f7e1682c39f0a1578895ac74205e2a6757 https://git.kernel.org/stable/c/b85ef03f726b15047a6fa6d11b639bdf6c0ee4f0 https://git.kernel.org/stable/c/9d0d5ba20cad661f7f287d4c66d2c19022ce2fd0 https://git.kernel.org/stable/c/f9c9ec2c319f843b70ecdf939d48b52d189bc081