ceph: fix memory leak in ceph_direct_read_write()
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).
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.7, 6.6.69
- CVEs
- CVE-2024-56710
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 05:26 UTC · Revision 1
Source evidence
ceph: fix memory leak in ceph_direct_read_write()
core-osv · Original sourcePublished 29 Dec 2024, 08:48 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).
osv:CVE-2024-56710
Kernel
Fixed versions: 6.6.69, 6.12.7
Complete source record
{
"id": "fa13dfc30c6cf77c8ba0de24b4f4ac3d0515f062dae24cc6531e732729db8802",
"url": "https://osv.dev/vulnerability/CVE-2024-56710",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ceph: fix memory leak in ceph_direct_read_write()",
"summary": "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).",
"evidence": "osv:CVE-2024-56710",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.69",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "low",
"structured": {
"id": "CVE-2024-56710",
"aliases": [
"CVE-2024-56710"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "03bc06c7b0bd8d86b9f17f459acaeb1283ba2700"
},
{
"fixed": "44e518abbb498075ae85c7d1d1a503a6bb05ea2d"
},
{
"fixed": "eb9041837123f31d5897e99bb761f46cb4ce5859"
},
{
"fixed": "66e0c4f91461d17d48071695271c824620bed4ef"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56710.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.0"
},
{
"fixed": "6.6.69"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56710.json"
}
}
],
"modified": "2026-10-28T02:30:42.910250194Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/44e518abbb498075ae85c7d1d1a503a6bb05ea2d",
"https://git.kernel.org/stable/c/66e0c4f91461d17d48071695271c824620bed4ef",
"https://git.kernel.org/stable/c/eb9041837123f31d5897e99bb761f46cb4ce5859",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56710.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-56710",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56710.json"
}
},
"related_cves": [
{
"value": "CVE-2024-56710",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 510699,
"published_at": "2024-12-29T08:48:44.411+00:00"
}