Bug 2334792 (CVE-2024-56710) - CVE-2024-56710 kernel: ceph: fix memory leak in ceph_direct_read_write()
Summary: CVE-2024-56710 kernel: ceph: fix memory leak in ceph_direct_read_write()
Keywords:
Status: NEW
Alias: CVE-2024-56710
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-29 09:01 UTC by OSIDB Bzimport
Modified: 2024-12-29 10:26 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-29 09:01:21 UTC
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).

Comment 1 Avinash Hanwate 2024-12-29 10:22:55 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122913-CVE-2024-56710-78af@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.