{"id":"CVE-2026-72171","state":"PUBLISHED","title":"mtd: slram: remove failed entries from the device list","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: slram: remove failed entries from the device list\n\nregister_device() links a new slram_mtdlist entry before allocating all\nof the state needed by the entry. If a later allocation, memremap(), or\nmtd_device_register() fails, the partially initialized entry remains on\nthe global list. A later cleanup can then dereference or free invalid\nstate from that failed entry.\n\nUnwind the partially initialized entry and clear the list tail on each\nfailure path after the entry has been linked.","publishedAt":"2026-08-15T05:53:37.070Z","updatedAt":"2026-08-17T05:41:09.326Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"9ee674ab10f755bbedbcbb8e76745d2bb8de88d1","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"e97415b8254d9cc131b7bb1c80fcf38123269b9a","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f40acf577bb0fb0829f285ecfeb27d817840601c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"200b8bc5b6065b02f3775cf131f14b8e1156a00a","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"2fd0cbbb34447ccddab67a2a638a07c6d94cae7a","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"d8dcbbfa0d695a5244059aa34a2e81f3e8df1082","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"bdcdfc2464659789032edfad15ff5f7a166f5d7b","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"36f1648644d769c496a8e47e53603e863e358d73","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/devices/slram.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/devices/slram.c"]}],"references":["https://git.kernel.org/stable/c/9ee674ab10f755bbedbcbb8e76745d2bb8de88d1","https://git.kernel.org/stable/c/e97415b8254d9cc131b7bb1c80fcf38123269b9a","https://git.kernel.org/stable/c/f40acf577bb0fb0829f285ecfeb27d817840601c","https://git.kernel.org/stable/c/200b8bc5b6065b02f3775cf131f14b8e1156a00a","https://git.kernel.org/stable/c/2fd0cbbb34447ccddab67a2a638a07c6d94cae7a","https://git.kernel.org/stable/c/d8dcbbfa0d695a5244059aa34a2e81f3e8df1082","https://git.kernel.org/stable/c/bdcdfc2464659789032edfad15ff5f7a166f5d7b","https://git.kernel.org/stable/c/36f1648644d769c496a8e47e53603e863e358d73"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/72xxx/CVE-2026-72171.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-72171","state":"PUBLISHED","datePublished":"2026-08-15T05:53:37.070Z","dateUpdated":"2026-08-17T05:41:09.326Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-09T03:40:39.910Z"},"containers":{"cna":{"title":"mtd: slram: remove failed entries from the device list","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: slram: remove failed entries from the device list\n\nregister_device() links a new slram_mtdlist entry before allocating all\nof the state needed by the entry. If a later allocation, memremap(), or\nmtd_device_register() fails, the partially initialized entry remains on\nthe global list. A later cleanup can then dereference or free invalid\nstate from that failed entry.\n\nUnwind the partially initialized entry and clear the list tail on each\nfailure path after the entry has been linked."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"9ee674ab10f755bbedbcbb8e76745d2bb8de88d1","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"e97415b8254d9cc131b7bb1c80fcf38123269b9a","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f40acf577bb0fb0829f285ecfeb27d817840601c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"200b8bc5b6065b02f3775cf131f14b8e1156a00a","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"2fd0cbbb34447ccddab67a2a638a07c6d94cae7a","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"d8dcbbfa0d695a5244059aa34a2e81f3e8df1082","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"bdcdfc2464659789032edfad15ff5f7a166f5d7b","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"36f1648644d769c496a8e47e53603e863e358d73","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/devices/slram.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/devices/slram.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9ee674ab10f755bbedbcbb8e76745d2bb8de88d1"},{"url":"https://git.kernel.org/stable/c/e97415b8254d9cc131b7bb1c80fcf38123269b9a"},{"url":"https://git.kernel.org/stable/c/f40acf577bb0fb0829f285ecfeb27d817840601c"},{"url":"https://git.kernel.org/stable/c/200b8bc5b6065b02f3775cf131f14b8e1156a00a"},{"url":"https://git.kernel.org/stable/c/2fd0cbbb34447ccddab67a2a638a07c6d94cae7a"},{"url":"https://git.kernel.org/stable/c/d8dcbbfa0d695a5244059aa34a2e81f3e8df1082"},{"url":"https://git.kernel.org/stable/c/bdcdfc2464659789032edfad15ff5f7a166f5d7b"},{"url":"https://git.kernel.org/stable/c/36f1648644d769c496a8e47e53603e863e358d73"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The flaw is only reachable through local module initialization (finit_module/init_module → init_slram → parse_cmdline → register_device) or the slram= boot parameter; there is no network, adjacent-wireless, or physical-device input path to this MTD driver registration code.\nAC:L - An attacker who can load the module controls map parameters and can reliably force register_device() to fail (e.g., memremap on an overlapping/invalid RAM region documented to fail), after which parse_cmdline deterministically calls unregister_devices() on the corrupt list entry.\nPR:L - Exploitation requires loading the slram module via finit_module/init_module, which checks CAP_SYS_MODULE; on kernels allowing unprivileged user namespaces this capability is available to a local unprivileged user, matching CNA guidance for module-init bugs rather than init-namespace root only.\nUI:N - No victim interaction is required; the attacker triggers module load with crafted parameters and the kernel fault occurs automatically on the register_device() failure cleanup path without anyone mounting filesystems or opening devices.\nS:U - Memory corruption occurs entirely within kernel context during module-init teardown of the slram driver; it does not cross VM/hypervisor, IOMMU, or other security boundaries into a separate authority.\nC:H - Failed entries leave NULL or dangling mtdinfo/priv pointers on slram_mtdlist, and unregister_devices() dereferences/frees that invalid state, constituting use-after-free and out-of-bounds kernel memory access that can expose reclaimed heap contents.\nI:H - The mtd_device_register() failure path frees mtdinfo and priv while the list node remains, so unregister_devices() performs double-free and use-after-free on those structures, which is heap corruption exploitable for arbitrary kernel writes and control-flow hijacking.\nA:H - unregister_devices() on a partially initialized entry can NULL-dereference mtdinfo, double-free kmalloc objects, or call mtd_device_unregister/memunmap on invalid pointers, reliably causing kernel oops or panic and repeatable denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:41:09.326Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.261"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.212"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}