mtd: virt_concat: fix use-after-free in mtd_virt_concat_destroy_joins()
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_joins()
mtd_concat_destroy() frees item->concat so calling mtd_virt_concat_put_mtd_devices(item->concat) leads to a use after free.
Fix this by moving mtd_virt_concat_put_mtd_devices() before mtd_concat_destroy()
From the CVE record · Linux
The Linux kernel can use freed memory when mtd_virt_concat_destroy_joins() accesses an item after mtd_concat_destroy() frees it. The input does not describe how an attacker could trigger this, whether network or local access or authentication is needed, or whether user interaction is required.
Engineers running Linux kernels with the affected MTD virt_concat code should check their versions; affected versions are not specified.