Skip to contentSkip to conversation

CVE-2026-53048: gfs2: prevent NULL pointer dereference during unmount

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

gfs2: prevent NULL pointer dereference during unmount

When flushing out outstanding glock work during an unmount, gfs2_log_flush() can be called when sdp->sd_jdesc has already been deallocated and sdp->sd_jdesc is NULL. Commit 35264909e9d1 ("gfs2: Fix NULL pointer dereference in gfs2_log_flush") added a check for that to gfs2_log_flush() itself, but it missed the sdp->sd_jdesc dereference in gfs2_log_release(). Fix that.

The Linux kernel CVE team has assigned CVE-2026-53048 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.15.200 with commit c3c5cfa3170c0940bc66a142859caac07d19b9d6 and fixed in 5.15.209 with commit cec55674354794eddb80b914f73a6bf9b7fc304a
	Issue introduced in 6.1.162 with commit 5f6a84cfb33b34610623857bd93919dcb661e29b and fixed in 6.1.175 with commit 2fc4c868c9060f424fd4a7cacb0aec5082aba4de
	Issue introduced in 6.6.37 with commit 3429ef5f50909cee9e498c50f0c499b9397116ce and fixed in 6.6.141 with commit 233a0945a4b1dbe3f38c30afb7d05b76c67f1193
	Issue introduced in 6.10 with commit 35264909e9d1973ab9aaa2a1b07cda70f12bb828 and fixed in 6.12.91 with commit e15f16761594e80b15776980b27c35477655a135
	Issue introduced in 6.10 with commit 35264909e9d1973ab9aaa2a1b07cda70f12bb828 and fixed in 6.18.33 with commit d8ffae016c4a78693fe1283335d0b6833a9c1366
	Issue introduced in 6.10 with commit 35264909e9d1973ab9aaa2a1b07cda70f12bb828 and fixed in 7.0.10 with commit abd73229f0e886a91a16ea781ab656bd9b4d1ee8
	Issue introduced in 6.10 with commit 35264909e9d1973ab9aaa2a1b07cda70f12bb828 and fixed in 7.1 with commit 74b4dbb946060a3233604d91859a9abd3708141d
	Issue introduced in 6.9.8 with commit f54f9d5368a4e92ede7dd078a62788dae3a7c6ef

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-53048

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/log.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/cec55674354794eddb80b914f73a6bf9b7fc304a
	https://git.kernel.org/stable/c/2fc4c868c9060f424fd4a7cacb0aec5082aba4de
	https://git.kernel.org/stable/c/233a0945a4b1dbe3f38c30afb7d05b76c67f1193
	https://git.kernel.org/stable/c/e15f16761594e80b15776980b27c35477655a135
	https://git.kernel.org/stable/c/d8ffae016c4a78693fe1283335d0b6833a9c1366
	https://git.kernel.org/stable/c/abd73229f0e886a91a16ea781ab656bd9b4d1ee8
	https://git.kernel.org/stable/c/74b4dbb946060a3233604d91859a9abd3708141d