{"id":"CVE-2024-56710","state":"PUBLISHED","title":"ceph: fix memory leak in ceph_direct_read_write()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix memory leak in ceph_direct_read_write()\n\nThe bvecs array which is allocated in iter_get_bvecs_alloc() is leaked\nand pages remain pinned if ceph_alloc_sparse_ext_map() fails.\n\nThere is no need to delay the allocation of sparse_ext map until after\nthe bvecs array is set up, so fix this by moving sparse_ext allocation\na bit earlier.  Also, make a similar adjustment in __ceph_sync_read()\nfor consistency (a leak of the same kind in __ceph_sync_read() has been\naddressed differently).","publishedAt":"2024-12-29T08:48:44.411Z","updatedAt":"2026-05-11T20:57:45.432Z","severity":{"score":3.3,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"03bc06c7b0bd8d86b9f17f459acaeb1283ba2700","status":"affected","lessThan":"44e518abbb498075ae85c7d1d1a503a6bb05ea2d","versionType":"git"},{"version":"03bc06c7b0bd8d86b9f17f459acaeb1283ba2700","status":"affected","lessThan":"eb9041837123f31d5897e99bb761f46cb4ce5859","versionType":"git"},{"version":"03bc06c7b0bd8d86b9f17f459acaeb1283ba2700","status":"affected","lessThan":"66e0c4f91461d17d48071695271c824620bed4ef","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/file.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.69","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.7","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/file.c"]}],"references":["https://git.kernel.org/stable/c/44e518abbb498075ae85c7d1d1a503a6bb05ea2d","https://git.kernel.org/stable/c/eb9041837123f31d5897e99bb761f46cb4ce5859","https://git.kernel.org/stable/c/66e0c4f91461d17d48071695271c824620bed4ef"],"weaknesses":["CWE-401"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/56xxx/CVE-2024-56710.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-56710","state":"PUBLISHED","datePublished":"2024-12-29T08:48:44.411Z","dateUpdated":"2026-05-11T20:57:45.432Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-27T15:00:39.857Z"},"containers":{"cna":{"title":"ceph: fix memory leak in ceph_direct_read_write()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix memory leak in ceph_direct_read_write()\n\nThe bvecs array which is allocated in iter_get_bvecs_alloc() is leaked\nand pages remain pinned if ceph_alloc_sparse_ext_map() fails.\n\nThere is no need to delay the allocation of sparse_ext map until after\nthe bvecs array is set up, so fix this by moving sparse_ext allocation\na bit earlier.  Also, make a similar adjustment in __ceph_sync_read()\nfor consistency (a leak of the same kind in __ceph_sync_read() has been\naddressed differently)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"03bc06c7b0bd8d86b9f17f459acaeb1283ba2700","status":"affected","lessThan":"44e518abbb498075ae85c7d1d1a503a6bb05ea2d","versionType":"git"},{"version":"03bc06c7b0bd8d86b9f17f459acaeb1283ba2700","status":"affected","lessThan":"eb9041837123f31d5897e99bb761f46cb4ce5859","versionType":"git"},{"version":"03bc06c7b0bd8d86b9f17f459acaeb1283ba2700","status":"affected","lessThan":"66e0c4f91461d17d48071695271c824620bed4ef","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/file.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.69","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.7","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/file.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/44e518abbb498075ae85c7d1d1a503a6bb05ea2d"},{"url":"https://git.kernel.org/stable/c/eb9041837123f31d5897e99bb761f46cb4ce5859"},{"url":"https://git.kernel.org/stable/c/66e0c4f91461d17d48071695271c824620bed4ef"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:57:45.432Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.69"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":3.3,"attackVector":"LOCAL","baseSeverity":"LOW","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-56710","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-04-17T20:10:33.608090Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-401","lang":"en","type":"CWE","description":"CWE-401 Missing Release of Memory after Effective Lifetime"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-17T20:15:52.556Z"}}]}}}