CVE-2024-56710
JSON

3.3low

ceph: fix memory leak in ceph_direct_read_write()

Severity
3.3low CVSS:3.1 by CISA-ADP
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
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).

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.6 before 6.6.69, from 6.7 before 6.12.7, 6.13NVD

All scores

CISA-ADP3.3low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ceph: se corrige la pérdida de memoria en ceph_direct_read_write() La matriz bvecs que se asigna en iter_get_bvecs_alloc() se filtra y las páginas permanecen fijadas si ceph_alloc_sparse_ext_map() falla. No es necesario retrasar la asignación del mapa sparse_ext hasta que se configure la matriz bvecs, así que solucione esto moviendo la asignación de sparse_ext un poco antes. Además, haga un ajuste similar en __ceph_sync_read() para lograr coherencia (una pérdida del mismo tipo en __ceph_sync_read() se ha abordado de forma diferente).

References

Sources

SourceRecordLicence
CVE ListCVE-2024-56710 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-56710 changed 2026-06-17Public domain