{"id":"CVE-2026-52958","aliases":["CVE-2026-52958"],"related":[],"kind":"vulnerability","state":"published","title":"libceph: Fix potential out-of-bounds access in osdmap_decode()","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","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).","source":"cvelist"}],"published":"2026-06-24T16:28:39.723Z","modified":"2026-10-19T20:18:51.120Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"dcbc919a5dc8c2629684a113a90c0b6fe10c3462","fixed":"36a79759a288961b1ff28a68ec2d1f56f6848098","status":"affected"},{"type":"git","introduced":"dcbc919a5dc8c2629684a113a90c0b6fe10c3462","fixed":"3f2575bb7f955d42569d96c3e04fa958a0dcf4b4","status":"affected"},{"type":"git","introduced":"dcbc919a5dc8c2629684a113a90c0b6fe10c3462","fixed":"8713bbc4b2b9ad78f803978e54b7e49dd21bd9be","status":"affected"},{"type":"git","introduced":"dcbc919a5dc8c2629684a113a90c0b6fe10c3462","fixed":"0d2dd7e6bb74fd7712aa73457a4a821906c6863a","status":"affected"},{"type":"git","introduced":"dcbc919a5dc8c2629684a113a90c0b6fe10c3462","fixed":"e7187f33c02488697ec0d01d82bf7a3f8deaba8f","status":"affected"},{"type":"git","introduced":"dcbc919a5dc8c2629684a113a90c0b6fe10c3462","fixed":"48df98d12b15360cd56af5c1f460307b340c1197","status":"affected"},{"type":"git","introduced":"dcbc919a5dc8c2629684a113a90c0b6fe10c3462","fixed":"ee933694645dac062d65fc2743f92bc06fa0db6b","status":"affected"},{"type":"git","introduced":"dcbc919a5dc8c2629684a113a90c0b6fe10c3462","fixed":"35d0ed82d03e5ee77ea4f31f20e29562a7721649","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.141","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.91","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.33","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.10","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.3","fixed":"5.10.258"},{"status":"affected","introduced":"5.11","fixed":"5.15.209"},{"status":"affected","introduced":"5.16","fixed":"6.1.175"},{"status":"affected","introduced":"6.2","fixed":"6.6.141"},{"status":"affected","introduced":"6.7","fixed":"6.12.91"},{"status":"affected","introduced":"6.13","fixed":"6.18.33"},{"status":"affected","introduced":"6.19","fixed":"7.0.10"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/36a79759a288961b1ff28a68ec2d1f56f6848098","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f2575bb7f955d42569d96c3e04fa958a0dcf4b4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8713bbc4b2b9ad78f803978e54b7e49dd21bd9be","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d2dd7e6bb74fd7712aa73457a4a821906c6863a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7187f33c02488697ec0d01d82bf7a3f8deaba8f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48df98d12b15360cd56af5c1f460307b340c1197","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee933694645dac062d65fc2743f92bc06fa0db6b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35d0ed82d03e5ee77ea4f31f20e29562a7721649","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-16T15:23:33.996Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-52958","url":"https://www.cve.org/CVERecord?id=CVE-2026-52958","licence":"CVE Terms of Use","modified":"2026-10-19T19:47:10.414Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-52958","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52958","licence":"Public domain","modified":"2026-10-19T20:18:51.120Z"}],"updatedAt":"2026-11-25T22:59:25.630Z","epss":{"score":0.00537,"percentile":0.46699,"date":"2026-12-01T12:00:22.000Z"}}