CVE-2024-56710

medium

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

References

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

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

https://git.kernel.org/stable/c/44e518abbb498075ae85c7d1d1a503a6bb05ea2d

Details

Source: Mitre, NVD

Published: 2024-12-29

Updated: 2025-01-06

Risk Information

CVSS v2

Base Score: 4.6

Vector: CVSS2#AV:L/AC:L/Au:S/C:N/I:N/A:C

Severity: Medium

CVSS v3

Base Score: 5.5

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Severity: Medium