{"id":"CVE-2024-56710","summary":"ceph: fix memory leak in ceph_direct_read_write()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix memory leak in ceph_direct_read_write()\n\nThe bvecs array which is allocated in iter_get_bvecs_alloc() is leaked\nand pages remain pinned if ceph_alloc_sparse_ext_map() fails.\n\nThere is no need to delay the allocation of sparse_ext map until after\nthe bvecs array is set up, so fix this by moving sparse_ext allocation\na bit earlier.  Also, make a similar adjustment in __ceph_sync_read()\nfor consistency (a leak of the same kind in __ceph_sync_read() has been\naddressed differently).","modified":"2026-03-20T12:40:59.411310Z","published":"2024-12-29T08:48:44.411Z","related":["USN-7379-2","USN-7380-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56710.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/44e518abbb498075ae85c7d1d1a503a6bb05ea2d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/66e0c4f91461d17d48071695271c824620bed4ef"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb9041837123f31d5897e99bb761f46cb4ce5859"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56710.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56710"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"03bc06c7b0bd8d86b9f17f459acaeb1283ba2700"},{"fixed":"44e518abbb498075ae85c7d1d1a503a6bb05ea2d"},{"fixed":"eb9041837123f31d5897e99bb761f46cb4ce5859"},{"fixed":"66e0c4f91461d17d48071695271c824620bed4ef"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56710.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"}]}