Backporting SEV-SNP CVE-2023-20585 to linux-stable
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | iommu/amd: Use maximum Event log buffer size when SNP is enabled on Family 0x19drivers/ drivers/ drivers/ +1 more | +67 | 0 replies | |
| 2/2 | iommu/amd: Use maximum PPR log buffer size when SNP is enabled on Family 0x19drivers/ drivers/ drivers/ +1 more | +25 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Dheeraj Kumar Srivastava |
|---|---|
| 1/2 | T-b |
| 2/2 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH linux-6.12.y v1 0/2] Backporting SEV-SNP CVE-2023-20585 to linux-stable
Two commits from Linux 7.1-rc3 fix CVE-2023-20585 which affects SEV-SNP.
"Insufficient checks of the RMP on host buffer access in IOMMU may allow an attacker with privileges and a compromised hypervisor to trigger an out of bounds condition without RMP checks, resulting in a potential loss of confidential guest integrity." [1]
These are suitable candidates for stable branches but [email protected] wasn't CC'ed at the time.
1f44aab79bac ("iommu/amd: Use maximum PPR log buffer size when SNP is enabled on Family 0x19") [v7.1-rc3~24^2~2] 58c0ac6125d8 ("iommu/amd: Use maximum Event log buffer size when SNP is enabled on Family 0x19") [v7.1-rc3~24^2~3]
The upstream commits apply cleanly to linux-7.0.y and linux-6.18.y and an AUTOSEL email[2] was sent (but not pulled so far).
[ The AI analysis in the AUTOSEL patch said that the patches didn't apply
cleanly to linux-6.18.y but that is not my experience. ]
There are conflicts applying them to linux-6.12.y due to the lack of upstream AMD IOMMU kdump buffer reuse code, introduced to v6.18 by commit f32fe7cb0198 ("iommu/amd: Add support to remap/unmap IOMMU buffers for kdump") so I have included patches here which address those.
Tested on AMD machines with Zen4 (impacted) and Zen5 (not impacted) CPUs.
[1] https://www.amd.com/en/resources/product-security/bulletin/amd-sb-3016.html
[2] https://lore.kernel.org/all/[email protected]
Vasant Hegde (2):
iommu/amd: Use maximum Event log buffer size when SNP is enabled on Family 0x19 iommu/amd: Use maximum PPR log buffer size when SNP is enabled on Family 0x19
drivers/iommu/amd/amd_iommu.h | 3 + drivers/iommu/amd/amd_iommu_types.h | 21 ++++--- drivers/iommu/amd/init.c | 90 ++++++++++++++++++++++------- drivers/iommu/amd/iommu.c | 2 +- drivers/iommu/amd/ppr.c | 10 ++-- 5 files changed, 92 insertions(+), 34 deletions(-)
Signature · 1 line
2.52.0