CVE-2022-48872·Kernel vulnerability
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
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.2
- Published
- 2024-08-21
Affected versions
From: 5.16
Until: 6.2
Fixed in: 6.2
How to fix this CVE
Update your Linux kernel to version 6.2 or later to resolve a critical use-after-free race condition in the fastrpc driver that could allow local privilege escalation. This patch fixes a reference counting vulnerability where multiple threads could simultaneously access a map structure scheduled for deletion. Kernel updates should be applied promptly and followed by a system reboot to take effect.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r — if it shows 5.16 through 6.1.x, your system is vulnerable
- Verify fastrpc module is loaded: lsmod | grep fastrpc — if present, the vulnerable component is active
- Search kernel logs for refcount warnings: grep -i 'refcount_t: addition on 0' /var/log/kern.log or journalctl -k | grep -i 'use-after-free'
- After patching, confirm the new version: uname -r — should display 6.2 or later
FAQ
What is CVE-2022-48872?
This is a use-after-free race condition in the Linux kernel's fastrpc (fast RPC) driver that occurs when reference counting fails to prevent a map structure from being accessed after it has been freed. A local attacker with user-level privileges can exploit this to escalate privileges or cause a denial of service.
Is CVE-2022-48872 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2022-48872?
Linux kernel versions 5.16 through 6.1.x are affected. Version 6.2 and later contain the fix.
How do I check if my server is vulnerable to CVE-2022-48872?
Run 'uname -r' to check your kernel version; if it shows 5.16 through 6.1.x and fastrpc is loaded (lsmod | grep fastrpc), your system is vulnerable.
Does Defensia detect CVE-2022-48872?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2022-48872 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/079c78c68714f7d8d58e66c477b0243b31806907
- https://git.kernel.org/stable/c/556dfdb226ce1e5231d8836159b23f8bb0395bf4
- https://git.kernel.org/stable/c/61a0890cb95afec5c8a2f4a879de2b6220984ef1
- https://git.kernel.org/stable/c/96b328d119eca7563c1edcc4e1039a62e6370ecb
- https://git.kernel.org/stable/c/b171d0d2cf1b8387c72c8d325c5d5746fa271e39
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48872. Free for 1 server.
Get started free