CVE-2022-49393
published high CVSS 3.1 · 7.8misc: fastrpc: fix list iterator in fastrpc_req_mem_unmap_impl
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux5c1b97c7d7b736e6439af4f43a65837bc72f56c1 to < 2d12905aad462383f4e7a5fdb024d2b7ae2d10cf · 5c1b97c7d7b736e6439af4f43a65837bc72f56c1 to < c5c07c5958cf0c9af6e76813e6de15d42ee49822 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 5.18.3 through 5.18.* (unaffected · semver) · 5.19 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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 ]---
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached via FASTRPC_IOCTL_MEM_UNMAP (and the MEM_MAP copy_to_user failure cleanup) on the local /dev/fastrpc-* misc device ioctl path, not via network or adjacent protocols. AC:L - An attacker who can open the device can populate fl->maps and then issue MEM_UNMAP with a non-matching fd/vaddr (or force the MEM_MAP cleanup path), reliably taking the bad iterator path with no race or victim-controlled timing. PR:L - fastrpc_device_open and the MEM_MAP/MEM_UNMAP ioctls have no capability checks; on Qualcomm/Android deployments unprivileged apps can obtain FastRPC device access (directly or via DSP HAL FD passing), so only low local privileges are required. UI:N - Exploitation requires no victim action; the attacker triggers the vulnerable ioctl sequence themselves once they have the device file descriptor. S:U - Impact is kernel memory corruption / privilege escalation within the host Linux kernel authority; it does not by itself cross a VM, IOMMU, or other separate security boundary. C:H - The failed lookup leaves map as a type-confused pointer into fastrpc_user, then reads forged map fields and can drive fastrpc_free_map/kfree on that object, yielding heap corruption that can be leveraged for arbitrary kernel read under the required uncertainty rule. I:H - Calling fastrpc_map_put on the bogus map can invoke fastrpc_free_map and kfree an interior pointer into the fastrpc_user allocation, producing heap metadata corruption exploitable for arbitrary write / control-flow hijacking. A:H - The commit documents a kernel oops from corrupted pointer dereference (userspace address used as a kernel pointer), so availability impact is a full kernel crash.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 5c1b97c7d7b736e6439af4f43a65837bc72f56c1 to < 2d12905aad462383f4e7a5fdb024d2b7ae2d10cf (affected · git)5c1b97c7d7b736e6439af4f43a65837bc72f56c1 to < c5c07c5958cf0c9af6e76813e6de15d42ee49822 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.18 (affected)0 to < 5.18 (unaffected · semver)5.18.3 through 5.18.* (unaffected · semver)5.19 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
misc: fastrpc: fix list iterator in fastrpc_req_mem_unmap_impl
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6b8bc3684220c2e46b7828bc1854242816f4b6e2ce752ca76465ec94cde3a19c
- Ingested
- 23 Sep 2026, 08:04:12 UTC
- Source record
- Official CVE record