CVE-2022-49388: ubi: ubi_create_volume: Fix use-after-free when volume creation failed
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].
Security readout for executives and security teams
Plain-English summary
CVE-2022-49388 is a Linux kernel memory-safety flaw in UBI volume creation error handling. A local user with some privileges could potentially trigger a use-after-free, with confidentiality, integrity, and availability impact rated high by CVSS.
Executive priority
Prioritize patching affected Linux systems where local users or services can interact with UBI. Business urgency is higher for shared, embedded, or appliance environments because successful exploitation could affect system stability and kernel-level security boundaries.
Technical view
The flaw is CWE-416 in ubi_create_volume(). On a volume creation failure path, eba_tbl could be installed into vol->eba_tbl and then freed, allowing later cleanup to reference freed memory. The kernel fix removes the redundant eba_tbl release.
Likely exposure
Exposure is most likely on systems running affected Linux kernel versions with the UBI subsystem present and reachable. This is especially relevant to embedded or flash-backed Linux environments. The CVE lists local attack vector and low privileges required.
Exploitation context
The source bundle does not show CISA KEV listing or public active exploitation. It mentions a reproducer link in the kernel description, but no weaponized exploitation evidence is provided here.
Researcher notes
The record provides strong root-cause detail and upstream stable commit references, but product-specific distribution mappings are incomplete in the bundle. Validate against downstream vendor kernels rather than assuming version numbers alone prove exposure or remediation.
Mitigation direction
Update to a vendor kernel containing the referenced stable fixes.
For appliances or embedded devices, obtain firmware with the corrected Linux kernel.
Restrict local access to UBI management interfaces until patched.
Track distribution advisories for exact package-level fixed versions.
Validation and detection
Inventory kernels against the affected versions listed in the CVE record.
Confirm the running kernel includes one of the referenced stable commits.
Identify systems with UBI enabled, loaded, or operationally required.
Review local access paths to UBI administration capabilities.
Check kernel logs for UBI-related crashes during failed volume creation.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-416: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
9Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.