CVE-2023-53622: gfs2: Fix possible data races in gfs2_show_options()
In the Linux kernel, the following vulnerability has been resolved:
gfs2: Fix possible data races in gfs2showoptions()
Some fields such as gtlogdsecs of the struct gfs2tune are accessed without holding the lock gtspin in gfs2showoptions():
val = sdp->sdtune.gtlogdsecs; if (val != 30) seqprintf(s, ",commit=%d", val);
And thus can cause data races when gfs2showoptions() and other functions such as gfs2reconfigure() are concurrently executed:
spinlock(>->gtspin); gt->gtlogdsecs = newargs->arcommit;
To fix these possible data races, the lock sdp->sdtune.gtspin is acquired before accessing the fields of gfs2tune and released after these accesses.
Further changes by Andreas:
- Don't hold the spin lock over the seqprintf operations.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2023-53622?
CVE-2023-53622 has been classified with a high severity due to possible data races that could impact system stability.
How do I fix CVE-2023-53622?
To fix CVE-2023-53622, upgrade your Linux kernel to a version that includes the patch for this vulnerability.
Which Linux kernel versions are affected by CVE-2023-53622?
CVE-2023-53622 affects Linux kernel versions from 2.6.31 up to but not including 4.14.324, 4.15 up to 4.19.293, 4.20 up to 5.4.255, 5.5 up to 5.10.192, 5.11 up to 5.15.128, 5.16 up to 6.1.47, and 6.2 up to 6.4.12.
What is the impact of CVE-2023-53622 on Linux systems?
The impact of CVE-2023-53622 may include potential data corruption and system instability due to data races.
Who is affected by CVE-2023-53622?
Any users or administrators running the affected versions of the Linux kernel are at risk from CVE-2023-53622.