CVE-2021-47254

Source
https://cve.org/CVERecord?id=CVE-2021-47254
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47254.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-47254
Downstream
Related
Published
2024-05-21T15:15:14Z
Modified
2026-03-15T22:00:14Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git /

Affected ranges

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47254.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "4.4.181"
            },
            {
                "fixed": "4.4.274"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "4.9.180"
            },
            {
                "fixed": "4.9.274"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "4.14.123"
            },
            {
                "fixed": "4.14.238"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "4.19.47"
            },
            {
                "fixed": "4.19.196"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.0.20"
            },
            {
                "fixed": "5.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.1.6"
            },
            {
                "fixed": "5.4.127"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.5"
            },
            {
                "fixed": "5.10.45"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.11"
            },
            {
                "fixed": "5.12.12"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.13-rc1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.13-rc2"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.13-rc3"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.13-rc4"
            }
        ]
    }
]