# CVE-2024-56710: ceph: fix memory leak in ceph_direct_read_write()

- Severity: Low 3.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-12-29T08:48:44.411Z
- Modified: 2026-06-17T08:12:48.113Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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).

(As written by CVE List.)

## Affected

- Linux Linux: from 03bc06c7b0bd8d86b9f17f459acaeb1283ba2700 before 44e518abbb498075ae85c7d1d1a503a6bb05ea2d; from 03bc06c7b0bd8d86b9f17f459acaeb1283ba2700 before eb9041837123f31d5897e99bb761f46cb4ce5859; from 03bc06c7b0bd8d86b9f17f459acaeb1283ba2700 before 66e0c4f91461d17d48071695271c824620bed4ef; 6.6 (not affected: before 6.6; from 6.6.69 up to 6.6.*; from 6.12.7 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.6 before 6.6.69; from 6.7 before 6.12.7; 6.13

## Every score

- CISA-ADP: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/44e518abbb498075ae85c7d1d1a503a6bb05ea2d> (patch)
- <https://git.kernel.org/stable/c/eb9041837123f31d5897e99bb761f46cb4ce5859> (patch)
- <https://git.kernel.org/stable/c/66e0c4f91461d17d48071695271c824620bed4ef> (patch)

## Sources

- CVE List: [CVE-2024-56710](https://www.cve.org/CVERecord?id=CVE-2024-56710), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-56710](https://nvd.nist.gov/vuln/detail/CVE-2024-56710), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56710 · Whole record: https://cve.day/CVE-2024-56710.json · Rebuilt by cve.day 2026-11-25T22:58:50.549Z
