# CVE-2022-48727: KVM: arm64: Avoid consuming a stale esr value when SError occur

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

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: Low; 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.30% (percentile 16, 2026-11-26)
- **Published:** 2024-06-20T11:13:16.668Z
- **Modified:** 2026-08-05T08:51:59.189Z

## Who should check

- Anyone running Linux \>= defe21f49bc98b095300752aa1e19bb608f3e97d, \< e1e852746997500f1873f60b954da5f02cc2dba3; \>= defe21f49bc98b095300752aa1e19bb608f3e97d, \< 57e2986c3b25092691a6e3d6ee9168caf8978932; \>= defe21f49bc98b095300752aa1e19bb608f3e97d, \< 1c71dbc8a179d99dd9bb7e7fc1888db613cf85de
- Anyone running Linux 5.11

## Description

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

KVM: arm64: Avoid consuming a stale esr value when SError occur

When any exception other than an IRQ occurs, the CPU updates the ESR\_EL2
register with the exception syndrome. An SError may also become pending,
and will be synchronised by KVM. KVM notes the exception type, and whether
an SError was synchronised in exit\_code.

When an exception other than an IRQ occurs, fixup\_guest\_exit() updates
vcpu-\>arch.fault.esr\_el2 from the hardware register. When an SError was
synchronised, the vcpu esr value is used to determine if the exception
was due to an HVC. If so, ELR\_EL2 is moved back one instruction. This
is so that KVM can process the SError first, and re-execute the HVC if
the guest survives the SError.

But if an IRQ synchronises an SError, the vcpu's esr value is stale.
If the previous non-IRQ exception was an HVC, KVM will corrupt ELR\_EL2,
causing an unrelated guest instruction to be executed twice.

Check ARM\_EXCEPTION\_CODE() before messing with ELR\_EL2, IRQs don't
update this register so don't need to check.

## Affected and fixed versions

- Linux: \>= defe21f49bc98b095300752aa1e19bb608f3e97d, \< e1e852746997500f1873f60b954da5f02cc2dba3; \>= defe21f49bc98b095300752aa1e19bb608f3e97d, \< 57e2986c3b25092691a6e3d6ee9168caf8978932; \>= defe21f49bc98b095300752aa1e19bb608f3e97d, \< 1c71dbc8a179d99dd9bb7e7fc1888db613cf85de (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- Upgrade Linux to 1c71dbc8a179d99dd9bb7e7fc1888db613cf85de or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-48727.md
Affected: Linux >= defe21f49bc98b095300752aa1e19bb608f3e97d, < e1e852746997500f1873f60b954da5f02cc2dba3; >= defe21f49bc98b095300752aa1e19bb608f3e97d, < 57e2986c3b25092691a6e3d6ee9168caf8978932; >= defe21f49bc98b095300752aa1e19bb608f3e97d, < 1c71dbc8a179d99dd9bb7e7fc1888db613cf85de; Linux 5.11
Fixed in: Linux 57e2986c3b25092691a6e3d6ee9168caf8978932, Linux 1c71dbc8a179d99dd9bb7e7fc1888db613cf85de

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-2022-48727 being exploited?

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

### How serious is CVE-2022-48727?

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

### Which versions are affected by CVE-2022-48727?

Linux \>= defe21f49bc98b095300752aa1e19bb608f3e97d, \< e1e852746997500f1873f60b954da5f02cc2dba3; \>= defe21f49bc98b095300752aa1e19bb608f3e97d, \< 57e2986c3b25092691a6e3d6ee9168caf8978932; \>= defe21f49bc98b095300752aa1e19bb608f3e97d, \< 1c71dbc8a179d99dd9bb7e7fc1888db613cf85de; Linux 5.11.

### Is there a fix for CVE-2022-48727?

Yes. Fixed in Linux 57e2986c3b25092691a6e3d6ee9168caf8978932, Linux 1c71dbc8a179d99dd9bb7e7fc1888db613cf85de. Upgrade Linux to 1c71dbc8a179d99dd9bb7e7fc1888db613cf85de or later.

### How do I check if I'm affected by CVE-2022-48727?

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/e1e852746997500f1873f60b954da5f02cc2dba3>
- patch: <https://git.kernel.org/stable/c/57e2986c3b25092691a6e3d6ee9168caf8978932>
- patch: <https://git.kernel.org/stable/c/1c71dbc8a179d99dd9bb7e7fc1888db613cf85de>

## 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-2022-48727>

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