CVE-2026-45921
Awaiting Analysis Awaiting Analysis - Queue
Memory Leak in Linux Kernel MTD Parser

Publication date: 2026-05-27

Last updated on: 2026-05-27

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: mtd: parsers: Fix memory leak in mtd_parser_tplink_safeloader_parse() The function mtd_parser_tplink_safeloader_parse() allocates buf via mtd_parser_tplink_safeloader_read_table(). If the allocation for parts[idx].name fails inside the loop, the code jumps to the err_free 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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-27
Last Modified
2026-05-27
Generated
2026-06-16
AI Q&A
2026-05-27
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is a memory leak in the Linux kernel's mtd parser, specifically in the function mtd_parser_tplink_safeloader_parse().

The function allocates a buffer (buf) via mtd_parser_tplink_safeloader_read_table(). If the allocation for parts[idx].name fails inside a loop, the code jumps to an error handling label (err_free) without freeing the previously allocated buffer, causing a memory leak.

The fix involves freeing the temporary buffer buf in the err_free label to prevent the memory leak.

Impact Analysis

A memory leak vulnerability can lead to increased memory usage over time, potentially causing system instability or crashes if the leaked memory accumulates.

In this specific case, the leak occurs in the Linux kernel's mtd parser, which could affect systems using this component, possibly degrading performance or reliability.

Mitigation Strategies

The vulnerability is fixed by updating the Linux kernel to a version where the memory leak in the mtd_parser_tplink_safeloader_parse() function has been resolved.

Specifically, ensure your system is running a kernel version that includes the fix which frees the temporary buffer buf in the err_free label to prevent the memory leak.

Compliance Impact

The provided information does not specify any impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-45921. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart