Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-80558

libceph: Avoid using invalid osd indices from primary_temp
Back to all
CVE

CVE-2026-80558

libceph: Avoid using invalid osd indices from primary_temp

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 pgtemp, primarytemp, pgupmap, and pgupmap_items parts

that don't exist, i.e., that are greater than max_osd or smaller than

CEPHHOMELESSOSD (-1). These indices are used to create the up and

acting set in cephpgtoupactingosds(), called from calctarget().

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 osdstate, osdweight, and osd_addr arrays only contain

maxosd entries (with indices 0 to maxosd -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 gettemposds(), 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 ]

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://git.kernel.org/stable/c/1c705fe8e59c6b16f48964973fb23c8ec4735b73, https://git.kernel.org/stable/c/3660b98d1204b419f6a77e9a295f148dcf38d042, https://git.kernel.org/stable/c/4f392fec075562dc93bb0c69f37423ca2af9b48f, https://git.kernel.org/stable/c/505fc50b8ff8e687b7e3ef6866269dea27366224, https://git.kernel.org/stable/c/6799d4a916ffcb3d450d8440f9fe0f0862f768d6, https://git.kernel.org/stable/c/dfe1877d351b99eb1b1a62a3fc2d174220e88e20, https://git.kernel.org/stable/c/e009c5f0ad634c62f5c48a41f1f3c019ecf52555, https://git.kernel.org/stable/c/e2ffeec85201b2bb748e99e12539ee1b92f62796, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80558.json, https://nvd.nist.gov/vuln/detail/CVE-2026-80558, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.00514%
EPSS Percentile
0.41944%
Introduced Version
5e8d4d36bf23bb7baf027c479d54395840219928,3.15.0,5.11.0,5.16.0,6.2.0,6.7.0,6.13.0,6.19.0,0
Fix Available
3660b98d1204b419f6a77e9a295f148dcf38d042,5.10.266,5.15.217,6.1.184,6.6.153,6.12.105,6.18.46,7.1.10,6.1.187-1,6.12.107-1~deb12u1,6.12.105-1,6.8.0-1036.39,0:6.12.0-207.111.5.1.el10uek,0:5.15.0-325.220.5.el8uek,0:5.15.0-324.217.5.2.el8uek,0:6.12.0-207.111.5.1.el9uek,0:5.15.0-325.220.5.el9uek,0:5.15.0-324.217.5.2.el9uek,1:6.1.186-228.374.amzn2023,1:1.0-0.amzn2023,1:6.18.48-107.148.amzn2023,0:5.10.268-266.1092.amzn2,0:1.0-0.amzn2,0:5.15.220-153.252.amzn2

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading