Description
In the Linux kernel, the following vulnerability has been resolved: ptp: kvm: x86: Leak clock_pair page if changing its encryption fails In a confidential guest, kvm_arch_ptp_init() shares the clock_pair page with the host using set_memory_decrypted(), and kvm_arch_ptp_exit() makes it private again with set_memory_encrypted() before freeing it. The untrusted host can make either call fail and leave the page shared. Both paths still free the page: the init error path with __free_page(), and kvm_arch_ptp_exit() after only a WARN_ON(). The page allocator can then hand a page the host can still access to an unrelated user. Leak the page in both cases instead, as was done for the same situation in commit b9fa16949d18 ("dma-direct: Leak pages on dma_set_decrypted() failure") and commit 03f5a999adba ("Drivers: hv: vmbus: Leak pages if set_memory_encrypted() fails").
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
143304277ffd538f7f022ecba9a75c75408a3d32 to < b9a2d8026946b676a37061b352f2b2493e046267affected6365ba64b4dbe8b59ddaeaa724b281f3787715d5 to < 2219a9aef37cbdf8fcb853d7d76c8749fb49658eaffected6365ba64b4dbe8b59ddaeaa724b281f3787715d5 to < 836710f7981b3c4acb137613973b57f97942962daffected6365ba64b4dbe8b59ddaeaa724b281f3787715d5 to < d6cf2ad9172ced724bfcf12ff965573f60e43ecbaffected6365ba64b4dbe8b59ddaeaa724b281f3787715d5 to < 6a01fb125ba6474cb97f14b68fe5435d3cdd08e5affected5ea817f40dbb78dc8fe0b073b2d069eb721e32aaaffected5.15.175 to < 5.15.227affected6.1.121 to < 6.2affected
Linux Linux
Default version status: affected
6.4affected0 to < 6.4unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/b9a2d8026946b676a37061b352f2b2493e046267 ↗
- https://git.kernel.org/stable/c/2219a9aef37cbdf8fcb853d7d76c8749fb49658e ↗
- https://git.kernel.org/stable/c/836710f7981b3c4acb137613973b57f97942962d ↗
- https://git.kernel.org/stable/c/d6cf2ad9172ced724bfcf12ff965573f60e43ecb ↗
- https://git.kernel.org/stable/c/6a01fb125ba6474cb97f14b68fe5435d3cdd08e5 ↗