CVE & CISA-KEV Catalog

CVE-2021-47254

HIGH
7.8
CVSS v3
NVD

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.

How to fix

Remediation Available
linuxDebian
Fixed in:5.10.46-1CVE-2021-47254
Fixed in:5.10.46-1CVE-2021-47254
Fixed in:5.10.46-1CVE-2021-47254
Fixed in:5.10.46-1CVE-2021-47254
linuxUbuntu
Fixed in:4.4.0-279.313USN-8143-1
linux-awsUbuntu
Fixed in:4.4.0-1153.159USN-8143-1
Fixed in:4.4.0-1191.206USN-8143-1
linux-fipsUbuntu
Fixed in:4.4.0-1123.130USN-8143-2
linux-image-4.4.0-1123-fipsUbuntu
Fixed in:4.4.0-1123.130USN-8143-2
linux-image-4.4.0-1153-awsUbuntu
Fixed in:4.4.0-1153.159USN-8143-1
linux-image-4.4.0-1154-kvmUbuntu
Fixed in:4.4.0-1154.165USN-8143-1
linux-image-4.4.0-1191-awsUbuntu
Fixed in:4.4.0-1191.206USN-8143-1
linux-image-4.4.0-279-genericUbuntu
Fixed in:4.4.0-279.313~14.04.1+1USN-8143-1
Fixed in:4.4.0-279.313USN-8143-1
linux-image-4.4.0-279-lowlatencyUbuntu
Fixed in:4.4.0-279.313~14.04.1+1USN-8143-1
Fixed in:4.4.0-279.313USN-8143-1
linux-image-awsUbuntu
Fixed in:4.4.0.1153.150USN-8143-1
Fixed in:4.4.0.1191.195USN-8143-1
linux-image-fipsUbuntu
Fixed in:4.4.0.1123.124USN-8143-2
linux-image-genericUbuntu
Fixed in:4.4.0.279.285USN-8143-1
linux-image-generic-lts-xenialUbuntu
Fixed in:4.4.0.279.313~14.04.1USN-8143-1
Fixed in:4.4.0.279.285USN-8143-1
linux-image-kvmUbuntu
Fixed in:4.4.0.1154.151USN-8143-1
linux-image-lowlatencyUbuntu
Fixed in:4.4.0.279.285USN-8143-1
linux-image-lowlatency-lts-xenialUbuntu
Fixed in:4.4.0.279.313~14.04.1USN-8143-1
Fixed in:4.4.0.279.285USN-8143-1
linux-image-virtualUbuntu
Fixed in:4.4.0.279.285USN-8143-1
linux-image-virtual-lts-xenialUbuntu
Fixed in:4.4.0.279.313~14.04.1USN-8143-1
Fixed in:4.4.0.279.285USN-8143-1
linux-kvmUbuntu
Fixed in:4.4.0-1154.165USN-8143-1
linux-lts-xenialUbuntu
Fixed in:4.4.0-279.313~14.04.1USN-8143-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

0.24%probability of exploitation in 30 days
15thpercentile

Low risk: more likely to be exploited than 15% of all known CVEs.

References

Related Vulnerabilities

Other CWE-416 (Use After Free) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2019-0708Critical9.8100%KEV + Ransom-
CVE-2021-31166Critical9.8100%KEVFix
CVE-2015-5119Critical9.899%KEV-
CVE-2010-3962High8.197%KEV-
CVE-2015-0313Critical9.896%KEVFix
CVE-2017-9798High7.595%-Fix
Embed a live status badge for CVE-2021-47254
CVE-2021-47254 severity badge

Markdown

[![CVE-2021-47254](https://tridentstack.com/cve/badge/CVE-2021-47254.svg)](https://tridentstack.com/cve/CVE-2021-47254)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-47254"><img src="https://tridentstack.com/cve/badge/CVE-2021-47254.svg" alt="CVE-2021-47254"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-03-17.