CVE-2026-53049: gfs2: add some missing log locking
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
gfs2: add some missing log locking
Function gfs2_logd() calls the log flushing functions gfs2_ail1_start(), gfs2_ail1_wait(), and gfs2_ail1_empty() without holding sdp->sd_log_flush_lock, but these functions require exclusion against concurrent transactions.
To fix that, add a non-locking __gfs2_log_flush() function. Then, in gfs2_logd(), take sdp->sd_log_flush_lock before calling the above mentioned log flushing functions and __gfs2_log_flush().
The Linux kernel CVE team has assigned CVE-2026-53049 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit 5e4c7632aae1cce137792647f4fb6f599d1da893 and fixed in 5.15.209 with commit 3b28eb75afe520972bacc833850c2b30aa0824cd Issue introduced in 5.7 with commit 5e4c7632aae1cce137792647f4fb6f599d1da893 and fixed in 6.1.175 with commit ca95342cb1b39062a03c115830286f0a426053d5 Issue introduced in 5.7 with commit 5e4c7632aae1cce137792647f4fb6f599d1da893 and fixed in 6.6.141 with commit bf5fcd9c37c2546beaf7b401d31aefd89017dc3d Issue introduced in 5.7 with commit 5e4c7632aae1cce137792647f4fb6f599d1da893 and fixed in 6.12.91 with commit f2f225cf505ac016132ded21690f3ba0a080a4e8 Issue introduced in 5.7 with commit 5e4c7632aae1cce137792647f4fb6f599d1da893 and fixed in 6.18.33 with commit 49d9be0722da3a4a893ba905720cba1921834ec3 Issue introduced in 5.7 with commit 5e4c7632aae1cce137792647f4fb6f599d1da893 and fixed in 7.0.10 with commit 98e8bf249c790d56de1abc4a5f8bd68035a00921 Issue introduced in 5.7 with commit 5e4c7632aae1cce137792647f4fb6f599d1da893 and fixed in 7.1 with commit fe2c8d051150b90b3ccb85f89e3b1d636cb88ec8
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-53049
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/3b28eb75afe520972bacc833850c2b30aa0824cd https://git.kernel.org/stable/c/ca95342cb1b39062a03c115830286f0a426053d5 https://git.kernel.org/stable/c/bf5fcd9c37c2546beaf7b401d31aefd89017dc3d https://git.kernel.org/stable/c/f2f225cf505ac016132ded21690f3ba0a080a4e8 https://git.kernel.org/stable/c/49d9be0722da3a4a893ba905720cba1921834ec3 https://git.kernel.org/stable/c/98e8bf249c790d56de1abc4a5f8bd68035a00921 https://git.kernel.org/stable/c/fe2c8d051150b90b3ccb85f89e3b1d636cb88ec8