{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-52958: libceph: Fix potential out-of-bounds access in osdmap_decode()","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-52958","status":"final","version":"1","initial_release_date":"2026-06-24T16:28:39.723Z","current_release_date":"2026-06-28T06:37:19.643Z","revision_history":[{"date":"2026-06-24T16:28:39.723Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"notes":[{"category":"description","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: Fix potential out-of-bounds access in osdmap_decode()\n\nWhen decoding osd_state and osd_weight from an incoming osdmap in\nosdmap_decode(), both are decoded for each osd, i.e., map->max_osd\ntimes. The ceph_decode_need() check only accounts for\nsizeof(*map->osd_weight) once. This can potentially result in an\nout-of-bounds memory access if the incoming message is corrupted such\nthat the max_osd value exceeds the actual content of the osdmap message.\n\nThis patch fixes the issue by changing the corresponding part in the\nceph_decode_need() check to account for\nmap->max_osd*sizeof(*map->osd_weight).","title":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-52958 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-52958"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-52958"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/36a79759a288961b1ff28a68ec2d1f56f6848098"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/3f2575bb7f955d42569d96c3e04fa958a0dcf4b4"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/8713bbc4b2b9ad78f803978e54b7e49dd21bd9be"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/0d2dd7e6bb74fd7712aa73457a4a821906c6863a"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/e7187f33c02488697ec0d01d82bf7a3f8deaba8f"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/48df98d12b15360cd56af5c1f460307b340c1197"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/ee933694645dac062d65fc2743f92bc06fa0db6b"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/35d0ed82d03e5ee77ea4f31f20e29562a7721649"}]},"product_tree":{"branches":[{"category":"vendor","name":"Linux","branches":[{"category":"product_name","name":"Linux","branches":[{"category":"product_version_range","name":">=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <36a79759a288961b1ff28a68ec2d1f56f6848098","product":{"name":"Linux Linux >=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <36a79759a288961b1ff28a68ec2d1f56f6848098","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <3f2575bb7f955d42569d96c3e04fa958a0dcf4b4","product":{"name":"Linux Linux >=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <3f2575bb7f955d42569d96c3e04fa958a0dcf4b4","product_id":"CSAFPID-2","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <8713bbc4b2b9ad78f803978e54b7e49dd21bd9be","product":{"name":"Linux Linux >=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <8713bbc4b2b9ad78f803978e54b7e49dd21bd9be","product_id":"CSAFPID-3","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <0d2dd7e6bb74fd7712aa73457a4a821906c6863a","product":{"name":"Linux Linux >=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <0d2dd7e6bb74fd7712aa73457a4a821906c6863a","product_id":"CSAFPID-4","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <e7187f33c02488697ec0d01d82bf7a3f8deaba8f","product":{"name":"Linux Linux >=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <e7187f33c02488697ec0d01d82bf7a3f8deaba8f","product_id":"CSAFPID-5","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <48df98d12b15360cd56af5c1f460307b340c1197","product":{"name":"Linux Linux >=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <48df98d12b15360cd56af5c1f460307b340c1197","product_id":"CSAFPID-6","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <ee933694645dac062d65fc2743f92bc06fa0db6b","product":{"name":"Linux Linux >=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <ee933694645dac062d65fc2743f92bc06fa0db6b","product_id":"CSAFPID-7","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <35d0ed82d03e5ee77ea4f31f20e29562a7721649","product":{"name":"Linux Linux >=dcbc919a5dc8c2629684a113a90c0b6fe10c3462 <35d0ed82d03e5ee77ea4f31f20e29562a7721649","product_id":"CSAFPID-8","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}}]}]},{"category":"vendor","name":"Linux","branches":[{"category":"product_name","name":"Linux","branches":[{"category":"product_version","name":"5.3","product":{"name":"Linux Linux 5.3","product_id":"CSAFPID-9","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.3:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"0","product":{"name":"Linux Linux 0","product_id":"CSAFPID-10","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.3:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"5.10.258","product":{"name":"Linux Linux 5.10.258","product_id":"CSAFPID-11","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.3:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"5.15.209","product":{"name":"Linux Linux 5.15.209","product_id":"CSAFPID-12","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.3:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.1.175","product":{"name":"Linux Linux 6.1.175","product_id":"CSAFPID-13","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.3:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.6.141","product":{"name":"Linux Linux 6.6.141","product_id":"CSAFPID-14","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.3:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.12.91","product":{"name":"Linux Linux 6.12.91","product_id":"CSAFPID-15","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.3:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.18.33","product":{"name":"Linux Linux 6.18.33","product_id":"CSAFPID-16","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.3:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"7.0.10","product":{"name":"Linux Linux 7.0.10","product_id":"CSAFPID-17","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.3:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"7.1","product":{"name":"Linux Linux 7.1","product_id":"CSAFPID-18","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.3:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-52958","title":"libceph: Fix potential out-of-bounds access in osdmap_decode()","notes":[{"category":"description","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: Fix potential out-of-bounds access in osdmap_decode()\n\nWhen decoding osd_state and osd_weight from an incoming osdmap in\nosdmap_decode(), both are decoded for each osd, i.e., map->max_osd\ntimes. The ceph_decode_need() check only accounts for\nsizeof(*map->osd_weight) once. This can potentially result in an\nout-of-bounds memory access if the incoming message is corrupted such\nthat the max_osd value exceeds the actual content of the osdmap message.\n\nThis patch fixes the issue by changing the corresponding part in the\nceph_decode_need() check to account for\nmap->max_osd*sizeof(*map->osd_weight).","title":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5","CSAFPID-6","CSAFPID-7","CSAFPID-8","CSAFPID-9"],"fixed":["CSAFPID-10","CSAFPID-11","CSAFPID-12","CSAFPID-13","CSAFPID-14","CSAFPID-15","CSAFPID-16","CSAFPID-17","CSAFPID-18"]},"scores":[{"cvss_v3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","baseScore":9.1,"baseSeverity":"CRITICAL"},"products":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5","CSAFPID-6","CSAFPID-7","CSAFPID-8","CSAFPID-9"]}],"remediations":[{"category":"vendor_fix","details":"Update to a fixed version: 0, 0d2dd7e6bb74fd7712aa73457a4a821906c6863a, 35d0ed82d03e5ee77ea4f31f20e29562a7721649, 36a79759a288961b1ff28a68ec2d1f56f6848098, 3f2575bb7f955d42569d96c3e04fa958a0dcf4b4, 48df98d12b15360cd56af5c1f460307b340c1197, 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, 7.1, 8713bbc4b2b9ad78f803978e54b7e49dd21bd9be, e7187f33c02488697ec0d01d82bf7a3f8deaba8f, ee933694645dac062d65fc2743f92bc06fa0db6b.","product_ids":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5","CSAFPID-6","CSAFPID-7","CSAFPID-8","CSAFPID-9"]}]}]}