mtd: virt_concat: fix use-after-free in mtd_virt_concat_destroy()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mtd: virt_concat: fix use-after-free in mtd_virt_concat_destroy()
mtd_concat_destroy() frees item->concat so calling mtd_virt_concat_put_mtd_devices(item->concat) after that leads to a use-after-free.
Fix it by moving mtd_virt_concat_put_mtd_devices() before mtd_concat_destroy().
From the CVE record · Linux
The Linux kernel's mtd_virt_concat_destroy() can access a concat object after it has been freed. The input does not establish whether an attacker can trigger this flaw, what they could achieve, or whether access or user interaction is required.
Engineers running Linux kernels that include mtd virt_concat should check whether their version is affected; affected versions were not provided.