Linux
libceph: remove debugfs files before client teardown
In the Linux kernel, the following vulnerability has been resolved: libceph: remove debugfs files before client teardown ceph_destroy_client() tears down the monitor client before removing the per-client debugfs files. A concurrent read of the monmap debugfs file can enter monmap_show() after ceph_monc_stop() has freed monc->monmap, triggering a use-after-free. Remove the debugfs files before stopping the OSD and monitor clients. debugfs_remove() drains active handlers and prevents new accesses, so the debugfs callbacks can no longer race the rest of client teardown.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 76aa844d5b2fb8c839180d3f5874e333b297e5fd, < ac78549d186090ee7125d28c3a8c376573b36194
- >= 76aa844d5b2fb8c839180d3f5874e333b297e5fd, < 463a264e9094384112a5c8b46f0a9ddaf8566904
- >= 76aa844d5b2fb8c839180d3f5874e333b297e5fd, < fe46b7e06f14f6f94766832df309b249cb689d27
- >= 76aa844d5b2fb8c839180d3f5874e333b297e5fd, < fc1010e7e0204ece6cc0f9af4f473e9553535eab
- >= 76aa844d5b2fb8c839180d3f5874e333b297e5fd, < d3dc8889d39a676bf840132bd5c5c48cb0daba23
- >= 76aa844d5b2fb8c839180d3f5874e333b297e5fd, < 8f5a3abc54ba24dbceb14cc3a719908c4f688091
- >= 76aa844d5b2fb8c839180d3f5874e333b297e5fd, < b9fedda2f628e030384228de0dafc574b7fb0c2f
- >= 76aa844d5b2fb8c839180d3f5874e333b297e5fd, < e4c804726c4afce3ba648b982d564f6af2cfa328
Fixed in ac78549d186090ee7125d28c3a8c376573b36194, 463a264e9094384112a5c8b46f0a9ddaf8566904, fe46b7e06f14f6f94766832df309b249cb689d27, fc1010e7e0204ece6cc0f9af4f473e9553535eab, d3dc8889d39a676bf840132bd5c5c48cb0daba23, 8f5a3abc54ba24dbceb14cc3a719908c4f688091, b9fedda2f628e030384228de0dafc574b7fb0c2f, e4c804726c4afce3ba648b982d564f6af2cfa328
- 2.6.34
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to ac78549d186090ee7125d28c3a8c376573b36194 or 463a264e9094384112a5c8b46f0a9ddaf8566904 or fe46b7e06f14f6f94766832df309b249cb689d27 or fc1010e7e0204ece6cc0f9af4f473e9553535eab or d3dc8889d39a676bf840132bd5c5c48cb0daba23 or 8f5a3abc54ba24dbceb14cc3a719908c4f688091 or b9fedda2f628e030384228de0dafc574b7fb0c2f or e4c804726c4afce3ba648b982d564f6af2cfa328 or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.