CVE-2021-47254

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
21/05/2024
Last modified:
30/12/2024

Description

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

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.4.274 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.5 (including) 4.9.274 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.10 (including) 4.14.238 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.15 (including) 4.19.196 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.20 (including) 5.4.127 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.45 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.12.12 (excluding)
cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc4:*:*:*:*:*:*