CVE-2022-48872

misc: fastrpc: Fix use-after-free race condition for maps

HIGH
7
CVSS Score
Published: August 21, 2024 at 06:10 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: Fix use-after-free race condition for maps It is possible that in between calling fastrpc_map_get() until map->fl->lock is taken in fastrpc_free_map(), another thread can call fastrpc_map_lookup() and get a reference to a map that is about to be deleted. Rewrite fastrpc_map_get() to only increase the reference count of a map if it's non-zero. Propagate this to callers so they can know if a map is about to be deleted. Fixes this warning: refcount_t: addition on 0; use-after-free. WARNING: CPU: 5 PID: 10100 at lib/refcount.c:25 refcount_warn_saturate ... Call trace: refcount_warn_saturate [fastrpc_map_get inlined] [fastrpc_map_lookup inlined] fastrpc_map_create fastrpc_internal_invoke fastrpc_device_ioctl __arm64_sys_ioctl invoke_syscall

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.1 ≤ v < 5.10.1655.1 ≤ v < 5.15.905.1 ≤ v < 5.4.2305.1 ≤ v < 6.1.85.1 ≤ v < 6.25.11 ≤ v < 5.15.905.16 ≤ v < 6.25.5 ≤ v < 5.10.1656.2 rc16.2 rc26.2 rc36.2 rc4c68cfb718c8f97b7f7a50ed66be5feb42d0c8988
Vendor states this is fixed in 079c78c68714f7d8d58e66c477b0243b31806907 (fixed)
Vendor states this is fixed in 556dfdb226ce1e5231d8836159b23f8bb0395bf4 (fixed)
Vendor states this is fixed in 61a0890cb95afec5c8a2f4a879de2b6220984ef1 (fixed)
Vendor states this is fixed in 96b328d119eca7563c1edcc4e1039a62e6370ecb (fixed)
Vendor states this is fixed in b171d0d2cf1b8387c72c8d325c5d5746fa271e39 (fixed)
Vendor states this is fixed in 5.1 (unaffected)
Vendor states this is fixed in 5.10.165 (unaffected)
Vendor states this is fixed in 5.15.90 (unaffected)
Vendor states this is fixed in 5.4.230 (unaffected)
Vendor states this is fixed in 6.1.8 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/079c78c68714f7d8d58e66c477b0243b31806907
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/556dfdb226ce1e5231d8836159b23f8bb0395bf4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/61a0890cb95afec5c8a2f4a879de2b6220984ef1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/96b328d119eca7563c1edcc4e1039a62e6370ecb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b171d0d2cf1b8387c72c8d325c5d5746fa271e39

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card