Linux
KVM: SEV: Use READ_ONCE() when reading entries/indices from PSC buffer
In the Linux kernel, the following vulnerability has been resolved: KVM: SEV: Use READ_ONCE() when reading entries/indices from PSC buffer Use READ_ONCE() when reading entries/indices from the guest-accessible Page State Change buffer to defend against TOCTOU bugs. Don't bother with READ_ONCE()/WRITE_ONCE() for cases where KVM is writing (and not consuming the result!), as the guest isn't supposed to touch the buffer while it's being processed. I.e. using READ_ONCE() is all about protecting against misbehaving guests.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9b54e248d2644be71cb394eb85f31ad99e023a05, < bd232801ef1d1fd985d2d4ca3cd1d888303ca86f
- >= 9b54e248d2644be71cb394eb85f31ad99e023a05, < b1dfaa6f7a957726a6800135be3659fbe4bbf2a4
- >= 9b54e248d2644be71cb394eb85f31ad99e023a05, < edbbe88f83b524434974e84808d3093199d67c24
- >= 9b54e248d2644be71cb394eb85f31ad99e023a05, < c8cc238093ca6c99267032f6cfe78f59389f3157
Fixed in bd232801ef1d1fd985d2d4ca3cd1d888303ca86f, b1dfaa6f7a957726a6800135be3659fbe4bbf2a4, edbbe88f83b524434974e84808d3093199d67c24, c8cc238093ca6c99267032f6cfe78f59389f3157
- 6.11
Fixed in 0, 6.12.93, 6.18.35, 7.0.12, 7.1
Mitigation
Upgrade Linux to bd232801ef1d1fd985d2d4ca3cd1d888303ca86f or b1dfaa6f7a957726a6800135be3659fbe4bbf2a4 or edbbe88f83b524434974e84808d3093199d67c24 or c8cc238093ca6c99267032f6cfe78f59389f3157 or later.
Upgrade Linux to 0 or 6.12.93 or 6.18.35 or 7.0.12 or 7.1 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.