# CVE-2022-49393: misc: fastrpc: fix list iterator in fastrpc\_req\_mem\_unmap\_impl

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-670
- **Published:** 2025-02-26T02:11:24.730Z
- **Modified:** 2026-08-05T08:55:00.985Z

## Who should check

- Anyone running Linux \>= 5c1b97c7d7b736e6439af4f43a65837bc72f56c1, \< 2d12905aad462383f4e7a5fdb024d2b7ae2d10cf; \>= 5c1b97c7d7b736e6439af4f43a65837bc72f56c1, \< c5c07c5958cf0c9af6e76813e6de15d42ee49822
- Anyone running Linux 5.18

## Description

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

misc: fastrpc: fix list iterator in fastrpc\_req\_mem\_unmap\_impl

This is another instance of incorrect use of list iterator and
checking it for NULL.

The list iterator value 'map' will \*always\* be set and non-NULL
by list\_for\_each\_entry(), so it is incorrect to assume that the
iterator value will be NULL if the list is empty (in this case, the
check 'if (!map) {' will always be false and never exit as expected).

To fix the bug, use a new variable 'iter' as the list iterator,
while use the original variable 'map' as a dedicated pointer to
point to the found element.

Without this patch, Kernel crashes with below trace:

Unable to handle kernel access to user memory outside uaccess routines
 at virtual address 0000ffff7fb03750
...
Call trace:
 fastrpc\_map\_create+0x70/0x290 \[fastrpc\]
 fastrpc\_req\_mem\_map+0xf0/0x2dc \[fastrpc\]
 fastrpc\_device\_ioctl+0x138/0xc60 \[fastrpc\]
 \_\_arm64\_sys\_ioctl+0xa8/0xec
 invoke\_syscall+0x48/0x114
 el0\_svc\_common.constprop.0+0xd4/0xfc
 do\_el0\_svc+0x28/0x90
 el0\_svc+0x3c/0x130
 el0t\_64\_sync\_handler+0xa4/0x130
 el0t\_64\_sync+0x18c/0x190
Code: 14000016 f94000a5 eb05029f 54000260 (b94018a6)
---\[ end trace 0000000000000000 \]---

## Affected and fixed versions

- Linux: \>= 5c1b97c7d7b736e6439af4f43a65837bc72f56c1, \< 2d12905aad462383f4e7a5fdb024d2b7ae2d10cf; \>= 5c1b97c7d7b736e6439af4f43a65837bc72f56c1, \< c5c07c5958cf0c9af6e76813e6de15d42ee49822 (cvelist)
- Linux: 5.18 (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-2022-49393. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49393.md
Affected: Linux >= 5c1b97c7d7b736e6439af4f43a65837bc72f56c1, < 2d12905aad462383f4e7a5fdb024d2b7ae2d10cf; >= 5c1b97c7d7b736e6439af4f43a65837bc72f56c1, < c5c07c5958cf0c9af6e76813e6de15d42ee49822; Linux 5.18
Fixed in: Linux 2d12905aad462383f4e7a5fdb024d2b7ae2d10cf

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

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

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

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

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

Linux \>= 5c1b97c7d7b736e6439af4f43a65837bc72f56c1, \< 2d12905aad462383f4e7a5fdb024d2b7ae2d10cf; \>= 5c1b97c7d7b736e6439af4f43a65837bc72f56c1, \< c5c07c5958cf0c9af6e76813e6de15d42ee49822; Linux 5.18.

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

Yes. Fixed in Linux 2d12905aad462383f4e7a5fdb024d2b7ae2d10cf. No fix listed yet: follow the vendor advisory.

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

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/2d12905aad462383f4e7a5fdb024d2b7ae2d10cf>
- patch: <https://git.kernel.org/stable/c/c5c07c5958cf0c9af6e76813e6de15d42ee49822>

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

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