7.0
HIGH
CVE-2022-48872
Linux Kernel Fastrpc Use-After-Free Race Condition Vulnerability
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

INFO

Published Date :

Aug. 21, 2024, 7:15 a.m.

Last Modified :

Sept. 6, 2024, 2:30 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.0
Affected Products

The following products are affected by CVE-2022-48872 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-48872 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-48872 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Sep. 06, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://git.kernel.org/stable/c/079c78c68714f7d8d58e66c477b0243b31806907 No Types Assigned https://git.kernel.org/stable/c/079c78c68714f7d8d58e66c477b0243b31806907 Patch
    Changed Reference Type https://git.kernel.org/stable/c/556dfdb226ce1e5231d8836159b23f8bb0395bf4 No Types Assigned https://git.kernel.org/stable/c/556dfdb226ce1e5231d8836159b23f8bb0395bf4 Patch
    Changed Reference Type https://git.kernel.org/stable/c/61a0890cb95afec5c8a2f4a879de2b6220984ef1 No Types Assigned https://git.kernel.org/stable/c/61a0890cb95afec5c8a2f4a879de2b6220984ef1 Patch
    Changed Reference Type https://git.kernel.org/stable/c/96b328d119eca7563c1edcc4e1039a62e6370ecb No Types Assigned https://git.kernel.org/stable/c/96b328d119eca7563c1edcc4e1039a62e6370ecb Patch
    Changed Reference Type https://git.kernel.org/stable/c/b171d0d2cf1b8387c72c8d325c5d5746fa271e39 No Types Assigned https://git.kernel.org/stable/c/b171d0d2cf1b8387c72c8d325c5d5746fa271e39 Patch
    Added CWE NIST CWE-416
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.1 up to (excluding) 5.4.230 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.165 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.90 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.2 *cpe:2.3:o:linux:linux_kernel:6.2:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.2:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.2:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.2:rc4:*:*:*:*:*:*
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 21, 2024

    Action Type Old Value New Value
    Added 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
    Added Reference kernel.org https://git.kernel.org/stable/c/556dfdb226ce1e5231d8836159b23f8bb0395bf4 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/b171d0d2cf1b8387c72c8d325c5d5746fa271e39 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/61a0890cb95afec5c8a2f4a879de2b6220984ef1 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/079c78c68714f7d8d58e66c477b0243b31806907 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/96b328d119eca7563c1edcc4e1039a62e6370ecb [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-48872 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-48872 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability