# CVE-2026-80558: libceph: Avoid using invalid osd indices from primary\_temp

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **Published:** 2026-08-26T14:37:24.768Z
- **Modified:** 2026-10-16T20:18:00.187Z

## Who should check

- Anyone running Linux \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 505fc50b8ff8e687b7e3ef6866269dea27366224; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 1c705fe8e59c6b16f48964973fb23c8ec4735b73; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< dfe1877d351b99eb1b1a62a3fc2d174220e88e20; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< e2ffeec85201b2bb748e99e12539ee1b92f62796; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 6799d4a916ffcb3d450d8440f9fe0f0862f768d6; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 4f392fec075562dc93bb0c69f37423ca2af9b48f; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< e009c5f0ad634c62f5c48a41f1f3c019ecf52555; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 3660b98d1204b419f6a77e9a295f148dcf38d042
- Anyone running Linux 3.15

## Description

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

libceph: Avoid using invalid osd indices from primary\_temp

A corrupted osdmap received from a Ceph monitor or OSD may contain osd
indices in its pg\_temp, primary\_temp, pg\_upmap, and pg\_upmap\_items parts
that don't exist, i.e., that are greater than max\_osd or smaller than
CEPH\_HOMELESS\_OSD (-1). These indices are used to create the up and
acting set in ceph\_pg\_to\_up\_acting\_osds(), called from calc\_target().
While most of these osd indices are checked, the one from primary\_temp
is not. Subsequently, this may lead to calc\_target() returning this
(potentially invalid) index as target osd for a (linger) request.
Because the osd\_state, osd\_weight, and osd\_addr arrays only contain
max\_osd entries (with indices 0 to max\_osd -1), this leads to
out-of-bounds accesses when trying to read values from these arrays.

This patch fixes the issue by adding a check to get\_temp\_osds(), so that
only valid osd indices from primary\_temp are used, and it falls back to
using the primary from pg\_temp or the up set if it is invalid.

\[ idryomov: changelog \]

## Affected and fixed versions

- Linux: \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 505fc50b8ff8e687b7e3ef6866269dea27366224; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 1c705fe8e59c6b16f48964973fb23c8ec4735b73; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< dfe1877d351b99eb1b1a62a3fc2d174220e88e20; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< e2ffeec85201b2bb748e99e12539ee1b92f62796; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 6799d4a916ffcb3d450d8440f9fe0f0862f768d6; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 4f392fec075562dc93bb0c69f37423ca2af9b48f; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< e009c5f0ad634c62f5c48a41f1f3c019ecf52555; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 3660b98d1204b419f6a77e9a295f148dcf38d042 (cvelist)
- Linux: 3.15 (cvelist)

## Mitigation

- Upgrade Linux to 3660b98d1204b419f6a77e9a295f148dcf38d042 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-80558. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-80558.md
Affected: Linux >= 5e8d4d36bf23bb7baf027c479d54395840219928, < 505fc50b8ff8e687b7e3ef6866269dea27366224; >= 5e8d4d36bf23bb7baf027c479d54395840219928, < 1c705fe8e59c6b16f48964973fb23c8ec4735b73; >= 5e8d4d36bf23bb7baf027c479d54395840219928, < dfe1877d351b99eb1b1a62a3fc2d174220e88e20; >= 5e8d4d36bf23bb7baf027c4…
Fixed in: Linux 505fc50b8ff8e687b7e3ef6866269dea27366224, Linux 1c705fe8e59c6b16f48964973fb23c8ec4735b73, Linux 6799d4a916ffcb3d450d8440f9fe0f0862f768d6, Linux 4f392fec075562dc93bb0c69f37423ca2af9b48f, Linux 3660b98d1204b419f6a77e9a295f148dcf38d042

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-80558 being exploited?

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

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

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

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

Linux \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 505fc50b8ff8e687b7e3ef6866269dea27366224; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 1c705fe8e59c6b16f48964973fb23c8ec4735b73; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< dfe1877d351b99eb1b1a62a3fc2d174220e88e20; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< e2ffeec85201b2bb748e99e12539ee1b92f62796; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 6799d4a916ffcb3d450d8440f9fe0f0862f768d6; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 4f392fec075562dc93bb0c69f37423ca2af9b48f; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< e009c5f0ad634c62f5c48a41f1f3c019ecf52555; \>= 5e8d4d36bf23bb7baf027c479d54395840219928, \< 3660b98d1204b419f6a77e9a295f148dcf38d042; Linux 3.15.

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

Yes. Fixed in Linux 505fc50b8ff8e687b7e3ef6866269dea27366224, Linux 1c705fe8e59c6b16f48964973fb23c8ec4735b73, Linux 6799d4a916ffcb3d450d8440f9fe0f0862f768d6, Linux 4f392fec075562dc93bb0c69f37423ca2af9b48f, Linux 3660b98d1204b419f6a77e9a295f148dcf38d042. Upgrade Linux to 3660b98d1204b419f6a77e9a295f148dcf38d042 or later.

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

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

- other: <https://git.kernel.org/stable/c/505fc50b8ff8e687b7e3ef6866269dea27366224>
- other: <https://git.kernel.org/stable/c/1c705fe8e59c6b16f48964973fb23c8ec4735b73>
- other: <https://git.kernel.org/stable/c/dfe1877d351b99eb1b1a62a3fc2d174220e88e20>
- other: <https://git.kernel.org/stable/c/e2ffeec85201b2bb748e99e12539ee1b92f62796>
- other: <https://git.kernel.org/stable/c/6799d4a916ffcb3d450d8440f9fe0f0862f768d6>
- other: <https://git.kernel.org/stable/c/4f392fec075562dc93bb0c69f37423ca2af9b48f>
- other: <https://git.kernel.org/stable/c/e009c5f0ad634c62f5c48a41f1f3c019ecf52555>
- other: <https://git.kernel.org/stable/c/3660b98d1204b419f6a77e9a295f148dcf38d042>

## 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-80558>

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