Linux
crypto: ccp - Check for page allocation failure correctly in TIO
In the Linux kernel, the following vulnerability has been resolved: crypto: ccp - Check for page allocation failure correctly in TIO Sashiko notes: > if __snp_alloc_firmware_pages() returns NULL under memory pressure, is it > safe to pass it directly to page_address()? > > On architectures without HASHED_PAGE_VIRTUAL, page_address(NULL) might > compute a deterministic but invalid, non-zero virtual address. The > subsequent if (tio_status) check would then evaluate to true, and > sev_tsm_init_locked() would dereference the invalid pointer. Indeed, page_address(NULL) will return non-NULL garbage here. Fix this by checking the page allocation itself for NULL, not the resulting virtual address.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4be423572da1f4c11f45168e3fafda870ddac9f8, < 17e1aae19a06d9f6da4b46d54fa2aeab77ec0c69
- >= 4be423572da1f4c11f45168e3fafda870ddac9f8, < a8d5370eef00eca132a292b1901c9914c817e385
Fixed in 17e1aae19a06d9f6da4b46d54fa2aeab77ec0c69, a8d5370eef00eca132a292b1901c9914c817e385
- 6.19
Fixed in 0, 7.1.5, 7.2
Mitigation
Upgrade Linux to 17e1aae19a06d9f6da4b46d54fa2aeab77ec0c69 or a8d5370eef00eca132a292b1901c9914c817e385 or later.
Upgrade Linux to 0 or 7.1.5 or 7.2 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.