Skip to content
Heist/ feed
High

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-52957

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-52957

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
        "lessThan": "d55ffad8d422b5d1cc44dad32bd3d25f4471cd9f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
        "lessThan": "301286c0ccd37d66b0e40786fd35a4f19cdbd88a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
        "lessThan": "7169f326a23d0f547fcd90e68b72fd387622e126",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
        "lessThan": "d7a65a34d2453f8cd3e0cc0e1319740af7e24276",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
        "lessThan": "312ec973efac0efb9b9ed64214235910e9ecbaa8",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
        "lessThan": "f2f95e6d4b97e70bb876139b0583fc8079983f85",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
        "lessThan": "a20e16ebfe2fa65348eb4b2dc7deac330ce03e9c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
        "lessThan": "28b0a2ab8c82d0bbdeb8013029c67c978ce6e4bf",
        "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": "4.13"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.13",
        "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"
  }
]
Related CVEs
CVE-2026-52957

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#40713 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement