In the Linux kernel, the following vulnerability has been resolved:
mtd: parsers: Fix memory leak in mtdparsertplinksafeloaderparse()
The function mtdparsertplinksafeloaderparse() allocates buf via mtdparsertplinksafeloaderreadtable(). If the allocation for parts[idx].name fails inside the loop, the code jumps to the errfree label without freeing buf, leading to a memory leak.
Fix this by freeing the temporary buffer buf in the err_free label.
Compile tested only. Issue found using a prototype static analysis tool and code review.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45921.json"
}