What’s Vulnerable › Vulnerabilities
CVE-2024-56710: ceph: fix memory leak in ceph_direct_read_write()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-12-29 · updated 2026-06-17
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: ceph: fix memory leak in ceph_direct_read_write() The bvecs array which is allocated in iter_get_bvecs_alloc() is leaked and pages remain pinned if ceph_alloc_sparse_ext_map() fails. There is no need to delay the allocation of sparse_ext map until after the bvecs array is set up, so fix this by moving sparse_ext allocation a bit earlier. Also, make a similar adjustment in __ceph_sync_read() for consistency (a leak of the same kind in __ceph_sync_read() has been addressed differently).
Affected products
- Linux kernel: from 6.6 before 6.6.69; from 6.7 before 6.12.7; 6.13-rc1, 6.13-rc2, 6.13-rc3 — fixed in 6.12.7, 6.6.69
How to fix
Upgrade to a fixed version: Linux kernel 6.12.7, 6.6.69. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/44e518abbb498075ae85c7d1d1a503a6bb05ea2d
- https://git.kernel.org/stable/c/66e0c4f91461d17d48071695271c824620bed4ef
- https://git.kernel.org/stable/c/eb9041837123f31d5897e99bb761f46cb4ce5859
Get alerted when CVE-2024-56710 or the next vulnerability affects your stack