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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.73% (percentile 50, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-06-24T16:28:39.723Z
- **Modified:** 2026-10-19T20:18:51.120Z

## Who should check

- Anyone running Linux \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 36a79759a288961b1ff28a68ec2d1f56f6848098; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 3f2575bb7f955d42569d96c3e04fa958a0dcf4b4; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 8713bbc4b2b9ad78f803978e54b7e49dd21bd9be; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 0d2dd7e6bb74fd7712aa73457a4a821906c6863a; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< e7187f33c02488697ec0d01d82bf7a3f8deaba8f; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 48df98d12b15360cd56af5c1f460307b340c1197; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< ee933694645dac062d65fc2743f92bc06fa0db6b; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 35d0ed82d03e5ee77ea4f31f20e29562a7721649
- Anyone running Linux 5.3

## Description

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).

## Affected and fixed versions

- Linux: \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 36a79759a288961b1ff28a68ec2d1f56f6848098; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 3f2575bb7f955d42569d96c3e04fa958a0dcf4b4; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 8713bbc4b2b9ad78f803978e54b7e49dd21bd9be; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 0d2dd7e6bb74fd7712aa73457a4a821906c6863a; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< e7187f33c02488697ec0d01d82bf7a3f8deaba8f; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 48df98d12b15360cd56af5c1f460307b340c1197; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< ee933694645dac062d65fc2743f92bc06fa0db6b; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 35d0ed82d03e5ee77ea4f31f20e29562a7721649 (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- Upgrade Linux to 35d0ed82d03e5ee77ea4f31f20e29562a7721649 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-52958. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-52958.md
Affected: Linux >= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, < 36a79759a288961b1ff28a68ec2d1f56f6848098; >= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, < 3f2575bb7f955d42569d96c3e04fa958a0dcf4b4; >= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, < 8713bbc4b2b9ad78f803978e54b7e49dd21bd9be; >= dcbc919a5dc8c2629684a11…
Fixed in: Linux 36a79759a288961b1ff28a68ec2d1f56f6848098, Linux 3f2575bb7f955d42569d96c3e04fa958a0dcf4b4, Linux 8713bbc4b2b9ad78f803978e54b7e49dd21bd9be, Linux 0d2dd7e6bb74fd7712aa73457a4a821906c6863a, Linux 48df98d12b15360cd56af5c1f460307b340c1197, Linux 35d0ed82d03e5ee77ea4f31f20e29562a7721649

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-52958 being exploited?

There is no confirmed exploitation: CVE-2026-52958 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.73% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-52958?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-52958?

Linux \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 36a79759a288961b1ff28a68ec2d1f56f6848098; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 3f2575bb7f955d42569d96c3e04fa958a0dcf4b4; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 8713bbc4b2b9ad78f803978e54b7e49dd21bd9be; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 0d2dd7e6bb74fd7712aa73457a4a821906c6863a; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< e7187f33c02488697ec0d01d82bf7a3f8deaba8f; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 48df98d12b15360cd56af5c1f460307b340c1197; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< ee933694645dac062d65fc2743f92bc06fa0db6b; \>= dcbc919a5dc8c2629684a113a90c0b6fe10c3462, \< 35d0ed82d03e5ee77ea4f31f20e29562a7721649; Linux 5.3.

### Is there a fix for CVE-2026-52958?

Yes. Fixed in Linux 36a79759a288961b1ff28a68ec2d1f56f6848098, Linux 3f2575bb7f955d42569d96c3e04fa958a0dcf4b4, Linux 8713bbc4b2b9ad78f803978e54b7e49dd21bd9be, Linux 0d2dd7e6bb74fd7712aa73457a4a821906c6863a, Linux 48df98d12b15360cd56af5c1f460307b340c1197, Linux 35d0ed82d03e5ee77ea4f31f20e29562a7721649. Upgrade Linux to 35d0ed82d03e5ee77ea4f31f20e29562a7721649 or later.

### How do I check if I'm affected by CVE-2026-52958?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/36a79759a288961b1ff28a68ec2d1f56f6848098>
- patch: <https://git.kernel.org/stable/c/3f2575bb7f955d42569d96c3e04fa958a0dcf4b4>
- patch: <https://git.kernel.org/stable/c/8713bbc4b2b9ad78f803978e54b7e49dd21bd9be>
- patch: <https://git.kernel.org/stable/c/0d2dd7e6bb74fd7712aa73457a4a821906c6863a>
- patch: <https://git.kernel.org/stable/c/e7187f33c02488697ec0d01d82bf7a3f8deaba8f>
- patch: <https://git.kernel.org/stable/c/48df98d12b15360cd56af5c1f460307b340c1197>
- patch: <https://git.kernel.org/stable/c/ee933694645dac062d65fc2743f92bc06fa0db6b>
- patch: <https://git.kernel.org/stable/c/35d0ed82d03e5ee77ea4f31f20e29562a7721649>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-52958>

HTML: <https://flawdb.com/CVE-2026-52958> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-52958>
