# CVE-2026-52957: libceph: Fix potential null-ptr-deref in decode\_choose\_args()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.72% (percentile 50, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2026-06-24T16:28:39.066Z
- **Modified:** 2026-10-19T20:18:50.930Z

## Who should check

- Anyone running Linux \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< d55ffad8d422b5d1cc44dad32bd3d25f4471cd9f; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 301286c0ccd37d66b0e40786fd35a4f19cdbd88a; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 7169f326a23d0f547fcd90e68b72fd387622e126; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< d7a65a34d2453f8cd3e0cc0e1319740af7e24276; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 312ec973efac0efb9b9ed64214235910e9ecbaa8; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< f2f95e6d4b97e70bb876139b0583fc8079983f85; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< a20e16ebfe2fa65348eb4b2dc7deac330ce03e9c; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 28b0a2ab8c82d0bbdeb8013029c67c978ce6e4bf
- Anyone running Linux 4.13

## Description

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

libceph: Fix potential null-ptr-deref in decode\_choose\_args()

A message of type CEPH\_MSG\_OSD\_MAP contains an OSD map that itself
contains a CRUSH map. When decoding this CRUSH map in crush\_decode(), an
array of max\_buckets 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 choose\_args that get decoded in
decode\_choose\_args(). When decoding a crush\_choose\_arg\_map, a series of
choose\_args for different buckets is decoded, with the bucket\_index
being read from the incoming message. It is only checked that the bucket
index does not exceed max\_buckets, but not that it doesn't point to an
index with a NULL bucket. If a (potentially corrupted) message contains
a crush\_choose\_arg\_map including such a bucket\_index, 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 and fixed versions

- Linux: \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< d55ffad8d422b5d1cc44dad32bd3d25f4471cd9f; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 301286c0ccd37d66b0e40786fd35a4f19cdbd88a; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 7169f326a23d0f547fcd90e68b72fd387622e126; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< d7a65a34d2453f8cd3e0cc0e1319740af7e24276; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 312ec973efac0efb9b9ed64214235910e9ecbaa8; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< f2f95e6d4b97e70bb876139b0583fc8079983f85; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< a20e16ebfe2fa65348eb4b2dc7deac330ce03e9c; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 28b0a2ab8c82d0bbdeb8013029c67c978ce6e4bf (cvelist)
- Linux: 4.13 (cvelist)

## Mitigation

- Upgrade Linux to 28b0a2ab8c82d0bbdeb8013029c67c978ce6e4bf or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-52957. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-52957.md
Affected: Linux >= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, < d55ffad8d422b5d1cc44dad32bd3d25f4471cd9f; >= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, < 301286c0ccd37d66b0e40786fd35a4f19cdbd88a; >= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, < 7169f326a23d0f547fcd90e68b72fd387622e126; >= c7ed1a4bf4b446317eefa0f…
Fixed in: Linux 301286c0ccd37d66b0e40786fd35a4f19cdbd88a, Linux 7169f326a23d0f547fcd90e68b72fd387622e126, Linux 312ec973efac0efb9b9ed64214235910e9ecbaa8, Linux 28b0a2ab8c82d0bbdeb8013029c67c978ce6e4bf

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-52957 being exploited?

There is no confirmed exploitation: CVE-2026-52957 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.72% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-52957?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-52957?

Linux \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< d55ffad8d422b5d1cc44dad32bd3d25f4471cd9f; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 301286c0ccd37d66b0e40786fd35a4f19cdbd88a; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 7169f326a23d0f547fcd90e68b72fd387622e126; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< d7a65a34d2453f8cd3e0cc0e1319740af7e24276; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 312ec973efac0efb9b9ed64214235910e9ecbaa8; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< f2f95e6d4b97e70bb876139b0583fc8079983f85; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< a20e16ebfe2fa65348eb4b2dc7deac330ce03e9c; \>= c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5, \< 28b0a2ab8c82d0bbdeb8013029c67c978ce6e4bf; Linux 4.13.

### Is there a fix for CVE-2026-52957?

Yes. Fixed in Linux 301286c0ccd37d66b0e40786fd35a4f19cdbd88a, Linux 7169f326a23d0f547fcd90e68b72fd387622e126, Linux 312ec973efac0efb9b9ed64214235910e9ecbaa8, Linux 28b0a2ab8c82d0bbdeb8013029c67c978ce6e4bf. Upgrade Linux to 28b0a2ab8c82d0bbdeb8013029c67c978ce6e4bf or later.

### How do I check if I'm affected by CVE-2026-52957?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d55ffad8d422b5d1cc44dad32bd3d25f4471cd9f>
- patch: <https://git.kernel.org/stable/c/301286c0ccd37d66b0e40786fd35a4f19cdbd88a>
- patch: <https://git.kernel.org/stable/c/7169f326a23d0f547fcd90e68b72fd387622e126>
- patch: <https://git.kernel.org/stable/c/d7a65a34d2453f8cd3e0cc0e1319740af7e24276>
- patch: <https://git.kernel.org/stable/c/312ec973efac0efb9b9ed64214235910e9ecbaa8>
- patch: <https://git.kernel.org/stable/c/f2f95e6d4b97e70bb876139b0583fc8079983f85>
- patch: <https://git.kernel.org/stable/c/a20e16ebfe2fa65348eb4b2dc7deac330ce03e9c>
- patch: <https://git.kernel.org/stable/c/28b0a2ab8c82d0bbdeb8013029c67c978ce6e4bf>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-52957>

HTML: <https://flawdb.com/CVE-2026-52957> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-52957>
