CVE-2022-49388·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ubi: ubi_create_volume: Fix use-after-free when volume creation failed There is an use-after-free problem for 'eba_tbl' in ubi_create_volume()'s error handling path: ubi_eba_replace_table(vol, eba_tbl) vol->eba_tbl = tbl out_mapping: ubi_eba_destroy_table(eba_tbl) // Free 'eba_tbl' out_unlock: put_device(&vol->dev) vol_release kfree(tbl->entries) // UAF Fix it by removing redundant 'eba_tbl' releasing. Fetch a reproducer in [Link].
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.18.4
- Published
- 2025-02-26
Affected versions
From: 5.18
Until: 5.18.4
Fixed in: 5.18.4
How to fix this CVE
Update your Linux kernel to version 5.18.4 or later to resolve a use-after-free vulnerability in the UBI volume creation error handling path. This flaw can cause memory corruption when volume creation fails, potentially leading to system instability or privilege escalation. Apply the kernel update and reboot your system to complete the remediation.
sudo dnf upgrade kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r (look for versions between 5.18 and 5.18.3)
- Verify UBI module is loaded: lsmod | grep ubi (confirm if UBI subsystem is in use)
- Review kernel logs for UBI-related errors: sudo journalctl -k | grep -i ubi
- After patching, confirm kernel version: uname -r (should be 5.18.4 or higher)
FAQ
What is CVE-2022-49388?
CVE-2022-49388 is a use-after-free vulnerability in the Linux kernel's UBI (Unsorted Block Image) subsystem. The flaw occurs in error handling during volume creation, where memory is freed twice, allowing potential memory corruption or privilege escalation.
Is CVE-2022-49388 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and has no publicly available exploit code.
What versions of Kernel are affected by CVE-2022-49388?
Linux kernel versions 5.18 through 5.18.3 are vulnerable. Version 5.18.4 and later contain the fix.
How do I check if my server is vulnerable to CVE-2022-49388?
Run 'uname -r' to check your kernel version. If it shows 5.18.0 through 5.18.3, your system is vulnerable. If you see 5.18.4 or higher, or any kernel version outside the 5.18.x range, you are not affected by this specific CVE.
Does Defensia detect CVE-2022-49388?
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-49388 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1174ab8ba36a48025b68b5ff1085000b1e510217
- https://git.kernel.org/stable/c/25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9
- https://git.kernel.org/stable/c/5ff2514e4fb55dcf3d88294686040ca73ea0c1a2
- https://git.kernel.org/stable/c/6d8d3f68cbecfd31925796f0fb668eb21ab06734
- https://git.kernel.org/stable/c/8302620aeb940f386817321d272b12411ae7d39f
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49388. Free for 1 server.
Get started free