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-80561

libceph: fix multiple unsafe decodes in decode_locker()
Back to all
CVE

CVE-2026-80561

libceph: fix multiple unsafe decodes in decode_locker()

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

libceph: fix multiple unsafe decodes in decode_locker()

decodelocker() in clslock_client.c contains three unsafe decode

operations that allow a malicious or compromised OSD to trigger

slab-out-of-bounds reads:

  1. cephdecodecopy() at the lockeridt name field has no preceding

   bounds check. With p == end after cephstartdecoding() accepts

   structlen=0, this reads sizeof(cephentity_name) = 9 bytes past

   the validated buffer boundary.

  1. *p += sizeof(struct cephtimespec) after the lockerinfo_t header

   is an unchecked pointer advance. A malicious OSD can position p

   past end, causing all subsequent _safe checks to pass against a

   bogus boundary.

  1. len = cephdecode32(p) has no preceding bounds check, and the

   immediately following *p += len is uncapped. A malicious OSD can

   send len=0xffffffff, advancing p gigabytes past end and escaping

   the decode window entirely.

Fix all three by replacing bare operations with their safe variants:

  cephdecodecopy   -> cephdecodecopy_safe

  *p += sizeof(...)  -> cephdecodeskip_n

  cephdecode32(p)  -> cephdecode32_safe

  *p += len          -> cephdecodeskip_n

A new label is added to return -EINVAL on any bounds violation.

-EINVAL is appropriate here: the data received from the OSD

is structurally malformed, which is an invalid argument to the decode

contract regardless of whether the caller or the wire is at fault.

Attacker model: a malicious or compromised OSD in a multi-tenant Ceph

deployment can trigger this against any kernel client that issues the

lock.get_info class method (e.g. during RBD exclusive lock acquisition)

without any further privileges beyond OSD session establishment.

[ idryomov: use cephdecodeskip_string() to skip description, trim

  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/1ed45c8d96498725eb54f740172f9068d8673906, https://git.kernel.org/stable/c/3c3716dc06a34e4ca7f743f5fcfa07fbc5a11070, https://git.kernel.org/stable/c/437b6551cfcc235eea1d735a874f9d421f555e17, https://git.kernel.org/stable/c/51c8d238fe7236de627ab1a1433694552a904136, https://git.kernel.org/stable/c/6265103e78f0ee7e2518de9cf938b94bee9700a0, https://git.kernel.org/stable/c/d1bba38574d095f191557d397d9633f08cd966b1, https://git.kernel.org/stable/c/dbfd83f722a78446ec18a476ef7a38e52240b50a, https://git.kernel.org/stable/c/fa4aa86fff0c56799c2e3f51a88879053285f4a9, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80561.json, https://nvd.nist.gov/vuln/detail/CVE-2026-80561, 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.41948%
Introduced Version
d4ed4a530562881cc5225050e42d96034f405aae,4.9.0,5.11.0,5.16.0,6.2.0,6.7.0,6.13.0,6.19.0,0
Fix Available
437b6551cfcc235eea1d735a874f9d421f555e17,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