CVE-2026-52958
Received Received - Intake
Out-of-Bounds Access in Linux Kernel Ceph OSDmap Decoding

Publication date: 2026-06-24

Last updated on: 2026-06-24

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-06-24
Generated
2026-06-25
AI Q&A
2026-06-24
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
ceph libceph *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
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.

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