CVE-2021-47254 - CVE House
Back to Database
Status published High CVE-2021-47254

gfs2: Fix use-after-free in gfs2_glock_shrink_scan

Vulnerability Description

In the Linux kernel, the following vulnerability has been resolved: gfs2: Fix use-after-free in gfs2_glock_shrink_scan The GLF_LRU flag is checked under lru_lock in gfs2_glock_remove_from_lru() to remove the glock from the lru list in __gfs2_glock_put(). On the shrink scan path, the same flag is cleared under lru_lock but because of cond_resched_lock(&lru_lock) in gfs2_dispose_glock_lru(), progress on the put side can be made without deleting the glock from the lru list. Keep GLF_LRU across the race window opened by cond_resched_lock(&lru_lock) to ensure correct behavior on both sides - clear GLF_LRU after list_del under lru_lock.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2021-47254

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
6948c6bc17d666663a84c124b3176039e64a58f4, b568ed385a18c0ddbe41862b69088b636550a04f, 762bb3528249604bc680a9df635e8995740176de, bac8520892812dada1ac93f27d96317470d24b1f, 7881ef3f33bb80f459ea6020d1e021fc524a6348, 1e7a416fb765c9072479dc424780c0937ba99270, dcbdbe13796ffa561510d2686a6318564e728bbd, 4.4.181, 4.9.180, 4.14.123, 4.19.47, 5.0.20, 5.1.6, 5.2, 0, 4.4.274, 4.9.274, 4.14.238, 4.19.196, 5.4.127, 5.10.45, 5.12.12, 5.13

Timeline

Official Publish: May 21st, 2024
Last Modified: May 23rd, 2026
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.