CVE-2026-52957

Source
https://cve.org/CVERecord?id=CVE-2026-52957
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52957.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-52957
Downstream
Related
Published
2026-06-24T16:28:39.066Z
Modified
2026-07-12T03:55:21.940931353Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
libceph: Fix potential null-ptr-deref in decode_choose_args()
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52957.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5
Fixed
d55ffad8d422b5d1cc44dad32bd3d25f4471cd9f
Fixed
301286c0ccd37d66b0e40786fd35a4f19cdbd88a
Fixed
7169f326a23d0f547fcd90e68b72fd387622e126
Fixed
d7a65a34d2453f8cd3e0cc0e1319740af7e24276
Fixed
312ec973efac0efb9b9ed64214235910e9ecbaa8
Fixed
f2f95e6d4b97e70bb876139b0583fc8079983f85
Fixed
a20e16ebfe2fa65348eb4b2dc7deac330ce03e9c
Fixed
28b0a2ab8c82d0bbdeb8013029c67c978ce6e4bf

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52957.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.13.0
Fixed
5.10.258
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.209
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.175
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.141
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.91
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.33
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.10

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52957.json"