CVE-2026-99458: mtd: virt-concat: unlink discarded items before freeing
In the Linux kernel, the following vulnerability has been resolved:
mtd: virt-concat: unlink discarded items before freeing
mtdvirtconcatdestroyitems() frees each item without removing it from concatnodelist. listforeachentrysafe() protects the current traversal, but concatnodelist still points to the freed items afterward.
The function also unwinds errors from mtdvirtconcatnodecreate().
A later initialization can traverse a freed item in mtdispartconcat(), causing a use-after-free.
Unlink each item before freeing it.