CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

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

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

Classification

CVE ID: CVE-2024-56710

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 5.08% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

References

https://git.kernel.org/stable/c/eb9041837123f31d5897e99bb761f46cb4ce5859
https://git.kernel.org/stable/c/66e0c4f91461d17d48071695271c824620bed4ef

Timeline