CVE-2026-52957: libceph: Fix potential null-ptr-deref in decode_choose_args()

Published Jun 24, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

libceph: Fix potential null-ptr-deref in decodechooseargs()

A message of type CEPHMSGOSDMAP contains an OSD map that itself contains a CRUSH map. When decoding this CRUSH map in crushdecode(), an array of maxbuckets CRUSH buckets is decoded, where some indices may not refer to actual buckets and are therefore set to NULL. The received CRUSH map may optionally contain chooseargs that get decoded in decodechooseargs(). When decoding a crushchooseargmap, a series of chooseargs for different buckets is decoded, with the bucketindex being read from the incoming message. It is only checked that the bucket index does not exceed maxbuckets, but not that it doesn't point to an index with a NULL bucket. If a (potentially corrupted) message contains a crushchooseargmap including such a bucketindex, a null pointer dereference may occur in the subsequent processing when attempting to access the bucket with the given index.

This patch fixes the issue by extending the affected check. Now, it is only attempted to access the bucket if it is not NULL.

Affected Software

17 affected components
Linux Linux kernel (libceph)
Microsoft azl3 kernel 6.6.143.1-1
Linux Linux kernel>=4.13.1<5.10.258
Linux Linux kernel>=5.11<5.15.209
Linux Linux kernel>=5.16<6.1.175
Linux Linux kernel>=6.2<6.6.141
Linux Linux kernel>=6.7<6.12.91
Linux Linux kernel>=6.13<6.18.33
Linux Linux kernel>=6.19<7.0.10
Linux Linux kernel=4.13
Linux Linux kernel=4.13-rc4
Linux Linux kernel=4.13-rc5
Linux Linux kernel=4.13-rc6
Linux Linux kernel=4.13-rc7
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Apply the provided libceph patch to extend the bucket NULL check in decode_choose_args() (crush_decode()/crush_choose_arg_map decoding) so the bucket is only accessed if the decoded bucket pointer is not NULL, preventing a potential null-ptr-deref during subsequent processing.

Event History

Jun 24, 2026
CVE Published
via MITRE·04:28 PM
Data Sourced
via MITRE·04:28 PM
DescriptionSeverity
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 27, 2026
Data Sourced
via Microsoft·08:11 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-52957?

CVE-2026-52957 has a risk rating of 27, indicating a significant vulnerability in the Linux kernel's libceph.

2

How do I fix CVE-2026-52957?

To mitigate CVE-2026-52957, it is recommended to update the Linux kernel to the latest patched version that addresses this vulnerability.

3

What component of the Linux kernel is affected by CVE-2026-52957?

CVE-2026-52957 affects the libceph component of the Linux kernel.

4

What type of vulnerability is identified by CVE-2026-52957?

CVE-2026-52957 is a potential null pointer dereference vulnerability in the decode_choose_args function.

5

When was CVE-2026-52957 published?

CVE-2026-52957 was published on June 24, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203