CVE-2022-49388

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

High · published February 26, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
20.6
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00291 · 20.6th percentile
Published
2025-02-26T02:11Z
EPSS history
Timeline
  • 26 FEB 02:11Z
    ubi: ubi_create_volume: Fix use-after-free when volume creation failed
    cvelistv5