{"id":"CVE-2026-52956","aliases":["CVE-2026-52956"],"related":[],"kind":"vulnerability","state":"published","title":"libceph: Fix potential out-of-bounds access in __ceph_x_decrypt()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: Fix potential out-of-bounds access in __ceph_x_decrypt()\n\nIn __ceph_x_decrypt(), a part of the buffer p is interpreted as a\nceph_x_encrypt_header, and the magic field of this struct is accessed.\nThis happens without any guarantee that the buffer is large enough to\nhold this struct. The function parameter ciphertext_len represents the\nlength of the ciphertext to decrypt and is guaranteed to be at most the\nremaining size of the allocated buffer p. However, this value is not\nnecessarily greater than sizeof(ceph_x_encrypt_header). E.g., a message\nframe of type FRAME_TAG_AUTH_REPLY_MORE, that is just as long to hold\nthe ciphertext at its end with a ciphertext_len of 8 or less, can\ntrigger an out-of-bounds memory access when accessing hdr->magic.\n\nThis patch fixes the issue by adding a check to ensure that the\ndecrypted plaintext in the buffer is large enough to represent at least\nthe ceph_x_encrypt_header.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: Fix potential out-of-bounds access in __ceph_x_decrypt()\n\nIn __ceph_x_decrypt(), a part of the buffer p is interpreted as a\nceph_x_encrypt_header, and the magic field of this struct is accessed.\nThis happens without any guarantee that the buffer is large enough to\nhold this struct. The function parameter ciphertext_len represents the\nlength of the ciphertext to decrypt and is guaranteed to be at most the\nremaining size of the allocated buffer p. However, this value is not\nnecessarily greater than sizeof(ceph_x_encrypt_header). E.g., a message\nframe of type FRAME_TAG_AUTH_REPLY_MORE, that is just as long to hold\nthe ciphertext at its end with a ciphertext_len of 8 or less, can\ntrigger an out-of-bounds memory access when accessing hdr->magic.\n\nThis patch fixes the issue by adding a check to ensure that the\ndecrypted plaintext in the buffer is large enough to represent at least\nthe ceph_x_encrypt_header.","source":"cvelist"}],"published":"2026-06-24T16:28:38.414Z","modified":"2026-10-30T13:19:04.767Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"e15fd0a11db00fc7f470a9fc804657ec3f6d04a5","fixed":"c417b7d2d1c7fdc25af24490201320e36a3cc21d","status":"affected"},{"type":"git","introduced":"e15fd0a11db00fc7f470a9fc804657ec3f6d04a5","fixed":"759053333a40c6997c2917dcd6160bfe40d2b42e","status":"affected"},{"type":"git","introduced":"e15fd0a11db00fc7f470a9fc804657ec3f6d04a5","fixed":"ebc7eddf6225b87e3aae720875f9dd40cb6b1cef","status":"affected"},{"type":"git","introduced":"e15fd0a11db00fc7f470a9fc804657ec3f6d04a5","fixed":"5df268406ef38d0f92547959296577c7077dacdc","status":"affected"},{"type":"git","introduced":"e15fd0a11db00fc7f470a9fc804657ec3f6d04a5","fixed":"c7e9b53aebe401970f1b5f5a01b4e021b18e8bb2","status":"affected"},{"type":"git","introduced":"e15fd0a11db00fc7f470a9fc804657ec3f6d04a5","fixed":"821365487aa58d06bda65c676ba215d506ba9768","status":"affected"},{"type":"git","version":"2982b9c92a66604ffb9fb2db54cf735133d1ef56","status":"affected"},{"type":"semver","introduced":"4.9.6","fixed":"4.10","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.10","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.10","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.9.6","fixed":"4.10"},{"status":"affected","introduced":"4.10","fixed":"7.0.10"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c417b7d2d1c7fdc25af24490201320e36a3cc21d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/759053333a40c6997c2917dcd6160bfe40d2b42e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ebc7eddf6225b87e3aae720875f9dd40cb6b1cef","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5df268406ef38d0f92547959296577c7077dacdc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7e9b53aebe401970f1b5f5a01b4e021b18e8bb2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/821365487aa58d06bda65c676ba215d506ba9768","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-16T15:23:29.086Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-52956","url":"https://www.cve.org/CVERecord?id=CVE-2026-52956","licence":"CVE Terms of Use","modified":"2026-10-30T12:26:21.612Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-52956","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52956","licence":"Public domain","modified":"2026-10-30T13:19:04.767Z"}],"updatedAt":"2026-11-25T22:59:25.629Z","epss":{"score":0.00611,"percentile":0.50596,"date":"2026-12-01T12:00:22.000Z"}}