PT-2024-7068 · Linux+6 · Linux Kernel+6
Ilya Dryomov
·
Published
2024-07-10
·
Updated
2025-09-29
·
CVE-2024-42232
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
The issue is related to a race condition between
delayed work() and ceph monc stop() in the Linux kernel, specifically in the libceph module. This race condition can lead to a use-after-free scenario, particularly affecting monc->auth and monc->monmap. The problem arises because close session() does not interfere with the delayed work to avoid disrupting the hunting interval logic, but this omission allows mon fault() and possibly finish hunting() to requeue the delayed work after cancel delayed work sync() has run, leading to potential use-after-free issues.Recommendations
- Clear
monc->cur monandmonc->huntingas part of closing the session inceph monc stop(). - Bail from
delayed work()ifmonc->cur monis cleared, similar to how it's done inmon fault()andfinish hunting()(based onmonc->hunting). - Call
cancel delayed work sync()after the session is closed. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Use After Free
Race Condition
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu