CVE-2022-49388 Details
Description
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].
A use-after-free vulnerability has been identified in the Linux kernel's UBI (Unsorted Block Image) subsystem, specifically within the volume creation process. The issue arises in the error handling path of the 'ubi_create_volume' function, where the 'eba_tbl' (Erase Block Allocation Table) is improperly managed. When volume creation fails, the table is replaced and freed, but the pointer is not correctly updated, leading to a use-after-free condition. This vulnerability could potentially be exploited to cause memory corruption or arbitrary code execution.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1174ab8ba36a48025b68b5ff1085000b1e510217 | kernel.org | Patch |
| https://git.kernel.org/stable/c/25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/5ff2514e4fb55dcf3d88294686040ca73ea0c1a2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6d8d3f68cbecfd31925796f0fb668eb21ab06734 | kernel.org | Patch |
| https://git.kernel.org/stable/c/8302620aeb940f386817321d272b12411ae7d39f | kernel.org | Patch |
| https://git.kernel.org/stable/c/8c03a1c21d72210f81cb369cc528e3fde4b45411 | kernel.org | Patch |
| https://git.kernel.org/stable/c/abb67043060f2bf4c03d7c3debb9ae980e2b6db3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/e27ecf325e51abd06aaefba57a6322a46fa4178b | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.12, < 4.14.283 >= 4.15, < 4.19.247 >= 4.20, < 5.4.198 >= 5.5, < 5.10.122 >= 5.11, < 5.15.47 >= 5.16, < 5.17.15 >= 5.18, < 5.18.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 25, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | CVE Modified | CISA-ADP |
| Feb 26, 2025 | New CVE Received | kernel.org |