CVE-2026-52958
Analyzed Analyzed - Analysis Complete

Out-of-Bounds Access in Linux Kernel Ceph OSDmap Decoding

Vulnerability report for CVE-2026-52958, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-24

Last updated on: 2026-07-14

Assigner: kernel.org

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

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-24
Last Modified
2026-07-14
Generated
2026-07-15
AI Q&A
2026-06-24
EPSS Evaluated
2026-07-13
NVD
EUVD

Affected Vendors & Products

Showing 10 associated CPEs
Vendor Product Version / Range
linux linux_kernel 7.1
linux linux_kernel 7.1
linux linux_kernel 7.1
linux linux_kernel From 6.2 (inc) to 6.6.141 (exc)
linux linux_kernel From 6.7 (inc) to 6.12.91 (exc)
linux linux_kernel From 6.13 (inc) to 6.18.33 (exc)
linux linux_kernel From 6.19 (inc) to 7.0.10 (exc)
linux linux_kernel From 5.16 (inc) to 6.1.175 (exc)
linux linux_kernel From 5.11 (inc) to 5.15.209 (exc)
linux linux_kernel From 5.3 (inc) to 5.10.258 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the Linux kernel's libceph component, specifically in the osdmap_decode() function. When decoding osd_state and osd_weight for each OSD (object storage daemon), the code incorrectly checks the size of the incoming data only once instead of accounting for the number of OSDs multiplied by the size of osd_weight. This can lead to a potential out-of-bounds memory access if the incoming osdmap message is corrupted and the max_osd value is larger than the actual data provided.

The issue is fixed by adjusting the size check to correctly multiply max_osd by the size of osd_weight, preventing the out-of-bounds access.

Impact Analysis

This vulnerability can lead to out-of-bounds memory access when processing corrupted osdmap messages. Such memory access issues can cause crashes, data corruption, or potentially allow an attacker to execute arbitrary code or cause denial of service on systems using the affected libceph component.

Mitigation Strategies

The vulnerability in the Linux kernel's libceph component related to out-of-bounds access in osdmap_decode() has been fixed by a patch that corrects the bounds checking logic.

To mitigate this vulnerability immediately, you should update your Linux kernel or Ceph library to the version that includes this fix.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-52958. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart