CVE-2026-52958
libceph: Fix potential out-of-bounds access in osdmap_decode()
Check your servers for CVE-2026-52958
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-52958 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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).
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.54%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 46.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-125 Out-of-bounds Read
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from dcbc919a5dc8c2629684a113a90c0b6fe10c3462, before 36a79759a288961b1ff28a68ec2d1f56f6848098 affected from dcbc919a5dc8c2629684a113a90c0b6fe10c3462, before 3f2575bb7f955d42569d96c3e04fa958a0dcf4b4 affected from dcbc919a5dc8c2629684a113a90c0b6fe10c3462, before 8713bbc4b2b9ad78f803978e54b7e49dd21bd9be affected from dcbc919a5dc8c2629684a113a90c0b6fe10c3462, before 0d2dd7e6bb74fd7712aa73457a4a821906c6863a affected from dcbc919a5dc8c2629684a113a90c0b6fe10c3462, before e7187f33c02488697ec0d01d82bf7a3f8deaba8f affected from dcbc919a5dc8c2629684a113a90c0b6fe10c3462, before 48df98d12b15360cd56af5c1f460307b340c1197 affected from dcbc919a5dc8c2629684a113a90c0b6fe10c3462, before ee933694645dac062d65fc2743f92bc06fa0db6b affected from dcbc919a5dc8c2629684a113a90c0b6fe10c3462, before 35d0ed82d03e5ee77ea4f31f20e29562a7721649
Other versions: unaffected
|
| Linux |
affected 5.3 unaffected before 5.3 unaffected from 5.10.258 up to and including 5.10.* unaffected from 5.15.209 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.141 up to and including 6.6.* unaffected from 6.12.91 up to and including 6.12.* unaffected from 6.18.33 up to and including 6.18.* unaffected from 7.0.10 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-52958 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-52958
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-52958
trivy image --scanners vuln IMAGE | grep CVE-2026-52958
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/36a79759a288961b1ff28a68ec2d1f56f6848098 git.kernel.org
- https://git.kernel.org/stable/c/3f2575bb7f955d42569d96c3e04fa958a0dcf4b4 git.kernel.org
- https://git.kernel.org/stable/c/8713bbc4b2b9ad78f803978e54b7e49dd21bd9be git.kernel.org
- https://git.kernel.org/stable/c/0d2dd7e6bb74fd7712aa73457a4a821906c6863a git.kernel.org
- https://git.kernel.org/stable/c/e7187f33c02488697ec0d01d82bf7a3f8deaba8f git.kernel.org
- https://git.kernel.org/stable/c/48df98d12b15360cd56af5c1f460307b340c1197 git.kernel.org
- https://git.kernel.org/stable/c/ee933694645dac062d65fc2743f92bc06fa0db6b git.kernel.org
- https://git.kernel.org/stable/c/35d0ed82d03e5ee77ea4f31f20e29562a7721649 git.kernel.org
Source: the record CVE-2026-52958 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse