CVE-2026-98871: crypto: ccp - Fix possible deadlock in SEV init failure path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98871 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.9 with commit 7364a6fbca45f826952ea932699fb2171d06ee73 and fixed in 6.12.111 with commit 8e7e06ee7c2938ee3fa31a61cc5289a45c8c13f1 Issue introduced in 6.9 with commit 7364a6fbca45f826952ea932699fb2171d06ee73 and fixed in 6.18.53 with commit ffd3a3df92be697eb78118a146c6a5d5e6c1f724 Issue introduced in 6.9 with commit 7364a6fbca45f826952ea932699fb2171d06ee73 and fixed in 7.2.6 with commit 364f3841bc22c72b6e2cb72a1e3c91c9c8fc1ef4 Issue introduced in 6.9 with commit 7364a6fbca45f826952ea932699fb2171d06ee73 and fixed in 7.3 with commit b0e7ec0dab242c5e480121ba12400d0513e37ca2
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98871
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/crypto/ccp/sev-dev.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/8e7e06ee7c2938ee3fa31a61cc5289a45c8c13f1 https://git.kernel.org/stable/c/ffd3a3df92be697eb78118a146c6a5d5e6c1f724 https://git.kernel.org/stable/c/364f3841bc22c72b6e2cb72a1e3c91c9c8fc1ef4 https://git.kernel.org/stable/c/b0e7ec0dab242c5e480121ba12400d0513e37ca2