{"id":"CVE-2026-23344","state":"PUBLISHED","title":"crypto: ccp - Fix use-after-free on error path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: ccp - Fix use-after-free on error path\n\nIn the error path of sev_tsm_init_locked(), the code dereferences 't'\nafter it has been freed with kfree(). The pr_err() statement attempts\nto access t->tio_en and t->tio_init_done after the memory has been\nreleased.\n\nMove the pr_err() call before kfree(t) to access the fields while the\nmemory is still valid.\n\nThis issue reported by Smatch static analyser","publishedAt":"2026-03-25T10:27:31.795Z","updatedAt":"2026-05-11T22:05:01.536Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4be423572da1f4c11f45168e3fafda870ddac9f8","status":"affected","lessThan":"79a26fe3175b9ed7c0c9541b197cb9786237c0f7","versionType":"git"},{"version":"4be423572da1f4c11f45168e3fafda870ddac9f8","status":"affected","lessThan":"889b0e2721e793eb46cf7d17b965aa3252af3ec8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/ccp/sev-dev-tsm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"6.19.7","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/crypto/ccp/sev-dev-tsm.c"]}],"references":["https://git.kernel.org/stable/c/79a26fe3175b9ed7c0c9541b197cb9786237c0f7","https://git.kernel.org/stable/c/889b0e2721e793eb46cf7d17b965aa3252af3ec8"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23344.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23344","state":"PUBLISHED","datePublished":"2026-03-25T10:27:31.795Z","dateUpdated":"2026-05-11T22:05:01.536Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:37:45.999Z"},"containers":{"cna":{"title":"crypto: ccp - Fix use-after-free on error path","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: ccp - Fix use-after-free on error path\n\nIn the error path of sev_tsm_init_locked(), the code dereferences 't'\nafter it has been freed with kfree(). The pr_err() statement attempts\nto access t->tio_en and t->tio_init_done after the memory has been\nreleased.\n\nMove the pr_err() call before kfree(t) to access the fields while the\nmemory is still valid.\n\nThis issue reported by Smatch static analyser"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4be423572da1f4c11f45168e3fafda870ddac9f8","status":"affected","lessThan":"79a26fe3175b9ed7c0c9541b197cb9786237c0f7","versionType":"git"},{"version":"4be423572da1f4c11f45168e3fafda870ddac9f8","status":"affected","lessThan":"889b0e2721e793eb46cf7d17b965aa3252af3ec8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/ccp/sev-dev-tsm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"6.19.7","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/crypto/ccp/sev-dev-tsm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/79a26fe3175b9ed7c0c9541b197cb9786237c0f7"},{"url":"https://git.kernel.org/stable/c/889b0e2721e793eb46cf7d17b965aa3252af3ec8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:05:01.536Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"6.19.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}