{"id":"CVE-2026-99494","state":"PUBLISHED","title":"s390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility()\n\nThe FQ reply parser code blindly advanced the walk pointer by a length\nvalue read directly from the hardware reply payload without checking\nthat the advance stayed within the allocated reply buffer. A corrupt\nor malicious device response could push ptr beyond the cprbmem region,\ncausing an out-of-bounds dereference or kernel memory exposure via the\nsubsequent memcpy().\n\nFix this by tracking the remaining reply buffer space in a variable\nand validating each device-supplied length field against it before\nadvancing or dereferencing the pointer.","publishedAt":"2026-11-19T14:43:38.844Z","updatedAt":"2026-11-19T14:43:38.844Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2004b57cde6b21170d058244b53043105d89f83f","status":"affected","lessThan":"49dfd61f1c2ddfe028d4a9a603afc33b013e9ee9","versionType":"git"},{"version":"2004b57cde6b21170d058244b53043105d89f83f","status":"affected","lessThan":"bd30e2b60e811140861d53030cf9b6226b46c032","versionType":"git"},{"version":"2004b57cde6b21170d058244b53043105d89f83f","status":"affected","lessThan":"21268907891d5496e495ca17511aff11d8f99731","versionType":"git"},{"version":"2004b57cde6b21170d058244b53043105d89f83f","status":"affected","lessThan":"9fd7fca66735307fd7afa3450882a55ef80f2add","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/s390/crypto/zcrypt_ccamisc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/s390/crypto/zcrypt_ccamisc.c"]}],"references":["https://git.kernel.org/stable/c/49dfd61f1c2ddfe028d4a9a603afc33b013e9ee9","https://git.kernel.org/stable/c/bd30e2b60e811140861d53030cf9b6226b46c032","https://git.kernel.org/stable/c/21268907891d5496e495ca17511aff11d8f99731","https://git.kernel.org/stable/c/9fd7fca66735307fd7afa3450882a55ef80f2add"],"weaknesses":[],"ingestedAt":"2026-11-19T14:48:06.147Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99494.json","commit":"783f6d4140a34eaf92c5bfee971cfe497fa6394e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99494","state":"PUBLISHED","datePublished":"2026-11-19T14:43:38.844Z","dateUpdated":"2026-11-19T14:43:38.844Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.418Z"},"containers":{"cna":{"title":"s390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility()\n\nThe FQ reply parser code blindly advanced the walk pointer by a length\nvalue read directly from the hardware reply payload without checking\nthat the advance stayed within the allocated reply buffer. A corrupt\nor malicious device response could push ptr beyond the cprbmem region,\ncausing an out-of-bounds dereference or kernel memory exposure via the\nsubsequent memcpy().\n\nFix this by tracking the remaining reply buffer space in a variable\nand validating each device-supplied length field against it before\nadvancing or dereferencing the pointer."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2004b57cde6b21170d058244b53043105d89f83f","status":"affected","lessThan":"49dfd61f1c2ddfe028d4a9a603afc33b013e9ee9","versionType":"git"},{"version":"2004b57cde6b21170d058244b53043105d89f83f","status":"affected","lessThan":"bd30e2b60e811140861d53030cf9b6226b46c032","versionType":"git"},{"version":"2004b57cde6b21170d058244b53043105d89f83f","status":"affected","lessThan":"21268907891d5496e495ca17511aff11d8f99731","versionType":"git"},{"version":"2004b57cde6b21170d058244b53043105d89f83f","status":"affected","lessThan":"9fd7fca66735307fd7afa3450882a55ef80f2add","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/s390/crypto/zcrypt_ccamisc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/s390/crypto/zcrypt_ccamisc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/49dfd61f1c2ddfe028d4a9a603afc33b013e9ee9"},{"url":"https://git.kernel.org/stable/c/bd30e2b60e811140861d53030cf9b6226b46c032"},{"url":"https://git.kernel.org/stable/c/21268907891d5496e495ca17511aff11d8f99731"},{"url":"https://git.kernel.org/stable/c/9fd7fca66735307fd7afa3450882a55ef80f2add"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:43:38.844Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}