# CVE-2024-53195: KVM: arm64: Get rid of userspace\_irqchip\_in\_use

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 15, 2026-11-26)
- **Published:** 2024-12-27T13:49:37.514Z
- **Modified:** 2026-11-05T21:17:34.283Z

## Who should check

- Anyone running Linux \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< 982a1461ab9cf3146302fe5a139ecb1f9b2d33fc; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< dd2f9861f27571d47998d71e7516bf7216db0b52; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< c16e2dba39ff6ae84bb8dc9c8e0fb21d9b2f6f5c; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< fe425d5239a28c21e0c83ee7a8f4cb210d29fdb4; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< 38d7aacca09230fdb98a34194fec2af597e8e20d
- Anyone running Linux 3.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

KVM: arm64: Get rid of userspace\_irqchip\_in\_use

Improper use of userspace\_irqchip\_in\_use led to syzbot hitting the
following WARN\_ON() in kvm\_timer\_update\_irq():

WARNING: CPU: 0 PID: 3281 at arch/arm64/kvm/arch\_timer.c:459
kvm\_timer\_update\_irq+0x21c/0x394
Call trace:
  kvm\_timer\_update\_irq+0x21c/0x394 arch/arm64/kvm/arch\_timer.c:459
  kvm\_timer\_vcpu\_reset+0x158/0x684 arch/arm64/kvm/arch\_timer.c:968
  kvm\_reset\_vcpu+0x3b4/0x560 arch/arm64/kvm/reset.c:264
  kvm\_vcpu\_set\_target arch/arm64/kvm/arm.c:1553 \[inline\]
  kvm\_arch\_vcpu\_ioctl\_vcpu\_init arch/arm64/kvm/arm.c:1573 \[inline\]
  kvm\_arch\_vcpu\_ioctl+0x112c/0x1b3c arch/arm64/kvm/arm.c:1695
  kvm\_vcpu\_ioctl+0x4ec/0xf74 virt/kvm/kvm\_main.c:4658
  vfs\_ioctl fs/ioctl.c:51 \[inline\]
  \_\_do\_sys\_ioctl fs/ioctl.c:907 \[inline\]
  \_\_se\_sys\_ioctl fs/ioctl.c:893 \[inline\]
  \_\_arm64\_sys\_ioctl+0x108/0x184 fs/ioctl.c:893
  \_\_invoke\_syscall arch/arm64/kernel/syscall.c:35 \[inline\]
  invoke\_syscall+0x78/0x1b8 arch/arm64/kernel/syscall.c:49
  el0\_svc\_common+0xe8/0x1b0 arch/arm64/kernel/syscall.c:132
  do\_el0\_svc+0x40/0x50 arch/arm64/kernel/syscall.c:151
  el0\_svc+0x54/0x14c arch/arm64/kernel/entry-common.c:712
  el0t\_64\_sync\_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730
  el0t\_64\_sync+0x190/0x194 arch/arm64/kernel/entry.S:598

The following sequence led to the scenario:
 - Userspace creates a VM and a vCPU.
 - The vCPU is initialized with KVM\_ARM\_VCPU\_PMU\_V3 during
   KVM\_ARM\_VCPU\_INIT.
 - Without any other setup, such as vGIC or vPMU, userspace issues
   KVM\_RUN on the vCPU. Since the vPMU is requested, but not setup,
   kvm\_arm\_pmu\_v3\_enable() fails in kvm\_arch\_vcpu\_run\_pid\_change().
   As a result, KVM\_RUN returns after enabling the timer, but before
   incrementing 'userspace\_irqchip\_in\_use':
   kvm\_arch\_vcpu\_run\_pid\_change()
       ret = kvm\_arm\_pmu\_v3\_enable()
           if (!vcpu-\>arch.pmu.created)
               return -EINVAL;
       if (ret)
           return ret;
       \[...\]
       if (!irqchip\_in\_kernel(kvm))
           static\_branch\_inc(&userspace\_irqchip\_in\_use);
 - Userspace ignores the error and issues KVM\_ARM\_VCPU\_INIT again.
   Since the timer is already enabled, control moves through the
   following flow, ultimately hitting the WARN\_ON():
   kvm\_timer\_vcpu\_reset()
       if (timer-\>enabled)
          kvm\_timer\_update\_irq()
              if (!userspace\_irqchip())
                  ret = kvm\_vgic\_inject\_irq()
                      ret = vgic\_lazy\_init()
                          if (unlikely(!vgic\_initialized(kvm)))
                              if (kvm-\>arch.vgic.vgic\_model !=
                                  KVM\_DEV\_TYPE\_ARM\_VGIC\_V2)
                                      return -EBUSY;
                  WARN\_ON(ret);

