CVE-2026-52956 Details
Description
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.
A potential out-of-bounds access vulnerability has been identified in the Linux kernel's libceph component, specifically within the __ceph_x_decrypt() function. This issue arises because a portion of the buffer is interpreted as a ceph_x_encrypt_header, allowing access to the magic field of the struct without ensuring that the buffer is sufficiently large to accommodate it. Although the ciphertext_len parameter, which indicates the length of the ciphertext to be decrypted, is guaranteed to be no more than the remaining size of the allocated buffer, it may not exceed the size of the ceph_x_encrypt_header. For instance, a message frame of type FRAME_TAG_AUTH_REPLY_MORE, which is just long enough to hold the ciphertext with a length of 8 or less, can cause an out-of-bounds memory access when the magic field is accessed. This vulnerability has been addressed by adding a check to ensure that the decrypted plaintext is large enough to include at least the ceph_x_encrypt_header.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been patched. Instructions for downloading the updated kernel can be found on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/821365487aa58d06bda65c676ba215d506ba9768 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c7e9b53aebe401970f1b5f5a01b4e021b18e8bb2 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.9.6, < 4.10 >= 4.10, < 7.0.10 7.1 rc1 7.1 rc2 7.1 rc3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 14, 2026 | Initial Analysis | [email protected] |
| Jul 1, 2026 | CVE Modified | kernel.org |
| Jun 28, 2026 | CVE Modified | kernel.org |
| Jun 24, 2026 | New CVE Received | kernel.org |