CVE-2022-48874·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.1.8
- Published
- 2024-08-21
Affected versions
From: 5.18
Until: 6.1.8
Fixed in: 6.1.8
How to fix this CVE
Update your Linux kernel to version 6.1.8 or later to resolve a critical race condition in the fastrpc subsystem that allows local privilege escalation. This vulnerability affects kernel versions 5.18 through 6.1.7 and requires immediate patching on systems where untrusted local users have access. Apply the kernel update and reboot your system to complete remediation.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r — ensure version is 6.1.8 or later (not in range 5.18.0-6.1.7)
- Verify fastrpc module is loaded: lsmod | grep fastrpc — this indicates the vulnerable component is active
- Search system logs for use-after-free or kernel panic messages: grep -i 'use.after.free\|fastrpc\|general protection fault' /var/log/kern.log /var/log/messages
- Confirm kernel was built with fastrpc support: grep CONFIG_FASTRPC /boot/config-$(uname -r) — should return CONFIG_FASTRPC=m or =y
FAQ
What is CVE-2022-48874?
This vulnerability is a race condition in the Linux kernel's fastrpc (Fast RPC) subsystem that occurs when multiple threads access the same memory structure without proper synchronization, leading to use-after-free and potential local privilege escalation.
Is CVE-2022-48874 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available, though local attackers with system access could potentially leverage it.
What versions of Kernel are affected by CVE-2022-48874?
Linux kernel versions 5.18.0 through 6.1.7 are vulnerable. Version 6.1.8 and later include the fix.
How do I check if my server is vulnerable to CVE-2022-48874?
Run 'uname -r' to check your kernel version — if it reports between 5.18 and 6.1.7, your system is vulnerable. Confirm fastrpc is loaded with 'lsmod | grep fastrpc'.
Does Defensia detect CVE-2022-48874?
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-48874 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48874. Free for 1 server.
Get started free