CVE-2024-56710

ceph: fix memory leak in ceph_direct_read_write()

Low · published December 29, 2024

CVSS v3.1
3.3
EPSS
0%
Percentile
15.4
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
3.3 · LOW
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.00250 · 15.4th percentile
Published
2024-12-29T08:48Z
EPSS history
Timeline
  • 29 DEC 08:48Z
    ceph: fix memory leak in ceph_direct_read_write()
    cvelistv5