# CVE-2024-42232: libceph: fix race between delayed\_work() and ceph\_monc\_stop()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 57, 2026-12-02)
- **CWE:** CWE-416
- **Published:** 2024-08-07T15:14:23.074Z
- **Modified:** 2026-08-05T11:35:57.190Z

## Who should check

- Anyone running Linux \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 1177afeca833174ba83504688eec898c6214f4bf; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 63e5d035e3a7ab7412a008f202633c5e6a0a28ea; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 34b76d1922e41da1fa73d43b764cddd82ac9733c; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 20cf67dcb7db842f941eff1af6ee5e9dc41796d7; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 2d33654d40a05afd91ab24c9a73ab512a0670a9a; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 9525af1f58f67df387768770fcf6d6a8f23aee3d; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 33d38c5da17f8db2d80e811b7829d2822c10625e; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 69c7b2fe4c9cc1d3b1186d1c5606627ecf0de883
- Anyone running Linux 4.6

## Description

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

libceph: fix race between delayed\_work() and ceph\_monc\_stop()

The way the delayed work is handled in ceph\_monc\_stop() is prone to
races with mon\_fault() and possibly also finish\_hunting().  Both of
these can requeue the delayed work which wouldn't be canceled by any of
the following code in case that happens after cancel\_delayed\_work\_sync()
runs -- \_\_close\_session() doesn't mess with the delayed work in order
to avoid interfering with the hunting interval logic.  This part was
missed in commit b5d91704f53e ("libceph: behave in mon\_fault() if
cur\_mon \< 0") and use-after-free can still ensue on monc and objects
that hang off of it, with monc-\>auth and monc-\>monmap being
particularly susceptible to quickly being reused.

To fix this:

- clear monc-\>cur\_mon and monc-\>hunting as part of closing the session
  in ceph\_monc\_stop()
- bail from delayed\_work() if monc-\>cur\_mon is cleared, similar to how
  it's done in mon\_fault() and finish\_hunting() (based on monc-\>hunting)
- call cancel\_delayed\_work\_sync() after the session is closed

## Affected and fixed versions

- Linux: \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 1177afeca833174ba83504688eec898c6214f4bf; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 63e5d035e3a7ab7412a008f202633c5e6a0a28ea; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 34b76d1922e41da1fa73d43b764cddd82ac9733c; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 20cf67dcb7db842f941eff1af6ee5e9dc41796d7; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 2d33654d40a05afd91ab24c9a73ab512a0670a9a; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 9525af1f58f67df387768770fcf6d6a8f23aee3d; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 33d38c5da17f8db2d80e811b7829d2822c10625e; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 69c7b2fe4c9cc1d3b1186d1c5606627ecf0de883 (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- Upgrade Linux to 69c7b2fe4c9cc1d3b1186d1c5606627ecf0de883 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-42232. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42232.md
Affected: Linux >= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, < 1177afeca833174ba83504688eec898c6214f4bf; >= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, < 63e5d035e3a7ab7412a008f202633c5e6a0a28ea; >= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, < 34b76d1922e41da1fa73d43b764cddd82ac9733c; >= 0e04dc26cc594d31ee6b138…
Fixed in: Linux 1177afeca833174ba83504688eec898c6214f4bf, Linux 63e5d035e3a7ab7412a008f202633c5e6a0a28ea, Linux 34b76d1922e41da1fa73d43b764cddd82ac9733c, Linux 20cf67dcb7db842f941eff1af6ee5e9dc41796d7, Linux 2d33654d40a05afd91ab24c9a73ab512a0670a9a, Linux 9525af1f58f67df387768770fcf6d6a8f23aee3d, Linux 33d38…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-42232 being exploited?

There is no confirmed exploitation: CVE-2024-42232 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.76% chance of exploitation in the next 30 days (as of 2026-12-02).

### How serious is CVE-2024-42232?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-42232?

Linux \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 1177afeca833174ba83504688eec898c6214f4bf; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 63e5d035e3a7ab7412a008f202633c5e6a0a28ea; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 34b76d1922e41da1fa73d43b764cddd82ac9733c; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 20cf67dcb7db842f941eff1af6ee5e9dc41796d7; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 2d33654d40a05afd91ab24c9a73ab512a0670a9a; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 9525af1f58f67df387768770fcf6d6a8f23aee3d; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 33d38c5da17f8db2d80e811b7829d2822c10625e; \>= 0e04dc26cc594d31ee6b1382b452b6bc83b57937, \< 69c7b2fe4c9cc1d3b1186d1c5606627ecf0de883; Linux 4.6.

### Is there a fix for CVE-2024-42232?

Yes. Fixed in Linux 1177afeca833174ba83504688eec898c6214f4bf, Linux 63e5d035e3a7ab7412a008f202633c5e6a0a28ea, Linux 34b76d1922e41da1fa73d43b764cddd82ac9733c, Linux 20cf67dcb7db842f941eff1af6ee5e9dc41796d7, Linux 2d33654d40a05afd91ab24c9a73ab512a0670a9a, Linux 9525af1f58f67df387768770fcf6d6a8f23aee3d, Linux 33d38c5da17f8db2d80e811b7829d2822c10625e, Linux 69c7b2fe4c9cc1d3b1186d1c5606627ecf0de883. Upgrade Linux to 69c7b2fe4c9cc1d3b1186d1c5606627ecf0de883 or later.

### How do I check if I'm affected by CVE-2024-42232?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/1177afeca833174ba83504688eec898c6214f4bf>
- patch: <https://git.kernel.org/stable/c/63e5d035e3a7ab7412a008f202633c5e6a0a28ea>
- patch: <https://git.kernel.org/stable/c/34b76d1922e41da1fa73d43b764cddd82ac9733c>
- patch: <https://git.kernel.org/stable/c/20cf67dcb7db842f941eff1af6ee5e9dc41796d7>
- patch: <https://git.kernel.org/stable/c/2d33654d40a05afd91ab24c9a73ab512a0670a9a>
- patch: <https://git.kernel.org/stable/c/9525af1f58f67df387768770fcf6d6a8f23aee3d>
- patch: <https://git.kernel.org/stable/c/33d38c5da17f8db2d80e811b7829d2822c10625e>
- patch: <https://git.kernel.org/stable/c/69c7b2fe4c9cc1d3b1186d1c5606627ecf0de883>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-42232>

HTML: <https://flawdb.com/CVE-2024-42232> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-42232>
