# gfs2: Fix use-after-free in gfs2_glock_shrink_scan

CVE record · `CVE-2021-47254`

- **Identifiers:** `CVE-2021-47254`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 21 May 2024
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 21 May 2024, 14:19 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `6948c6bc17d666663a84c124b3176039e64a58f4 to before 38ce329534500bf4ae71f81df6a37a406cf187b4` (git)
  - affected: `b568ed385a18c0ddbe41862b69088b636550a04f to before 92869945cc5b78ee8a1ef90336fe070893e3458a` (git)
  - affected: `762bb3528249604bc680a9df635e8995740176de to before 0364742decb0f02bc183404868b82896f7992595` (git)
  - affected: `bac8520892812dada1ac93f27d96317470d24b1f to before 094bf5670e762afa243d2c41a5c4ab71c7447bf4` (git)
  - affected: `7881ef3f33bb80f459ea6020d1e021fc524a6348 to before 86fd5b27db743a0ce0cc245e3a34813b2aa6ec1d` (git)
  - affected: `7881ef3f33bb80f459ea6020d1e021fc524a6348 to before a61156314b66456ab6a291ed5deba1ebd002ab3c` (git)
  - affected: `7881ef3f33bb80f459ea6020d1e021fc524a6348 to before e87ef30fe73e7e10d2c85bdcc778dcec24dca553` (git)
  - affected: `7881ef3f33bb80f459ea6020d1e021fc524a6348 to before 1ab19c5de4c537ec0d9b21020395a5b5a6c059b2` (git)
  - affected: `1e7a416fb765c9072479dc424780c0937ba99270` (git)
  - affected: `dcbdbe13796ffa561510d2686a6318564e728bbd` (git)
  - affected: `4.4.181 to before 4.4.274` (semver)
  - affected: `4.9.180 to before 4.9.274` (semver)
  - and 4 more
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.2`
  - unaffected: `before 5.2` (semver)
  - unaffected: `4.4.274 to 4.4.*, inclusive` (semver)
  - unaffected: `4.9.274 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.238 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.196 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.127 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.45 to 5.10.*, inclusive` (semver)
  - unaffected: `5.12.12 to 5.12.*, inclusive` (semver)
  - unaffected: `5.13 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0024, the 15th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 21 May 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2021-47254](https://www.cve.org/CVERecord?id=CVE-2021-47254)
- [NVD: CVE-2021-47254](https://nvd.nist.gov/vuln/detail/CVE-2021-47254)

### References from the CNA

- <https://git.kernel.org/stable/c/38ce329534500bf4ae71f81df6a37a406cf187b4>
- <https://git.kernel.org/stable/c/92869945cc5b78ee8a1ef90336fe070893e3458a>
- <https://git.kernel.org/stable/c/0364742decb0f02bc183404868b82896f7992595>
- <https://git.kernel.org/stable/c/094bf5670e762afa243d2c41a5c4ab71c7447bf4>
- <https://git.kernel.org/stable/c/86fd5b27db743a0ce0cc245e3a34813b2aa6ec1d>
- <https://git.kernel.org/stable/c/a61156314b66456ab6a291ed5deba1ebd002ab3c>
- <https://git.kernel.org/stable/c/e87ef30fe73e7e10d2c85bdcc778dcec24dca553>
- <https://git.kernel.org/stable/c/1ab19c5de4c537ec0d9b21020395a5b5a6c059b2>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2021-47254>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2021-47254/>. Everything for agents: <https://agentprime.io/llms.txt>.
