Skip to content
Heist/ feed
High

libceph: Fix potential out-of-bounds access in __ceph_x_decrypt()

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: libceph: Fix potential out-of-bounds access in __ceph_x_decrypt() In __ceph_x_decrypt(), a part of the buffer p is interpreted as a ceph_x_encrypt_header, and the magic field of this struct is accessed. This happens without any guarantee that the buffer is large enough to hold this struct. The function parameter ciphertext_len represents the length of the ciphertext to decrypt and is guaranteed to be at most the remaining size of the allocated buffer p. However, this value is not necessarily greater than sizeof(ceph_x_encrypt_header). E.g., a message frame of type FRAME_TAG_AUTH_REPLY_MORE, that is just as long to hold the ciphertext at its end with a ciphertext_len of 8 or less, can trigger an out-of-bounds memory access when accessing hdr->magic. This patch fixes the issue by adding a check to ensure that the decrypted plaintext in the buffer is large enough to represent at least the ceph_x_encrypt_header.

Announced Source revision 1
Original source ↗

CVE-2026-52956

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-52956

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": "e15fd0a11db00fc7f470a9fc804657ec3f6d04a5",
        "lessThan": "759053333a40c6997c2917dcd6160bfe40d2b42e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e15fd0a11db00fc7f470a9fc804657ec3f6d04a5",
        "lessThan": "ebc7eddf6225b87e3aae720875f9dd40cb6b1cef",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e15fd0a11db00fc7f470a9fc804657ec3f6d04a5",
        "lessThan": "5df268406ef38d0f92547959296577c7077dacdc",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e15fd0a11db00fc7f470a9fc804657ec3f6d04a5",
        "lessThan": "c7e9b53aebe401970f1b5f5a01b4e021b18e8bb2",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e15fd0a11db00fc7f470a9fc804657ec3f6d04a5",
        "lessThan": "821365487aa58d06bda65c676ba215d506ba9768",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2982b9c92a66604ffb9fb2db54cf735133d1ef56",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4.9.6",
        "lessThan": "4.10",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "net/ceph/auth_x.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.10"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.10",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.114",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.57",
        "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/auth_x.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-52956

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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