{"id":"CVE-2026-99495","summary":"s390/zcrypt: Fix and improve zcrypt reply message verification checks","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/zcrypt: Fix and improve zcrypt reply message verification checks\n\nAdd or improve checks related to buffer sizes and reply sizes to the\nhandling of replies from the crypto cards for CCA, EP11 (AP message\ntype 6) and ICA (AP type 50) messages. The verification code related\nto reply field length was not designed well and thus firmware\ndeficiencies could lead to unexpected behavior in the zcrypt device\ndriver. Thus improve the code to more closely inspect especially\nlength fields at message replies.\n\nAdd length validation before accessing reply message structures in\nzcrypt_msgtype6_receive(), zcrypt_msgtype6_receive_ep11(), and\nzcrypt_msgtype50_receive() to prevent out-of-bounds reads and\npotential kernel memory disclosure.\n\nAlso rework these three functions to validate reply lengths more\ncarefully before copying data back into the request buffer. Use size_t\nfor length calculations, reject inconsistent reply sizes, and add\ndefensive handling for short invalid replies. For XCRB replies,\nvalidate both reply segments and derive the effective message length\nfrom the covered range instead of trusting only the second segment.\n\nAdditionally improve some of the later invoked evaluation functions\nwhich further check the payload. Add comments about length assumptions\nand for the type50 processing rework the payload processing completely\nwith removing a misplaced BUG_ON().","modified":"2026-11-19T17:01:26.719000447Z","published":"2026-11-19T14:43:40.667Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99495.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0f0aa2b560a6eca76778083b0c6f155bb458b56f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5e9b339f323216d71f3ede8a0a427abf7859c486"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99495.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99495"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5e55a488c87aa6cc269b04bfec99e835f03b2c2d"},{"fixed":"0f0aa2b560a6eca76778083b0c6f155bb458b56f"},{"fixed":"5e9b339f323216d71f3ede8a0a427abf7859c486"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99495.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.7.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99495.json"}}],"schema_version":"1.9.2"}