libceph: remove debugfs files before client teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 76aa844d5b2fb8c839180d3f5874e333b297e5fd · < 8f5a3abc54ba24dbceb14cc3a719908c4f688091| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's libceph component can free a monitor map before removing its per-client debugfs files. A concurrent local read of the monmap debugfs file during client teardown can trigger a use-after-free. The input does not specify an authentication requirement.
Teams running Linux kernels with the affected libceph code should check their kernel version; affected versions are not specified.