CVE-2026-45921

Source
https://cve.org/CVERecord?id=CVE-2026-45921
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45921.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-45921
Downstream
Published
2026-05-27T12:17:40.032Z
Modified
2026-06-26T11:56:18.250409467Z
Summary
mtd: parsers: Fix memory leak in mtd_parser_tplink_safeloader_parse()
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45921.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
00a3588084bee6f37bb2b1d343f96900cfe049bc
Fixed
0f5e62ea5c43146eacdc6861cb1022ffae1b79bc
Fixed
e97f5fac8ce9a6b9ec724c97d86b0985e915fdca
Fixed
ec121ad626c319085f6d40a52cd04e99b4554926
Fixed
971e9c53aed82f17a9c6a65daa4e21cc15eba5b1
Fixed
980ce2b02dd06a4fdf5fee38b2e14becf9cf7b8b

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45921.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.128
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.75
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.14
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45921.json"