Theoretically, since userspace\_irqchip\_in\_use's functionality can be
simply replaced by '!irqchip\_in\_kernel()', get rid of the static key
to avoid the mismanagement, which also helps with the syzbot issue.

## Affected and fixed versions

- Linux: \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< 982a1461ab9cf3146302fe5a139ecb1f9b2d33fc; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< dd2f9861f27571d47998d71e7516bf7216db0b52; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< c16e2dba39ff6ae84bb8dc9c8e0fb21d9b2f6f5c; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< fe425d5239a28c21e0c83ee7a8f4cb210d29fdb4; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< 38d7aacca09230fdb98a34194fec2af597e8e20d (cvelist)
- Linux: 3.11 (cvelist)

## Mitigation

- Upgrade Linux to 38d7aacca09230fdb98a34194fec2af597e8e20d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-53195. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53195.md
Affected: Linux >= 6211753fdfd05af9e08f54c8d0ba3ee516034878, < 982a1461ab9cf3146302fe5a139ecb1f9b2d33fc; >= 6211753fdfd05af9e08f54c8d0ba3ee516034878, < dd2f9861f27571d47998d71e7516bf7216db0b52; >= 6211753fdfd05af9e08f54c8d0ba3ee516034878, < c16e2dba39ff6ae84bb8dc9c8e0fb21d9b2f6f5c; >= 6211753fdfd05af9e08f54c…
Fixed in: Linux 982a1461ab9cf3146302fe5a139ecb1f9b2d33fc, Linux 38d7aacca09230fdb98a34194fec2af597e8e20d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-53195 being exploited?

There is no confirmed exploitation: CVE-2024-53195 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-53195?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-53195?

Linux \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< 982a1461ab9cf3146302fe5a139ecb1f9b2d33fc; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< dd2f9861f27571d47998d71e7516bf7216db0b52; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< c16e2dba39ff6ae84bb8dc9c8e0fb21d9b2f6f5c; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< fe425d5239a28c21e0c83ee7a8f4cb210d29fdb4; \>= 6211753fdfd05af9e08f54c8d0ba3ee516034878, \< 38d7aacca09230fdb98a34194fec2af597e8e20d; Linux 3.11.

### Is there a fix for CVE-2024-53195?

Yes. Fixed in Linux 982a1461ab9cf3146302fe5a139ecb1f9b2d33fc, Linux 38d7aacca09230fdb98a34194fec2af597e8e20d. Upgrade Linux to 38d7aacca09230fdb98a34194fec2af597e8e20d or later.

### How do I check if I'm affected by CVE-2024-53195?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/dd2f9861f27571d47998d71e7516bf7216db0b52>
- patch: <https://git.kernel.org/stable/c/c16e2dba39ff6ae84bb8dc9c8e0fb21d9b2f6f5c>
- patch: <https://git.kernel.org/stable/c/fe425d5239a28c21e0c83ee7a8f4cb210d29fdb4>
- patch: <https://git.kernel.org/stable/c/38d7aacca09230fdb98a34194fec2af597e8e20d>
- other: <https://git.kernel.org/stable/c/982a1461ab9cf3146302fe5a139ecb1f9b2d33fc>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-53195>

HTML: <https://flawdb.com/CVE-2024-53195> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-53195>
