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).
Published: 2026-06-24
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A boundary check bug in the Linux kernel’s libceph osdmap_decode function can allow an attacker to read past the allocated buffer when decoding osd_state and osd_weight. The flaw arises because the ceph_decode_need() check only verifies the first element of the osd_weight array instead of accounting for the total number of OSD entries. If the incoming ceph message reports a max_osd value larger than the actual data, the code may read or write outside the bounds defined for osd_weight, corrupting kernel memory or leaking information. This could be leveraged to gain unprivileged kernel code execution or cause a system crash, depending on the attacker’s capability to craft messages and the kernel’s memory layout.

Affected Systems

All Linux kernel installations that include the libceph module are potentially vulnerable until a patch that corrects the ceph_decode_need() check is applied. No specific version range is listed, so any older kernel that has not yet integrated the fix should be considered at risk.

Risk and Exploitability

The vulnerability is a classic out‑of‑bounds memory access, a serious kernel flaw that could be exploited by a remote or local attacker capable of sending malformed OSD maps to the kernel. No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog. Because the flaw allows overwrite or leakage of kernel data, it is likely that exploitation would require additional privilege or network access to Ceph messaging. Given its nature, the risk to systems that receive Ceph traffic is significant.

Generated by OpenCVE AI on June 24, 2026 at 18:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that contains the OSD map bounds check fix
  • Restrict Ceph network traffic to trusted, authenticated sources to reduce exposure to malformed messages
  • Enable kernel memory protection features (e.g., CONFIG_SAFE_KERNEL or SMAP) to limit the impact of any remaining memory errors

Generated by OpenCVE AI on June 24, 2026 at 18:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-125

Wed, 24 Jun 2026 17:15:00 +0000

Type Values Removed Values Added
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).
Title libceph: Fix potential out-of-bounds access in osdmap_decode()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-24T16:28:39.723Z

Reserved: 2026-06-09T07:44:35.373Z

Link: CVE-2026-52958

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T18:30:06Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-125

    Out-of-bounds Read