CVE-2022-49388

ubi: ubi_create_volume: Fix use-after-free when volume creation failed

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 02:11 AM UTC
Updated: June 17, 2026 at 05:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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].

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.12 ≤ v < 4.14.2834.12 ≤ v < 4.19.2474.12 ≤ v < 5.10.1224.12 ≤ v < 5.15.474.12 ≤ v < 5.17.154.12 ≤ v < 5.18.44.12 ≤ v < 5.194.12 ≤ v < 5.4.1984.15 ≤ v < 4.19.2474.20 ≤ v < 5.4.1985.11 ≤ v < 5.15.475.16 ≤ v < 5.17.155.18 ≤ v < 5.18.45.5 ≤ v < 5.10.1224.12493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec
Vendor states this is fixed in 1174ab8ba36a48025b68b5ff1085000b1e510217 (fixed)
Vendor states this is fixed in 25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9 (fixed)
Vendor states this is fixed in 5ff2514e4fb55dcf3d88294686040ca73ea0c1a2 (fixed)
Vendor states this is fixed in 6d8d3f68cbecfd31925796f0fb668eb21ab06734 (fixed)
Vendor states this is fixed in 8302620aeb940f386817321d272b12411ae7d39f (fixed)
Vendor states this is fixed in 8c03a1c21d72210f81cb369cc528e3fde4b45411 (fixed)
Vendor states this is fixed in abb67043060f2bf4c03d7c3debb9ae980e2b6db3 (fixed)
Vendor states this is fixed in e27ecf325e51abd06aaefba57a6322a46fa4178b (fixed)
Vendor states this is fixed in 4.12 (unaffected)
Vendor states this is fixed in 4.14.283 (unaffected)
Vendor states this is fixed in 4.19.247 (unaffected)
Vendor states this is fixed in 5.10.122 (unaffected)
Vendor states this is fixed in 5.15.47 (unaffected)
Vendor states this is fixed in 5.17.15 (unaffected)
Vendor states this is fixed in 5.18.4 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.198 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1174ab8ba36a48025b68b5ff1085000b1e510217
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5ff2514e4fb55dcf3d88294686040ca73ea0c1a2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6d8d3f68cbecfd31925796f0fb668eb21ab06734
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8302620aeb940f386817321d272b12411ae7d39f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8c03a1c21d72210f81cb369cc528e3fde4b45411
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/abb67043060f2bf4c03d7c3debb9ae980e2b6db3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e27ecf325e51abd06aaefba57a6322a46fa4178b

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card