# CVE-2022-49520: arm64: compat: Do not treat syscall number as ESR\_ELx for a bad syscall

> 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.30% (percentile 15, 2026-11-26)
- **Published:** 2025-02-26T02:13:46.336Z
- **Modified:** 2026-08-15T13:17:23.770Z

## Who should check

- Anyone running Linux \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< efd183d988b416fcdf6f7c298a17ced4859ca77d; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< ad97425d23af3c3b8d4f6a2bb666cb485087c007; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 621916afe8cd4f322eb12759b64a2f938d4e551d; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 095e975f8150ccd7f852eb578c1cdbdd2f517c7a; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 3910ae71cb963fa2b68e684489d4fc3d105afda0; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 3fed9e551417b84038b15117732ea4505eee386b
- Anyone running Linux 4.17

## Description

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

arm64: compat: Do not treat syscall number as ESR\_ELx for a bad syscall

If a compat process tries to execute an unknown system call above the
\_\_ARM\_NR\_COMPAT\_END number, the kernel sends a SIGILL signal to the
offending process. Information about the error is printed to dmesg in
compat\_arm\_syscall() -\> arm64\_notify\_die() -\> arm64\_force\_sig\_fault() -\>
arm64\_show\_signal().

arm64\_show\_signal() interprets a non-zero value for
current-\>thread.fault\_code as an exception syndrome and displays the
message associated with the ESR\_ELx.EC field (bits 31:26).
current-\>thread.fault\_code is set in compat\_arm\_syscall() -\>
arm64\_notify\_die() with the bad syscall number instead of a valid ESR\_ELx
value. This means that the ESR\_ELx.EC field has the value that the user set
for the syscall number and the kernel can end up printing bogus exception
messages\*. For example, for the syscall number 0x68000000, which evaluates
to ESR\_ELx.EC value of 0x1A (ESR\_ELx\_EC\_FPAC) the kernel prints this error:

\[   18.349161\] syscall\[300\]: unhandled exception: ERET/ERETAA/ERETAB, ESR 0x68000000, Oops - bad compat syscall(2) in syscall\[10000+50000\]
\[   18.350639\] CPU: 2 PID: 300 Comm: syscall Not tainted 5.18.0-rc1 \#79
\[   18.351249\] Hardware name: Pine64 RockPro64 v2.0 (DT)
\[..\]

which is misleading, as the bad compat syscall has nothing to do with
pointer authentication.

Stop arm64\_show\_signal() from printing exception syndrome information by
having compat\_arm\_syscall() set the ESR\_ELx value to 0, as it has no
meaning for an invalid system call number. The example above now becomes:

\[   19.935275\] syscall\[301\]: unhandled exception: Oops - bad compat syscall(2) in syscall\[10000+50000\]
\[   19.936124\] CPU: 1 PID: 301 Comm: syscall Not tainted 5.18.0-rc1-00005-g7e08006d4102 \#80
\[   19.936894\] Hardware name: Pine64 RockPro64 v2.0 (DT)
\[..\]

which although shows less information because the syscall number,
wrongfully advertised as the ESR value, is missing, it is better than
showing plainly wrong information. The syscall number can be easily
obtained with strace.

\*A 32-bit value above or equal to 0x8000\_0000 is interpreted as a negative
integer in compat\_arm\_syscal() and the condition scno \< \_\_ARM\_NR\_COMPAT\_END
evaluates to true; the syscall will exit to userspace in this case with the
ENOSYS error code instead of arm64\_notify\_die() being called.

## Affected and fixed versions

- Linux: \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< efd183d988b416fcdf6f7c298a17ced4859ca77d; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< ad97425d23af3c3b8d4f6a2bb666cb485087c007; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 621916afe8cd4f322eb12759b64a2f938d4e551d; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 095e975f8150ccd7f852eb578c1cdbdd2f517c7a; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 3910ae71cb963fa2b68e684489d4fc3d105afda0; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 3fed9e551417b84038b15117732ea4505eee386b (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- Upgrade Linux to 3fed9e551417b84038b15117732ea4505eee386b 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-49520. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49520.md
Affected: Linux >= 532826f3712b607256eb30f92f23d1c604d3fa34, < efd183d988b416fcdf6f7c298a17ced4859ca77d; >= 532826f3712b607256eb30f92f23d1c604d3fa34, < ad97425d23af3c3b8d4f6a2bb666cb485087c007; >= 532826f3712b607256eb30f92f23d1c604d3fa34, < 621916afe8cd4f322eb12759b64a2f938d4e551d; >= 532826f3712b607256eb30f…
Fixed in: Linux 621916afe8cd4f322eb12759b64a2f938d4e551d, Linux 095e975f8150ccd7f852eb578c1cdbdd2f517c7a, Linux 3910ae71cb963fa2b68e684489d4fc3d105afda0, Linux 3fed9e551417b84038b15117732ea4505eee386b

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-49520 being exploited?

There is no confirmed exploitation: CVE-2022-49520 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-49520?

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

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

Linux \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< efd183d988b416fcdf6f7c298a17ced4859ca77d; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< ad97425d23af3c3b8d4f6a2bb666cb485087c007; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 621916afe8cd4f322eb12759b64a2f938d4e551d; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 095e975f8150ccd7f852eb578c1cdbdd2f517c7a; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 3910ae71cb963fa2b68e684489d4fc3d105afda0; \>= 532826f3712b607256eb30f92f23d1c604d3fa34, \< 3fed9e551417b84038b15117732ea4505eee386b; Linux 4.17.

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

Yes. Fixed in Linux 621916afe8cd4f322eb12759b64a2f938d4e551d, Linux 095e975f8150ccd7f852eb578c1cdbdd2f517c7a, Linux 3910ae71cb963fa2b68e684489d4fc3d105afda0, Linux 3fed9e551417b84038b15117732ea4505eee386b. Upgrade Linux to 3fed9e551417b84038b15117732ea4505eee386b or later.

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

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/efd183d988b416fcdf6f7c298a17ced4859ca77d>
- patch: <https://git.kernel.org/stable/c/ad97425d23af3c3b8d4f6a2bb666cb485087c007>
- patch: <https://git.kernel.org/stable/c/621916afe8cd4f322eb12759b64a2f938d4e551d>
- patch: <https://git.kernel.org/stable/c/095e975f8150ccd7f852eb578c1cdbdd2f517c7a>
- patch: <https://git.kernel.org/stable/c/3910ae71cb963fa2b68e684489d4fc3d105afda0>
- patch: <https://git.kernel.org/stable/c/3fed9e551417b84038b15117732ea4505eee386b>

## 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-49520>

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