CVE-2026-143211: 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 clockpair page if changing its encryption fails
In a confidential guest, kvmarchptpinit() shares the clockpair page with the host using setmemorydecrypted(), and kvmarchptpexit() makes it private again with setmemoryencrypted() 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 freepage(), and kvmarchptpexit() after only a WARNON(). 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 dmasetdecrypted() failure") and commit 03f5a999adba ("Drivers: hv: vmbus: Leak pages if setmemoryencrypted() fails").
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.2 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In both kvm_arch_ptp_init() and kvm_arch_ptp_exit(), leak the clock_pair page if set_memory_encrypted() fails; do not free a page that may still be shared with the host.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue applies to confidential guests using the x86 KVM PTP path. A non-confidential guest is not described as affected by this failure mode.
What must an attacker be able to do to exploit it?
The attacker is an untrusted host that can cause set_memory_decrypted() or set_memory_encrypted() to fail. If the affected page is then returned to the guest page allocator while still shared, the host may retain access to memory later assigned to an unrelated guest user.
Are systems affected during normal successful initialization and teardown?
The described exposure depends on a failure while changing the clock_pair page's encryption state. The data does not indicate that the page remains shared when both encryption-state operations succeed.
What is the remediation behavior in the resolved change?
When changing the page encryption state fails, the page is leaked rather than freed. This prevents the allocator from reusing a page that may still be accessible to the untrusted host.