Linux
crypto: ccp - Fix use-after-free on error path
In the Linux kernel, the following vulnerability has been resolved: crypto: ccp - Fix use-after-free on error path In the error path of sev_tsm_init_locked(), the code dereferences 't' after it has been freed with kfree(). The pr_err() statement attempts to access t->tio_en and t->tio_init_done after the memory has been released. Move the pr_err() call before kfree(t) to access the fields while the memory is still valid. This issue reported by Smatch static analyser
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4be423572da1f4c11f45168e3fafda870ddac9f8, < 79a26fe3175b9ed7c0c9541b197cb9786237c0f7
- >= 4be423572da1f4c11f45168e3fafda870ddac9f8, < 889b0e2721e793eb46cf7d17b965aa3252af3ec8
Fixed in 79a26fe3175b9ed7c0c9541b197cb9786237c0f7, 889b0e2721e793eb46cf7d17b965aa3252af3ec8
- 6.19
Fixed in 0, 6.19.7, 7.0
Mitigation
Upgrade Linux to 79a26fe3175b9ed7c0c9541b197cb9786237c0f7 or 889b0e2721e793eb46cf7d17b965aa3252af3ec8 or later.
Upgrade Linux to 0 or 6.19.7 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.