LiveActive security incident?Get immediate response
CVE Record

CVE-2025-71104: KVM: x86: Fix VM hard lockup after prolonged inactivity with periodic HV timer

In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Fix VM hard lockup after prolonged inactivity with periodic HV timer When advancing the target expiration for the guest's APIC timer in periodic mode, set the expiration to "now" if the target expiration is in the past (similar to what is done in update_target_expiration()). Blindly adding the period to the previous target expiration can result in KVM generating a practically unbounded number of hrtimer IRQs due to programming an expired timer over and over. In extreme scenarios, e.g. if userspace pauses/suspends a VM for an extended duration, this can even cause hard lockups in the host. Currently, the bug only affects Intel CPUs when using the hypervisor timer (HV timer), a.k.a. the VMX preemption timer. Unlike the software timer, a.k.a. hrtimer, which KVM keeps running even on exits to userspace, the HV timer only runs while the guest is active. As a result, if the vCPU does not run for an extended duration, there will be a huge gap between the target expiration and the current time the vCPU resumes running. Because the target expiration is incremented by only one period on each timer expiration, this leads to a series of timer expirations occurring rapidly after the vCPU/VM resumes. More critically, when the vCPU first triggers a periodic HV timer expiration after resuming, advancing the expiration by only one period will result in a target expiration in the past. As a result, the delta may be calculated as a negative value. When the delta is converted into an absolute value (tscdeadline is an unsigned u64), the resulting value can overflow what the HV timer is capable of programming. I.e. the large value will exceed the VMX Preemption Timer's maximum bit width of cpu_preemption_timer_multi + 32, and thus cause KVM to switch from the HV timer to the software timer (hrtimers). After switching to the software timer, periodic timer expiration callbacks may be executed consecutively within a single clock interrupt handler, because hrtimers honors KVM's request for an expiration in the past and immediately re-invokes KVM's callback after reprogramming. And because the interrupt handler runs with IRQs disabled, restarting KVM's hrtimer over and over until the target expiration is advanced to "now" can result in a hard lockup. E.g. the following hard lockup was triggered in the host when running a Windows VM (only relevant because it used the APIC timer in periodic mode) after resuming the VM from a long suspend (in the host). NMI watchdog: Watchdog detected hard LOCKUP on cpu 45 ... RIP: 0010:advance_periodic_target_expiration+0x4d/0x80 [kvm] ... RSP: 0018:ff4f88f5d98d8ef0 EFLAGS: 00000046 RAX: fff0103f91be678e RBX: fff0103f91be678e RCX: 00843a7d9e127bcc RDX: 0000000000000002 RSI: 0052ca4003697505 RDI: ff440d5bfbdbd500 RBP: ff440d5956f99200 R08: ff2ff2a42deb6a84 R09: 000000000002a6c0 R10: 0122d794016332b3 R11: 0000000000000000 R12: ff440db1af39cfc0 R13: ff440db1af39cfc0 R14: ffffffffc0d4a560 R15: ff440db1af39d0f8 FS: 00007f04a6ffd700(0000) GS:ff440db1af380000(0000) knlGS:000000e38a3b8000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000d5651feff8 CR3: 000000684e038002 CR4: 0000000000773ee0 PKRU: 55555554 Call Trace: <IRQ> apic_timer_fn+0x31/0x50 [kvm] __hrtimer_run_queues+0x100/0x280 hrtimer_interrupt+0x100/0x210 ? ttwu_do_wakeup+0x19/0x160 smp_apic_timer_interrupt+0x6a/0x130 apic_timer_interrupt+0xf/0x20 </IRQ> Moreover, if the suspend duration of the virtual machine is not long enough to trigger a hard lockup in this scenario, since commit 98c25ead5eda ("KVM: VMX: Move preemption timer <=> hrtimer dance to common x86"), KVM will continue using the software timer until the guest reprograms the APIC timer in some way. Since the periodic timer does not require frequent APIC timer register programming, the guest may continue to use the software timer in ---truncated---

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This Linux kernel KVM flaw can make an affected virtualization host hard-lock after a virtual machine resumes from a long pause or suspend. The evidence points to an availability risk, not data theft. Exposure appears narrow: Intel KVM hosts using the hypervisor timer with guests using periodic APIC timers.

Executive priority

Treat this as a targeted infrastructure availability issue. Prioritize patching affected virtualization hosts where a host lockup would disrupt many workloads, but do not treat it as confirmed actively exploited from the supplied evidence.

Technical view

KVM x86 advances a periodic APIC timer expiration incorrectly after prolonged vCPU inactivity. On Intel VMX preemption timer paths, the stale expiration can switch KVM to hrtimer handling and repeatedly fire expired callbacks with interrupts disabled, causing host hard lockup.

Likely exposure

Likely exposed systems are Linux KVM virtualization hosts on Intel CPUs using the HV timer/VMX preemption timer, especially where VMs may be paused, suspended, or inactive for long periods.

Exploitation context

No active exploitation is stated in the supplied sources, and KEV is false. The described trigger is operational: resuming a long-suspended VM using periodic APIC timers, with Windows cited only as an example guest behavior.

Researcher notes

The source description is detailed about root cause and trigger conditions, but CVSS, CWE, exploitability, and complete product advisories are not provided. The affected-version data includes commit IDs and kernel version ranges, so distro confirmation is important.

Mitigation direction

  • Update affected Linux kernels using vendor guidance or the referenced stable fixes.
  • Check distribution advisories for backported fixes before relying on version strings alone.
  • Minimize long VM suspend or pause workflows on affected Intel KVM hosts until fixed.
  • Prioritize hypervisors supporting important production workloads or dense VM consolidation.

Validation and detection

  • Inventory Linux KVM hosts and record kernel versions and vendor patch status.
  • Identify Intel hosts using KVM with VMX preemption timer support.
  • Review watchdog or kernel logs for KVM APIC timer hard lockup traces.
  • Confirm the relevant stable KVM timer fix is present in deployed kernels.
Prepared
Confidence
high
Sources
10

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2025-71104 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
3Timeline events
2ADP providers
9Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
siemens-SADPADP container
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxd8f2f498d9ed0c5010bc1bbc1146f94c8bf9f8cc, d8f2f498d9ed0c5010bc1bbc1146f94c8bf9f8cc, d8f2f498d9ed0c5010bc1bbc1146f94c8bf9f8cc, d8f2f498d9ed0c5010bc1bbc1146f94c8bf9f8cc, d8f2f498d9ed0c5010bc1bbc1146f94c8bf9f8cc, d8f2f498d9ed0c5010bc1bbc1146f94c8bf9f8cc, d8f2f498d9ed0c5010bc1bbc1146f94c8bf9f8cc, 421e1fadb0b0a648cc75afd5b3c826fa7daeaffc, 5a69b7b69beae9bb86e7e1b095685087976cba47, 4.14.45, 4.16.13unaffected
LinuxLinux4.17, 0, 5.10.248, 5.15.198, 6.1.160, 6.6.120, 6.12.64, 6.18.3, 6.19affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.