CVE-2021-47254

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47254
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47254.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-47254
Related
Published
2024-05-21T15:15:14Z
Modified
2024-09-11T02:00:05Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

gfs2: Fix use-after-free in gfs2glockshrink_scan

The GLFLRU flag is checked under lrulock in gfs2glockremovefromlru() to remove the glock from the lru list in _gfs2glock_put().

On the shrink scan path, the same flag is cleared under lrulock but because of condreschedlock(&lrulock) in gfs2disposeglock_lru(), progress on the put side can be made without deleting the glock from the lru list.

Keep GLFLRU across the race window opened by condreschedlock(&lrulock) to ensure correct behavior on both sides - clear GLFLRU after listdel under lru_lock.

References

Affected packages

Debian:11 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.46-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.46-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.46-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}