Descripción
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ptp: kvm: x86: Leak clock_pair page if changing its encryption fails En un invitado confidencial, kvm_arch_ptp_init() comparte la página clock_pair con el host mediante set_memory_decrypted(), y kvm_arch_ptp_exit() la vuelve a hacer privada con set_memory_encrypted() antes de liberarla. El host no confiable puede hacer que cualquiera de las dos llamadas falle y dejar la página compartida. Ambas rutas igualmente liberan la página: la ruta de error de inicialización con __free_page(), y kvm_arch_ptp_exit() después de solo un WARN_ON(). El asignador de páginas podría entonces entregar a un usuario no relacionado una página a la que el host todavía puede acceder. En su lugar, se filtra (no se libera) la página en ambos casos, tal como se hizo para la misma situación en el commit b9fa16949d18 ("dma-direct: Leak pages on dma_set_decrypted() failure") y en el commit 03f5a999adba ("Drivers: hv: vmbus: Leak pages if set_memory_encrypted() fails").
Qué hacer
Revisa si usas el producto afectado y en qué versión, y aplica la actualización o la mitigación que indique el aviso del fabricante. CISA no ha confirmado que se esté explotando; si eso cambia, esta ficha pasa a «explotada» y te avisamos en el boletín.
Versiones afectadas
- Linux Afectadas: 143304277ffd538f7f022ecba9a75c75408a3d32 y anteriores a b9a2d8026946b676a37061b352f2b2493e046267 · 6365ba64b4dbe8b59ddaeaa724b281f3787715d5 y anteriores a 2219a9aef37cbdf8fcb853d7d76c8749fb49658e · 6365ba64b4dbe8b59ddaeaa724b281f3787715d5 y anteriores a 836710f7981b3c4acb137613973b57f97942962d · 6365ba64b4dbe8b59ddaeaa724b281f3787715d5 y anteriores a d6cf2ad9172ced724bfcf12ff965573f60e43ecb · 6365ba64b4dbe8b59ddaeaa724b281f3787715d5 y anteriores a 6a01fb125ba6474cb97f14b68fe5435d3cdd08e5 · 5ea817f40dbb78dc8fe0b073b2d069eb721e32aa · 5.15.175 y anteriores a 5.15.227 · 6.1.121 y anteriores a 6.2
- Linux Afectadas: 6.4 No afectadas: 5.15.227 · 6.12.120 · 6.18.66 · 7.3.7 · 7.4-rc3
Según el registro de la vulnerabilidad en CVE.org, tal como lo publicó el fabricante. Confirma tu versión exacta en el aviso del fabricante.
Referencias
- Referencia en git.kernel.orggit.kernel.org/stable/c/b9a2d8026946b676a37061b352f2b2493e046267
- Referencia en git.kernel.orggit.kernel.org/stable/c/2219a9aef37cbdf8fcb853d7d76c8749fb49658e
- Referencia en git.kernel.orggit.kernel.org/stable/c/836710f7981b3c4acb137613973b57f97942962d
- Referencia en git.kernel.orggit.kernel.org/stable/c/d6cf2ad9172ced724bfcf12ff965573f60e43ecb
- Referencia en git.kernel.orggit.kernel.org/stable/c/6a01fb125ba6474cb97f14b68fe5435d3cdd08e5
Ver el texto original en inglés (CVE.org)
ptp: kvm: x86: Leak clock_pair page if changing its encryption fails
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").