Linux kernel deadlock in SEV initialization failure handling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
crypto: ccp - Fix possible deadlock in SEV init failure path
__sev_platform_init_handle_init_ex_path() calls rmp_mark_pages_firmware() with locked=false while the parent function of init_ex_path already acquired the sev_cmd_mutex. In the case of an RMPUPDATE failure for any page after the first, the cleanup path would invoke reclaim pages which would result in a deadlock in sev_do_cmd.
Pass locked=true to honor the lock status of the parent function.
From the CVE record · Linux
The Linux kernel's crypto: ccp code can deadlock during SEV initialization cleanup if an RMPUPDATE fails for a page after the first. The input does not describe an attacker action or specify network access, authentication, or user interaction requirements.
Engineers running the Linux kernel with SEV support should check their kernel version; affected versions are not specified.