{"id":"CVE-2026-31746","state":"PUBLISHED","title":"s390/zcrypt: Fix memory leak with CCA cards used as accelerator","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/zcrypt: Fix memory leak with CCA cards used as accelerator\n\nTests showed that there is a memory leak if CCA cards are used as\naccelerator for clear key RSA requests (ME and CRT). With the last\nrework for the memory allocation the AP messages are allocated by\nap_init_apmsg() but for some reason on two places (ME and CRT) the\nolder allocation was still in place. So the first allocation simple\nwas never freed.","publishedAt":"2026-05-01T14:14:40.196Z","updatedAt":"2026-10-21T12:39:47.494Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"919b3885c293057061af32dfeb0e20bba4f7a378","status":"affected","lessThan":"1650268579e1113b30402dbcca4dba6589a0fccf","versionType":"git"},{"version":"57db62a130ce69e6f3a870cf1119d8f860391f97","status":"affected","lessThan":"586222c37d4027dbf60a604fbe820184fee7c1c9","versionType":"git"},{"version":"57db62a130ce69e6f3a870cf1119d8f860391f97","status":"affected","lessThan":"ace37bfec3822033e59fff390f2ff99fc96ebe4f","versionType":"git"},{"version":"57db62a130ce69e6f3a870cf1119d8f860391f97","status":"affected","lessThan":"c8d46f17c2fc7d25c18e60c008928aecab26184d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/s390/crypto/zcrypt_msgtype6.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.22","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.12","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","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_msgtype6.c"]}],"references":["https://git.kernel.org/stable/c/1650268579e1113b30402dbcca4dba6589a0fccf","https://git.kernel.org/stable/c/586222c37d4027dbf60a604fbe820184fee7c1c9","https://git.kernel.org/stable/c/ace37bfec3822033e59fff390f2ff99fc96ebe4f","https://git.kernel.org/stable/c/c8d46f17c2fc7d25c18e60c008928aecab26184d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31746.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31746","state":"PUBLISHED","datePublished":"2026-05-01T14:14:40.196Z","dateUpdated":"2026-10-21T12:39:47.494Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.138Z"},"containers":{"cna":{"title":"s390/zcrypt: Fix memory leak with CCA cards used as accelerator","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/zcrypt: Fix memory leak with CCA cards used as accelerator\n\nTests showed that there is a memory leak if CCA cards are used as\naccelerator for clear key RSA requests (ME and CRT). With the last\nrework for the memory allocation the AP messages are allocated by\nap_init_apmsg() but for some reason on two places (ME and CRT) the\nolder allocation was still in place. So the first allocation simple\nwas never freed."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"919b3885c293057061af32dfeb0e20bba4f7a378","status":"affected","lessThan":"1650268579e1113b30402dbcca4dba6589a0fccf","versionType":"git"},{"version":"57db62a130ce69e6f3a870cf1119d8f860391f97","status":"affected","lessThan":"586222c37d4027dbf60a604fbe820184fee7c1c9","versionType":"git"},{"version":"57db62a130ce69e6f3a870cf1119d8f860391f97","status":"affected","lessThan":"ace37bfec3822033e59fff390f2ff99fc96ebe4f","versionType":"git"},{"version":"57db62a130ce69e6f3a870cf1119d8f860391f97","status":"affected","lessThan":"c8d46f17c2fc7d25c18e60c008928aecab26184d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/s390/crypto/zcrypt_msgtype6.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.22","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.12","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","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_msgtype6.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1650268579e1113b30402dbcca4dba6589a0fccf"},{"url":"https://git.kernel.org/stable/c/586222c37d4027dbf60a604fbe820184fee7c1c9"},{"url":"https://git.kernel.org/stable/c/ace37bfec3822033e59fff390f2ff99fc96ebe4f"},{"url":"https://git.kernel.org/stable/c/c8d46f17c2fc7d25c18e60c008928aecab26184d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-21T12:39:47.494Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.22"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.19.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}