9.1
CRITICAL CVSS 3.1
CVE-2026-52958
libceph: Fix potential out-of-bounds access in osdmap_decode()
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).

INFO

Published Date :

June 24, 2026, 5:17 p.m.

Last Modified :

July 14, 2026, 4:39 p.m.

Remotely Exploit :

Yes !

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-52958 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Address out-of-bounds memory access by correcting size calculations during OSD map decoding.
  • Update the Linux kernel to include the fix.
  • Verify correct decoding of OSD map data.
  • Ensure input messages are validated properly.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-52958 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-52958 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-52958 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-52958 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jul. 14, 2026

    Action Type Old Value New Value
    Added CWE CWE-125
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.141 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.91 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.33 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.10 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.175 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.209 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.3 up to (excluding) 5.10.258
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/0d2dd7e6bb74fd7712aa73457a4a821906c6863a Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/35d0ed82d03e5ee77ea4f31f20e29562a7721649 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/36a79759a288961b1ff28a68ec2d1f56f6848098 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/3f2575bb7f955d42569d96c3e04fa958a0dcf4b4 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/48df98d12b15360cd56af5c1f460307b340c1197 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/8713bbc4b2b9ad78f803978e54b7e49dd21bd9be Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/e7187f33c02488697ec0d01d82bf7a3f8deaba8f Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/ee933694645dac062d65fc2743f92bc06fa0db6b Types: Patch
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 28, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 24, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'dcbc919a5dc8c2629684a113a90c0b6fe10c3462', 'lessThan': '36a79759a288961b1ff28a68ec2d1f56f6848098', 'versionType': 'git'}, {'status': 'affected', 'version': 'dcbc919a5dc8c2629684a113a90c0b6fe10c3462', 'lessThan': '3f2575bb7f955d42569d96c3e04fa958a0dcf4b4', 'versionType': 'git'}, {'status': 'affected', 'version': 'dcbc919a5dc8c2629684a113a90c0b6fe10c3462', 'lessThan': '8713bbc4b2b9ad78f803978e54b7e49dd21bd9be', 'versionType': 'git'}, {'status': 'affected', 'version': 'dcbc919a5dc8c2629684a113a90c0b6fe10c3462', 'lessThan': '0d2dd7e6bb74fd7712aa73457a4a821906c6863a', 'versionType': 'git'}, {'status': 'affected', 'version': 'dcbc919a5dc8c2629684a113a90c0b6fe10c3462', 'lessThan': 'e7187f33c02488697ec0d01d82bf7a3f8deaba8f', 'versionType': 'git'}, {'status': 'affected', 'version': 'dcbc919a5dc8c2629684a113a90c0b6fe10c3462', 'lessThan': '48df98d12b15360cd56af5c1f460307b340c1197', 'versionType': 'git'}, {'status': 'affected', 'version': 'dcbc919a5dc8c2629684a113a90c0b6fe10c3462', 'lessThan': 'ee933694645dac062d65fc2743f92bc06fa0db6b', 'versionType': 'git'}, {'status': 'affected', 'version': 'dcbc919a5dc8c2629684a113a90c0b6fe10c3462', 'lessThan': '35d0ed82d03e5ee77ea4f31f20e29562a7721649', 'versionType': 'git'}], 'programFiles': ['net/ceph/osdmap.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.3'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.3', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.258', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.209', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.141', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.91', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.33', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.10', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/ceph/osdmap.c'], 'defaultStatus': 'affected'}]
    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).
    Added Reference https://git.kernel.org/stable/c/0d2dd7e6bb74fd7712aa73457a4a821906c6863a
    Added Reference https://git.kernel.org/stable/c/35d0ed82d03e5ee77ea4f31f20e29562a7721649
    Added Reference https://git.kernel.org/stable/c/36a79759a288961b1ff28a68ec2d1f56f6848098
    Added Reference https://git.kernel.org/stable/c/3f2575bb7f955d42569d96c3e04fa958a0dcf4b4
    Added Reference https://git.kernel.org/stable/c/48df98d12b15360cd56af5c1f460307b340c1197
    Added Reference https://git.kernel.org/stable/c/8713bbc4b2b9ad78f803978e54b7e49dd21bd9be
    Added Reference https://git.kernel.org/stable/c/e7187f33c02488697ec0d01d82bf7a3f8deaba8f
    Added Reference https://git.kernel.org/stable/c/ee933694645dac062d65fc2743f92bc06fa0db6b
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.