# CVE-2026-52958: libceph: Fix potential out-of-bounds access in osdmap\_decode()

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-06-24 · Modified: 2026-10-19
- Aliases: UBUNTU-CVE-2026-52958, DEBIAN-CVE-2026-52958
- Record: https://cvemate.com/vulnerability/CVE-2026-52958 · JSON: https://cvemate.com/vulnerability/CVE-2026-52958/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

libceph: Fix potential out-of-bounds access in osdmap_decode()

When decoding osd_state and osd_weight from an incoming osdmap in
osdmap_decode(), both are decoded for each osd, i.e., map->max_osd
times. The ceph_decode_need() check only accounts for
sizeof(*map->osd_weight) once. This can potentially result in an
out-of-bounds memory access if the incoming message is corrupted such
that the max_osd value exceeds the actual content of the osdmap message.

This patch fixes the issue by changing the corresponding part in the
ceph_decode_need() check to account for
map->max_osd*sizeof(*map->osd_weight).
```

## Signals

- CVSS: 9.1 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.537%, percentile 46.751%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 166)

- debian linux (Debian): \< 6.1.176-1 \| \< 6.12.94-1 \| \< 7.0.10-1
- ubuntu linux (Ubuntu): \< 5.4.0-234.254 \| \< 5.15.0-186.196 \| \< 6.8.0-136.136 \| All versions (No fix recorded) \| \< 7.0.0-28.28
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1162.173 \| \< 5.15.0-1112.119 \| \< 6.8.0-1061.64 \| All versions (No fix recorded) \| \< 7.0.0-1009.9
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1112.119~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1162.173~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1061.64~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1163.174+fips1 \| All versions (No fix recorded) \| \< 5.15.0-1112.119+fips1 \| \< 6.8.0-1061.64+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1167.173 \| \< 5.15.0-1117.126 \| \< 6.8.0-1063.71 \| \< 7.0.0-1010.10
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 58)

- <https://git.kernel.org/stable/c/36a79759a288961b1ff28a68ec2d1f56f6848098>
- <https://git.kernel.org/stable/c/3f2575bb7f955d42569d96c3e04fa958a0dcf4b4>
- <https://git.kernel.org/stable/c/8713bbc4b2b9ad78f803978e54b7e49dd21bd9be>
- <https://git.kernel.org/stable/c/0d2dd7e6bb74fd7712aa73457a4a821906c6863a>
- <https://git.kernel.org/stable/c/e7187f33c02488697ec0d01d82bf7a3f8deaba8f>
- <https://git.kernel.org/stable/c/48df98d12b15360cd56af5c1f460307b340c1197>
- <https://git.kernel.org/stable/c/ee933694645dac062d65fc2743f92bc06fa0db6b>
- <https://git.kernel.org/stable/c/35d0ed82d03e5ee77ea4f31f20e29562a7721649>
- <https://ubuntu.com/security/CVE-2026-52958>
- <https://www.cve.org/CVERecord?id=CVE-2026-52958>
- <https://git.kernel.org/linus/35d0ed82d03e5ee77ea4f31f20e29562a7721649>
- <https://ubuntu.com/security/notices/USN-8566-1>
- <https://ubuntu.com/security/notices/USN-8568-1>
- <https://ubuntu.com/security/notices/USN-8569-1>
- <https://ubuntu.com/security/notices/USN-8567-1>
- <https://ubuntu.com/security/notices/USN-8574-1>
- <https://ubuntu.com/security/notices/USN-8575-1>
- <https://ubuntu.com/security/notices/USN-8576-1>
- <https://ubuntu.com/security/notices/USN-8593-1>
- <https://ubuntu.com/security/notices/USN-8574-2>

---

Data as of 2026-12-05T06:29:23.372Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
