{"id":"CVE-2026-52956","summary":"libceph: Fix potential out-of-bounds access in __ceph_x_decrypt()","details":"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-\u003emagic.\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.","modified":"2026-11-13T04:06:10.992077895Z","published":"2026-06-24T16:28:38.414Z","related":["SUSE-SU-2026:22809-1","SUSE-SU-2026:22810-1","SUSE-SU-2026:22903-1","SUSE-SU-2026:22904-1","SUSE-SU-2026:23066-1","SUSE-SU-2026:23068-1","SUSE-SU-2026:23221-1","SUSE-SU-2026:23231-1","SUSE-SU-2026:23237-1","SUSE-SU-2026:23257-1","SUSE-SU-2026:23258-1","SUSE-SU-2026:23259-1","SUSE-SU-2026:23260-1","SUSE-SU-2026:23261-1","SUSE-SU-2026:23262-1","SUSE-SU-2026:23263-1","SUSE-SU-2026:23264-1","SUSE-SU-2026:23265-1","SUSE-SU-2026:23266-1","SUSE-SU-2026:23267-1","SUSE-SU-2026:23268-1","SUSE-SU-2026:23269-1","SUSE-SU-2026:23270-1","SUSE-SU-2026:23271-1","SUSE-SU-2026:23272-1","SUSE-SU-2026:23279-1","SUSE-SU-2026:23280-1","SUSE-SU-2026:23281-1","SUSE-SU-2026:23282-1","SUSE-SU-2026:23283-1","SUSE-SU-2026:23284-1","SUSE-SU-2026:23285-1","SUSE-SU-2026:23286-1","SUSE-SU-2026:23287-1","SUSE-SU-2026:23288-1","SUSE-SU-2026:23290-1","SUSE-SU-2026:23291-1","SUSE-SU-2026:23292-1","SUSE-SU-2026:23293-1","SUSE-SU-2026:23295-1","SUSE-SU-2026:23296-1","SUSE-SU-2026:23328-1","SUSE-SU-2026:23329-1","SUSE-SU-2026:23330-1","SUSE-SU-2026:23331-1","SUSE-SU-2026:23332-1","SUSE-SU-2026:23333-1","SUSE-SU-2026:23334-1","SUSE-SU-2026:23335-1","SUSE-SU-2026:23336-1","SUSE-SU-2026:23337-1","SUSE-SU-2026:23338-1","SUSE-SU-2026:23339-1","SUSE-SU-2026:23340-1","SUSE-SU-2026:23341-1","SUSE-SU-2026:23342-1","SUSE-SU-2026:23343-1","SUSE-SU-2026:23366-1","SUSE-SU-2026:23367-1","SUSE-SU-2026:23368-1","SUSE-SU-2026:23369-1","SUSE-SU-2026:23370-1","SUSE-SU-2026:23371-1","SUSE-SU-2026:23372-1","SUSE-SU-2026:23373-1","SUSE-SU-2026:23374-1","SUSE-SU-2026:23375-1","SUSE-SU-2026:23376-1","SUSE-SU-2026:23377-1","SUSE-SU-2026:23378-1","SUSE-SU-2026:23379-1","SUSE-SU-2026:23380-1","SUSE-SU-2026:23381-1","SUSE-SU-2026:23383-1","SUSE-SU-2026:23384-1","SUSE-SU-2026:23385-1","SUSE-SU-2026:23386-1","SUSE-SU-2026:23387-1","SUSE-SU-2026:23388-1","SUSE-SU-2026:23389-1","SUSE-SU-2026:23390-1","SUSE-SU-2026:23416-1","SUSE-SU-2026:23417-1","SUSE-SU-2026:23418-1","SUSE-SU-2026:23419-1","SUSE-SU-2026:23420-1","SUSE-SU-2026:23421-1","SUSE-SU-2026:23422-1","SUSE-SU-2026:23423-1","SUSE-SU-2026:23424-1","SUSE-SU-2026:23425-1","SUSE-SU-2026:23426-1","SUSE-SU-2026:23427-1","SUSE-SU-2026:23428-1","SUSE-SU-2026:23429-1","SUSE-SU-2026:23430-1","SUSE-SU-2026:23431-1","SUSE-SU-2026:23432-1","SUSE-SU-2026:23433-1","SUSE-SU-2026:23434-1","SUSE-SU-2026:23435-1","SUSE-SU-2026:23436-1","SUSE-SU-2026:23437-1","SUSE-SU-2026:23438-1","SUSE-SU-2026:23439-1","SUSE-SU-2026:23482-1","SUSE-SU-2026:23483-1","SUSE-SU-2026:23484-1","SUSE-SU-2026:23485-1","SUSE-SU-2026:23486-1","SUSE-SU-2026:23487-1","SUSE-SU-2026:23488-1","SUSE-SU-2026:23531-1","SUSE-SU-2026:23532-1","SUSE-SU-2026:23533-1","SUSE-SU-2026:23534-1","SUSE-SU-2026:23535-1","SUSE-SU-2026:23536-1","SUSE-SU-2026:23541-1","SUSE-SU-2026:3130-1","SUSE-SU-2026:3156-1","SUSE-SU-2026:3166-1","SUSE-SU-2026:3593-1","SUSE-SU-2026:3594-1","SUSE-SU-2026:3595-1","SUSE-SU-2026:3616-1","SUSE-SU-2026:3617-1","SUSE-SU-2026:3689-1","SUSE-SU-2026:3694-1","SUSE-SU-2026:3696-1","SUSE-SU-2026:3697-1","SUSE-SU-2026:3698-1","SUSE-SU-2026:3699-1","SUSE-SU-2026:3700-1","SUSE-SU-2026:3701-1","SUSE-SU-2026:3702-1","SUSE-SU-2026:3703-1","SUSE-SU-2026:3704-1","SUSE-SU-2026:3706-1","SUSE-SU-2026:3707-1","SUSE-SU-2026:3708-1","SUSE-SU-2026:3709-1","SUSE-SU-2026:3710-1","SUSE-SU-2026:3715-1","SUSE-SU-2026:3717-1","SUSE-SU-2026:3719-1","SUSE-SU-2026:3721-1","SUSE-SU-2026:3722-1","SUSE-SU-2026:3723-1","SUSE-SU-2026:3724-1","SUSE-SU-2026:3726-1","SUSE-SU-2026:3728-1","SUSE-SU-2026:3729-1","SUSE-SU-2026:3734-1","SUSE-SU-2026:3739-1","SUSE-SU-2026:3740-1","SUSE-SU-2026:3743-1","SUSE-SU-2026:3744-1","SUSE-SU-2026:3746-1","SUSE-SU-2026:3747-1","SUSE-SU-2026:3748-1","SUSE-SU-2026:3749-1","SUSE-SU-2026:3750-1","SUSE-SU-2026:3754-1","SUSE-SU-2026:3756-1","SUSE-SU-2026:3757-1","SUSE-SU-2026:3759-1","SUSE-SU-2026:3760-1","SUSE-SU-2026:3761-1","SUSE-SU-2026:3766-1","SUSE-SU-2026:3768-1","SUSE-SU-2026:3770-1","SUSE-SU-2026:3771-1","SUSE-SU-2026:3774-1","SUSE-SU-2026:3775-1","SUSE-SU-2026:3776-1","SUSE-SU-2026:3777-1","SUSE-SU-2026:3778-1","SUSE-SU-2026:3779-1","SUSE-SU-2026:3780-1","SUSE-SU-2026:3781-1","SUSE-SU-2026:3807-1","SUSE-SU-2026:3808-1","SUSE-SU-2026:3820-1","SUSE-SU-2026:3826-1","SUSE-SU-2026:3829-1","openSUSE-SU-2026:21555-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52956.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/5df268406ef38d0f92547959296577c7077dacdc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/759053333a40c6997c2917dcd6160bfe40d2b42e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/821365487aa58d06bda65c676ba215d506ba9768"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c417b7d2d1c7fdc25af24490201320e36a3cc21d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c7e9b53aebe401970f1b5f5a01b4e021b18e8bb2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ebc7eddf6225b87e3aae720875f9dd40cb6b1cef"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52956.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52956"},{"type":"PACKAGE","url":"https://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":"e15fd0a11db00fc7f470a9fc804657ec3f6d04a5"},{"fixed":"c417b7d2d1c7fdc25af24490201320e36a3cc21d"},{"fixed":"759053333a40c6997c2917dcd6160bfe40d2b42e"},{"fixed":"ebc7eddf6225b87e3aae720875f9dd40cb6b1cef"},{"fixed":"5df268406ef38d0f92547959296577c7077dacdc"},{"fixed":"c7e9b53aebe401970f1b5f5a01b4e021b18e8bb2"},{"fixed":"821365487aa58d06bda65c676ba215d506ba9768"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2982b9c92a66604ffb9fb2db54cf735133d1ef56"}]}],"versions":["v4.9.337","v4.9.336","v4.9.335","v4.9.334","v4.9.333","v4.9.332","v4.9.331","v4.9.330","v4.9.329","v4.9.328","v4.9.327","v4.9.326","v4.9.325","v4.9.324","v4.9.323","v4.9.322","v4.9.321","v4.9.320","v4.9.319","v4.9.318","v4.9.317","v4.9.316","v4.9.315","v4.9.314","v4.9.313","v4.9.312","v4.9.311","v4.9.310","v4.9.309","v4.9.308","v4.9.307","v4.9.306","v4.9.305","v4.9.304","v4.9.303","v4.9.302","v4.9.301","v4.9.300","v4.9.299","v4.9.298","v4.9.297","v4.9.296","v4.9.295","v4.9.294","v4.9.293","v4.9.292","v4.9.291","v4.9.290","v4.9.289","v4.9.288","v4.9.287","v4.9.286","v4.9.285","v4.9.284","v4.9.283","v4.9.282","v4.9.281","v4.9.280","v4.9.279","v4.9.278","v4.9.277","v4.9.276","v4.9.275","v4.9.274","v4.9.273","v4.9.272","v4.9.271","v4.9.270","v4.9.269","v4.9.268","v4.9.267","v4.9.266","v4.9.265","v4.9.264","v4.9.263","v4.9.262","v4.9.261","v4.9.260","v4.9.259","v4.9.258","v4.9.257","v4.9.256","v4.9.255","v4.9.254","v4.9.253","v4.9.252","v4.9.251","v4.9.250","v4.9.249","v4.9.248","v4.9.247","v4.9.246","v4.9.245","v4.9.244","v4.9.243","v4.9.242","v4.9.241","v4.9.240","v4.9.239","v4.9.238","v4.9.237","v4.9.236","v4.9.235","v4.9.234","v4.9.233","v4.9.232","v4.9.231","v4.9.230","v4.9.229","v4.9.228","v4.9.227","v4.9.226","v4.9.225","v4.9.224","v4.9.223","v4.9.222","v4.9.221","v4.9.220","v4.9.219","v4.9.218","v4.9.217","v4.9.216","v4.9.215","v4.9.214","v4.9.213","v4.9.212","v4.9.211","v4.9.210","v4.9.209","v4.9.208","v4.9.207","v4.9.206","v4.9.205","v4.9.204","v4.9.203","v4.9.202","v4.9.201","v4.9.200","v4.9.199","v4.9.198","v4.9.197","v4.9.196","v4.9.195","v4.9.194","v4.9.193","v4.9.192","v4.9.191","v4.9.190","v4.9.189","v4.9.188","v4.9.187","v4.9.186","v4.9.185","v4.9.184","v4.9.183","v4.9.182","v4.9.181","v4.9.180","v4.9.179","v4.9.178","v4.9.177","v4.9.176","v4.9.175","v4.9.174","v4.9.173","v4.9.172","v4.9.171","v4.9.170","v4.9.169","v4.9.168","v4.9.167","v4.9.166","v4.9.165","v4.9.164","v4.9.163","v4.9.162","v4.9.161","v4.9.160","v4.9.159","v4.9.158","v4.9.157","v4.9.156","v4.9.155","v4.9.154","v4.9.153","v4.9.152","v4.9.151","v4.9.150","v4.9.149","v4.9.148","v4.9.147","v4.9.146","v4.9.145","v4.9.144","v4.9.143","v4.9.142","v4.9.141","v4.9.140","v4.9.139","v4.9.138","v4.9.137","v4.9.136","v4.9.135","v4.9.134","v4.9.133","v4.9.132","v4.9.131","v4.9.130","v4.9.129","v4.9.128","v4.9.127","v4.9.126","v4.9.125","v4.9.124","v4.9.123","v4.9.122","v4.9.121","v4.9.120","v4.9.119","v4.9.118","v4.9.117","v4.9.116","v4.9.115","v4.9.114","v4.9.113","v4.9.112","v4.9.111","v4.9.110","v4.9.109","v4.9.108","v4.9.107","v4.9.106","v4.9.105","v4.9.104","v4.9.103","v4.9.102","v4.9.101","v4.9.100","v4.9.99","v4.9.98","v4.9.97","v4.9.96","v4.9.95","v4.9.94","v4.9.93","v4.9.92","v4.9.91","v4.9.90","v4.9.89","v4.9.88","v4.9.87","v4.9.86","v4.9.85","v4.9.84","v4.9.83","v4.9.82","v4.9.81","v4.9.80","v4.9.79","v4.9.78","v4.9.77","v4.9.76","v4.9.75","v4.9.74","v4.9.73","v4.9.72","v4.9.71","v4.9.70","v4.9.69","v4.9.68","v4.9.67","v4.9.66","v4.9.65","v4.9.64","v4.9.63","v4.9.62","v4.9.61","v4.9.60","v4.9.59","v4.9.58","v4.9.57","v4.9.56","v4.9.55","v4.9.54","v4.9.53","v4.9.52","v4.9.51","v4.9.50","v4.9.49","v4.9.48","v4.9.47","v4.9.46","v4.9.45","v4.9.44","v4.9.43","v4.9.42","v4.9.41","v4.9.40","v4.9.39","v4.9.38","v4.9.37","v4.9.36","v4.9.35","v4.9.34","v4.9.33","v4.9.32","v4.9.31","v4.9.30","v4.9.29","v4.9.28","v4.9.27","v4.9.26","v4.9.25","v4.9.24","v4.9.23","v4.9.22","v4.9.21","v4.9.20","v4.9.19","v4.9.18","v4.9.17","v4.9.16","v4.9.15","v4.9.14","v4.9.13","v4.9.12","v4.9.11","v4.9.10","v4.9.9","v4.9.8","v4.9.7","v4.9.6"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-52956.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.9.6"},{"fixed":"4.10"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"6.1.191"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.114"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.57"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-52956.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}