PT-2024-7068
CVE-2024-42232
·
Published
2024-07-10
·
Updated
2026-10-21
Description by
CVSS 3.1
9.8
CriticalMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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.
Exploitability
Exploit
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