CVE-2023-53769: virt/coco/sev-guest: Double-buffer messages
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
virt/coco/sev-guest: Double-buffer messages
The encryption algorithms read and write directly to shared unencrypted memory, which may leak information as well as permit the host to tamper with the message integrity. Instead, copy whole messages in or out as needed before doing any computation on them.
The Linux kernel CVE team has assigned CVE-2023-53769 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit d5af44dde5461d125d1602ac913ab5c6bdf09b8b and fixed in 6.1.28 with commit 577a64725bfd77645986168e953d405067ee565b Issue introduced in 5.19 with commit d5af44dde5461d125d1602ac913ab5c6bdf09b8b and fixed in 6.2.15 with commit c27dafc4aa50a29ec927b3aa84ac7b430071f682 Issue introduced in 5.19 with commit d5af44dde5461d125d1602ac913ab5c6bdf09b8b and fixed in 6.3.2 with commit 4b69c63f716cfda38e1210e65b68f67f6cee2ddf Issue introduced in 5.19 with commit d5af44dde5461d125d1602ac913ab5c6bdf09b8b and fixed in 6.4 with commit 965006103a14703cc42043bbf9b5e0cdf7a468ad
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-2023-53769
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/virt/coco/sev-guest/sev-guest.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/577a64725bfd77645986168e953d405067ee565b https://git.kernel.org/stable/c/c27dafc4aa50a29ec927b3aa84ac7b430071f682 https://git.kernel.org/stable/c/4b69c63f716cfda38e1210e65b68f67f6cee2ddf https://git.kernel.org/stable/c/965006103a14703cc42043bbf9b5e0cdf7a468ad