# CVE-2023-53319: KVM: arm64: Handle kvm\_arm\_init failure correctly in finalize\_pkvm

> 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, CNA) `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.19% (percentile 5, 2026-11-26)
- **Published:** 2025-09-16T16:11:55.490Z
- **Modified:** 2026-06-17T06:44:52.650Z

## Who should check

- Anyone running Linux \>= 87727ba2bb05cc3cb4233231faa7ab4c7eeb6c73, \< 91450dec0445f4d12f960ba68d8d05c3cb2ab5b8; \>= 87727ba2bb05cc3cb4233231faa7ab4c7eeb6c73, \< fa729bc7c9c8c17a2481358c841ef8ca920485d3
- Anyone running Linux 6.4

## Description

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

KVM: arm64: Handle kvm\_arm\_init failure correctly in finalize\_pkvm

Currently there is no synchronisation between finalize\_pkvm() and
kvm\_arm\_init() initcalls. The finalize\_pkvm() proceeds happily even if
kvm\_arm\_init() fails resulting in the following warning on all the CPUs
and eventually a HYP panic:

  \| kvm \[1\]: IPA Size Limit: 48 bits
  \| kvm \[1\]: Failed to init hyp memory protection
  \| kvm \[1\]: error initializing Hyp mode: -22
  \|
  \| \<snip\>
  \|
  \| WARNING: CPU: 0 PID: 0 at arch/arm64/kvm/pkvm.c:226 \_kvm\_host\_prot\_finalize+0x30/0x50
  \| Modules linked in:
  \| CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.4.0 \#237
  \| Hardware name: FVP Base RevC (DT)
  \| pstate: 634020c5 (nZCv daIF +PAN -UAO +TCO +DIT -SSBS BTYPE=--)
  \| pc : \_kvm\_host\_prot\_finalize+0x30/0x50
  \| lr : \_\_flush\_smp\_call\_function\_queue+0xd8/0x230
  \|
  \| Call trace:
  \|  \_kvm\_host\_prot\_finalize+0x3c/0x50
  \|  on\_each\_cpu\_cond\_mask+0x3c/0x6c
  \|  pkvm\_drop\_host\_privileges+0x4c/0x78
  \|  finalize\_pkvm+0x3c/0x5c
  \|  do\_one\_initcall+0xcc/0x240
  \|  do\_initcall\_level+0x8c/0xac
  \|  do\_initcalls+0x54/0x94
  \|  do\_basic\_setup+0x1c/0x28
  \|  kernel\_init\_freeable+0x100/0x16c
  \|  kernel\_init+0x20/0x1a0
  \|  ret\_from\_fork+0x10/0x20
  \| Failed to finalize Hyp protection: -22
  \|     dtb=fvp-base-revc.dtb
  \| kvm \[95\]: nVHE hyp BUG at: arch/arm64/kvm/hyp/nvhe/mem\_protect.c:540!
  \| kvm \[95\]: nVHE call trace:
  \| kvm \[95\]:  \[\<ffff800081052984\>\] \_\_kvm\_nvhe\_hyp\_panic+0xac/0xf8
  \| kvm \[95\]:  \[\<ffff800081059644\>\] \_\_kvm\_nvhe\_handle\_host\_mem\_abort+0x1a0/0x2ac
  \| kvm \[95\]:  \[\<ffff80008105511c\>\] \_\_kvm\_nvhe\_handle\_trap+0x4c/0x160
  \| kvm \[95\]:  \[\<ffff8000810540fc\>\] \_\_kvm\_nvhe\_\_\_skip\_pauth\_save+0x4/0x4
  \| kvm \[95\]: ---\[ end nVHE call trace \]---
  \| kvm \[95\]: Hyp Offset: 0xfffe8db00ffa0000
  \| Kernel panic - not syncing: HYP panic:
  \| PS:a34023c9 PC:0000f250710b973c ESR:00000000f2000800
  \| FAR:ffff000800cb00d0 HPFAR:000000000880cb00 PAR:0000000000000000
  \| VCPU:0000000000000000
  \| CPU: 3 PID: 95 Comm: kworker/u16:2 Tainted: G        W          6.4.0 \#237
  \| Hardware name: FVP Base RevC (DT)
  \| Workqueue: rpciod rpc\_async\_schedule
  \| Call trace:
  \|  dump\_backtrace+0xec/0x108
  \|  show\_stack+0x18/0x2c
  \|  dump\_stack\_lvl+0x50/0x68
  \|  dump\_stack+0x18/0x24
  \|  panic+0x138/0x33c
  \|  nvhe\_hyp\_panic\_handler+0x100/0x184
  \|  new\_slab+0x23c/0x54c
  \|  \_\_\_slab\_alloc+0x3e4/0x770
  \|  kmem\_cache\_alloc\_node+0x1f0/0x278
  \|  \_\_alloc\_skb+0xdc/0x294
  \|  tcp\_stream\_alloc\_skb+0x2c/0xf0
  \|  tcp\_sendmsg\_locked+0x3d0/0xda4
  \|  tcp\_sendmsg+0x38/0x5c
  \|  inet\_sendmsg+0x44/0x60
  \|  sock\_sendmsg+0x1c/0x34
  \|  xprt\_sock\_sendmsg+0xdc/0x274
  \|  xs\_tcp\_send\_request+0x1ac/0x28c
  \|  xprt\_transmit+0xcc/0x300
  \|  call\_transmit+0x78/0x90
  \|  \_\_rpc\_execute+0x114/0x3d8
  \|  rpc\_async\_schedule+0x28/0x48
  \|  process\_one\_work+0x1d8/0x314
  \|  worker\_thread+0x248/0x474
  \|  kthread+0xfc/0x184
  \|  ret\_from\_fork+0x10/0x20
  \| SMP: stopping secondary CPUs
  \| Kernel Offset: 0x57c5cb460000 from 0xffff800080000000
  \| PHYS\_OFFSET: 0x80000000
  \| CPU features: 0x00000000,1035b7a3,ccfe773f
  \| Memory Limit: none
  \| ---\[ end Kernel panic - not syncing: HYP panic:
  \| PS:a34023c9 PC:0000f250710b973c ESR:00000000f2000800
  \| FAR:ffff000800cb00d0 HPFAR:000000000880cb00 PAR:0000000000000000
  \| VCPU:0000000000000000 \]---

Fix it by checking for the successfull initialisation of kvm\_arm\_init()
in finalize\_pkvm() before proceeding any futher.

## Affected and fixed versions

- Linux: \>= 87727ba2bb05cc3cb4233231faa7ab4c7eeb6c73, \< 91450dec0445f4d12f960ba68d8d05c3cb2ab5b8; \>= 87727ba2bb05cc3cb4233231faa7ab4c7eeb6c73, \< fa729bc7c9c8c17a2481358c841ef8ca920485d3 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53319.md
Affected: Linux >= 87727ba2bb05cc3cb4233231faa7ab4c7eeb6c73, < 91450dec0445f4d12f960ba68d8d05c3cb2ab5b8; >= 87727ba2bb05cc3cb4233231faa7ab4c7eeb6c73, < fa729bc7c9c8c17a2481358c841ef8ca920485d3; Linux 6.4
Fixed in: Linux 91450dec0445f4d12f960ba68d8d05c3cb2ab5b8

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-2023-53319 being exploited?

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

### How serious is CVE-2023-53319?

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

### Which versions are affected by CVE-2023-53319?

Linux \>= 87727ba2bb05cc3cb4233231faa7ab4c7eeb6c73, \< 91450dec0445f4d12f960ba68d8d05c3cb2ab5b8; \>= 87727ba2bb05cc3cb4233231faa7ab4c7eeb6c73, \< fa729bc7c9c8c17a2481358c841ef8ca920485d3; Linux 6.4.

### Is there a fix for CVE-2023-53319?

Yes. Fixed in Linux 91450dec0445f4d12f960ba68d8d05c3cb2ab5b8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53319?

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/91450dec0445f4d12f960ba68d8d05c3cb2ab5b8>
- patch: <https://git.kernel.org/stable/c/fa729bc7c9c8c17a2481358c841ef8ca920485d3>

## 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-2023-53319>

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