{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143211","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.360Z","datePublished":"2026-12-03T09:20:32.707Z","dateUpdated":"2026-12-04T03:31:02.941Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:31:02.941Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: kvm: x86: Leak clock_pair page if changing its encryption fails\n\nIn a confidential guest, kvm_arch_ptp_init() shares the clock_pair page\nwith the host using set_memory_decrypted(), and kvm_arch_ptp_exit()\nmakes it private again with set_memory_encrypted() before freeing it.\n\nThe untrusted host can make either call fail and leave the page shared.\nBoth paths still free the page: the init error path with __free_page(),\nand kvm_arch_ptp_exit() after only a WARN_ON(). The page allocator can\nthen hand a page the host can still access to an unrelated user.\n\nLeak the page in both cases instead, as was done for the same situation\nin commit b9fa16949d18 (\"dma-direct: Leak pages on dma_set_decrypted()\nfailure\") and commit 03f5a999adba (\"Drivers: hv: vmbus: Leak pages if\nset_memory_encrypted() fails\")."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","baseScore":9.3,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:L - The attacker is the KVM host of a confidential guest. ptp_kvm_init() calls kvm_arch_ptp_init(), which shares one clock_pair page via set_memory_decrypted(); the host then forces kvm_arch_ptp_exit() because pvclock_get_pvti_cpu0_va() is NULL or KVM_HC_CLOCK_PAIRING returns -KVM_ENOSYS. No network protocol carries this fault.\nAC:L - The host sets the KVM CPUID signature but omits KVM_FEATURE_CLOCKSOURCE, so kvmclock_init() never calls pvclock_set_pvti_cpu0_va(), and then returns a failing TDVMCALL status from tdx_map_gpa() so tdx_enc_status_change_prepare() makes set_memory_encrypted() fail while clock_pair is still shared. Both steps are host-controlled and repeatable.\nPR:N - ptp_kvm_init() is a device_initcall with no credential or capability check (CONFIG_PTP_1588_CLOCK_KVM defaults to y). The host is outside the guest and needs no account inside it; it only answers CPUID, the KVM hypercall, and MapGPA.\nUI:N - With the driver built in, ptp_kvm_init() runs at boot and takes the kvm_arch_ptp_exit() error path solely because of host CPUID and MapGPA results. No guest user has to load a module, mount media, or open a file.\nS:C - Pre-fix kvm_arch_ptp_exit() free_page()s the clock_pair page after set_memory_encrypted() fails, returning a still-shared page to the buddy allocator and exposing later memory of every other guest authority across the TDX/SEV hardware boundary, as with an IOMMU bypass.\nC:H - tdx_enc_status_change_prepare() fails before __change_page_attr_set_clr(), so the direct map stays decrypted. The buddy allocator then places arbitrary later objects (slab, page cache, keys) on that page, which the host reads in plaintext.\nI:H - The recycled clock_pair page remains host-writable, so the host can modify whatever live kernel object the allocator puts there, including credentials or structures that hold function pointers.\nA:H - A private PTE for that still-shared PFN hits the TDX case in tdx_early_init() where a private mapping of a shared page shuts the guest down, and a host write into the recycled kernel object can oops the guest."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_kvm_x86.c"],"versions":[{"version":"143304277ffd538f7f022ecba9a75c75408a3d32","lessThan":"b9a2d8026946b676a37061b352f2b2493e046267","status":"affected","versionType":"git"},{"version":"6365ba64b4dbe8b59ddaeaa724b281f3787715d5","lessThan":"2219a9aef37cbdf8fcb853d7d76c8749fb49658e","status":"affected","versionType":"git"},{"version":"6365ba64b4dbe8b59ddaeaa724b281f3787715d5","lessThan":"836710f7981b3c4acb137613973b57f97942962d","status":"affected","versionType":"git"},{"version":"6365ba64b4dbe8b59ddaeaa724b281f3787715d5","lessThan":"d6cf2ad9172ced724bfcf12ff965573f60e43ecb","status":"affected","versionType":"git"},{"version":"6365ba64b4dbe8b59ddaeaa724b281f3787715d5","lessThan":"6a01fb125ba6474cb97f14b68fe5435d3cdd08e5","status":"affected","versionType":"git"},{"version":"5ea817f40dbb78dc8fe0b073b2d069eb721e32aa","status":"affected","versionType":"git"},{"version":"5.15.175","lessThan":"5.15.227","status":"affected","versionType":"semver"},{"version":"6.1.121","lessThan":"6.2","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_kvm_x86.c"],"versions":[{"version":"6.4","status":"affected"},{"version":"0","lessThan":"6.4","status":"unaffected","versionType":"semver"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.175","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.121"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/b9a2d8026946b676a37061b352f2b2493e046267"},{"url":"https://git.kernel.org/stable/c/2219a9aef37cbdf8fcb853d7d76c8749fb49658e"},{"url":"https://git.kernel.org/stable/c/836710f7981b3c4acb137613973b57f97942962d"},{"url":"https://git.kernel.org/stable/c/d6cf2ad9172ced724bfcf12ff965573f60e43ecb"},{"url":"https://git.kernel.org/stable/c/6a01fb125ba6474cb97f14b68fe5435d3cdd08e5"}],"title":"ptp: kvm: x86: Leak clock_pair page if changing its encryption fails","x_generator":{"engine":"bippy-1.2.0"}}}}