Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-48874

published high CVSS 3.1 · 7.8

misc: fastrpc: Fix use-after-free and race in fastrpc_map_find

Published
21 Aug 2024, 06:10:05 UTC
Updated
05 Aug 2026, 08:52:45 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux8f6c1d8c4f0cc316b0456788fff8373554d1d99d to < a50c5c25b6e7d2824698c0e6385f882a18f4a498 · 8f6c1d8c4f0cc316b0456788fff8373554d1d99d to < 9446fa1683a7e3937d9970248ced427c1983a1c5 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 6.1.8 through 6.1.* (unaffected · semver) · 6.2 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 use-after-free and race in fastrpc_map_find Currently, there is a race window between the point when the mutex is unlocked in fastrpc_map_lookup and the reference count increasing (fastrpc_map_get) in fastrpc_map_find, which can also lead to use-after-free. So lets merge fastrpc_map_find into fastrpc_map_lookup which allows us to both protect the maps list by also taking the &fl->lock spinlock and the reference count, since the spinlock will be released only after. Add take_ref argument to make this suitable for all callers.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

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 vulnerability is reached only through local ioctls on /dev/fastrpc-* misc devices (FASTRPC_IOCTL_INVOKE / MEM_MAP / MEM_UNMAP) via fastrpc_device_ioctl → fastrpc_map_create → fastrpc_map_find; it is not reachable from network packet processing. AC:L - The attacker controls both sides of the race by issuing concurrent ioctls from multiple threads on the same fastrpc fd (e.g. map_find via invoke/mem_map while another thread drops the last map ref via mem_unmap or put_args), so success does not depend on conditions outside attacker control. PR:L - fastrpc_device_open performs no capability check, and on typical Qualcomm/Android deployments unprivileged/untrusted contexts can obtain access to the non-secure fastrpc node (directly or via HAL FD passing), so real root/init-namespace privileges are not required. UI:N - Exploitation requires only the attacker’s own open/ioctl calls on the fastrpc device; no separate victim action is needed. S:U - This is a kernel heap UAF enabling privilege escalation within the same OS security authority; it does not cross a VM, IOMMU, or other security-authority boundary. C:H - Use-after-free of struct fastrpc_map lets an attacker reclaim and control the freed object, enabling arbitrary kernel memory disclosure. I:H - The same UAF is exploitable for heap spraying and arbitrary write / control-flow hijacking in the kernel, not merely a limited corruption. A:H - Use-after-free of the map object can cause kernel oops/panic (and does so even when not fully exploited for code execution).

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 8f6c1d8c4f0cc316b0456788fff8373554d1d99d to < a50c5c25b6e7d2824698c0e6385f882a18f4a498 (affected · git)8f6c1d8c4f0cc316b0456788fff8373554d1d99d to < 9446fa1683a7e3937d9970248ced427c1983a1c5 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.18 (affected)0 to < 5.18 (unaffected · semver)6.1.8 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

2

Linux · cna

misc: fastrpc: Fix use-after-free and race in fastrpc_map_find

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
53af99d8a517a687e4c33c5c27a2799f529eb7f25bea0304d64faaa03e795952
Ingested
23 Sep 2026, 08:04:03 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected