CVE-2024-38570

HIGH

Linux Kernel 3.8-6.6.32, 6.7.0-6.8.11, 6.9.0-6.9.2 - Use-After-Free in GFS2 Glock Handling

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: gfs2: Fix potential glock use-after-free on unmount When a DLM lockspace is released and there ares still locks in that lockspace, DLM will unlock those locks automatically. Commit fb6791d100d1b started exploiting this behavior to speed up filesystem unmount: gfs2 would simply free glocks it didn't want to unlock and then release the lockspace. This didn't take the bast callbacks for asynchronous lock contention notifications into account, which remain active until until a lock is unlocked or its lockspace is released. To prevent those callbacks from accessing deallocated objects, put the glocks that should not be unlocked on the sd_dead_glocks list, release the lockspace, and only then free those glocks. As an additional measure, ignore unexpected ast and bast callbacks if the receiving glock is dead.

Scores

CVSS v3 7.8
EPSS 0.0025
EPSS Percentile 16.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-416
Status published
Products (14)
linux/Kernel 3.8.0 - 6.6.33linux
linux/Kernel 6.7.0 - 6.8.12linux
linux/Kernel 6.9.0 - 6.9.3linux
Linux/Linux < 3.8
Linux/Linux 3.8
Linux/Linux 6.10
Linux/Linux 6.6.33 - 6.6.*
Linux/Linux 6.8.12 - 6.8.*
Linux/Linux 6.9.3 - 6.9.*
Linux/Linux fb6791d100d1bba20b5cdbc4912e1f7086ec60f8 - 0636b34b44589b142700ac137b5f69802cfe2e37
... and 4 more
Published Jun 19, 2024
Tracked Since Feb 18, 2026