ubi: ubi_create_volume: Fix use-after-free when volume creation failed
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec · < e27ecf325e51abd06aaefba57a6322a46fa4178b| No fix yet |
| Linux Linux |
|
|
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].
From the CVE record · Linux
The Linux kernel's UBI volume creation error path has a use-after-free when volume creation fails. The input does not specify attacker access requirements, authentication needs, or user interaction.
Teams running Linux kernels with UBI should check their versions; affected versions are not specified.