{"id":"CVE-2026-45921","aliases":["CVE-2026-45921"],"related":[],"kind":"vulnerability","state":"published","title":"mtd: parsers: Fix memory leak in mtd_parser_tplink_safeloader_parse()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: parsers: Fix memory leak in mtd_parser_tplink_safeloader_parse()\n\nThe function mtd_parser_tplink_safeloader_parse() allocates buf via\nmtd_parser_tplink_safeloader_read_table(). If the allocation for\nparts[idx].name fails inside the loop, the code jumps to the err_free\nlabel without freeing buf, leading to a memory leak.\n\nFix this by freeing the temporary buffer buf in the err_free label.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: parsers: Fix memory leak in mtd_parser_tplink_safeloader_parse()\n\nThe function mtd_parser_tplink_safeloader_parse() allocates buf via\nmtd_parser_tplink_safeloader_read_table(). If the allocation for\nparts[idx].name fails inside the loop, the code jumps to the err_free\nlabel without freeing buf, leading to a memory leak.\n\nFix this by freeing the temporary buffer buf in the err_free label.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review.","source":"cvelist"}],"published":"2026-05-27T12:17:40.032Z","modified":"2026-06-24T17:22:07.937Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"00a3588084bee6f37bb2b1d343f96900cfe049bc","fixed":"0f5e62ea5c43146eacdc6861cb1022ffae1b79bc","status":"affected"},{"type":"git","introduced":"00a3588084bee6f37bb2b1d343f96900cfe049bc","fixed":"e97f5fac8ce9a6b9ec724c97d86b0985e915fdca","status":"affected"},{"type":"git","introduced":"00a3588084bee6f37bb2b1d343f96900cfe049bc","fixed":"ec121ad626c319085f6d40a52cd04e99b4554926","status":"affected"},{"type":"git","introduced":"00a3588084bee6f37bb2b1d343f96900cfe049bc","fixed":"971e9c53aed82f17a9c6a65daa4e21cc15eba5b1","status":"affected"},{"type":"git","introduced":"00a3588084bee6f37bb2b1d343f96900cfe049bc","fixed":"980ce2b02dd06a4fdf5fee38b2e14becf9cf7b8b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"6.6.128","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.14","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.4","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.2","fixed":"6.6.128"},{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.14"},{"status":"affected","introduced":"6.19","fixed":"6.19.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0f5e62ea5c43146eacdc6861cb1022ffae1b79bc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e97f5fac8ce9a6b9ec724c97d86b0985e915fdca","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec121ad626c319085f6d40a52cd04e99b4554926","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/971e9c53aed82f17a9c6a65daa4e21cc15eba5b1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/980ce2b02dd06a4fdf5fee38b2e14becf9cf7b8b","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45921","url":"https://www.cve.org/CVERecord?id=CVE-2026-45921","licence":"CVE Terms of Use","modified":"2026-05-27T12:17:40.032Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45921","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45921","licence":"Public domain","modified":"2026-06-24T17:22:07.937Z"}],"updatedAt":"2026-11-25T22:59:22.506Z","epss":{"score":0.00122,"percentile":0.02193,"date":"2026-12-01T12:00:22.000Z"}}