Linux kernel use-after-free in mtd virt-concat item cleanup
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: unlink discarded items before freeing
mtd_virt_concat_destroy_items() frees each item without removing it from concat_node_list. list_for_each_entry_safe() protects the current traversal, but concat_node_list still points to the freed items afterward.
The function also unwinds errors from mtd_virt_concat_node_create().
A later initialization can traverse a freed item in mtd_is_part_concat(), causing a use-after-free.
Unlink each item before freeing it.
From the CVE record · Linux
The Linux kernel’s mtd virt-concat code can leave freed items on a list during cleanup. A later initialization can traverse one of those items, causing a use-after-free. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running Linux kernels that use mtd virt-concat should check their versions; affected versions are not specified.