{"affected":[{"defaultStatus":"unaffected","product":"Linux","source":"CNA: Linux","vendor":"Linux","versions":[{"lessThan":"b1f78dc4a6869e30ff64345a5d3e7da1b6da0061","status":"affected","version":"93c08951d7070134b7415ca4abd0d25876aa653b","versionType":"git"},{"lessThan":"1dfe90daee6080b088b65620ff690a56f59ddea2","status":"affected","version":"006764e33fe9cff72f8a68ce1dab570d93662c96","versionType":"git"},{"lessThan":"ffe21a3545b439e7b11578a701c22a847c149561","status":"affected","version":"19bfa9ebebb5ec0695def57eb1d80de7e9cab369","versionType":"git"},{"lessThan":"e1e96aca1bdf391e2f49531c270ffc134e5b49a5","status":"affected","version":"19bfa9ebebb5ec0695def57eb1d80de7e9cab369","versionType":"git"},{"lessThan":"f98ae09c727dcf34f745c875661c64b642e4abfa","status":"affected","version":"19bfa9ebebb5ec0695def57eb1d80de7e9cab369","versionType":"git"},{"lessThan":"820f983d641937a787e841ee4b93501f69f5683e","status":"affected","version":"19bfa9ebebb5ec0695def57eb1d80de7e9cab369","versionType":"git"},{"lessThan":"9d4af746af8ce27eefc2338b2feaa1e01f28b6c3","status":"affected","version":"19bfa9ebebb5ec0695def57eb1d80de7e9cab369","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","source":"CNA: Linux","vendor":"Linux","versions":[{"status":"affected","version":"6.6"},{"lessThan":"6.6","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.148","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.101","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.42","versionType":"semver"},{"lessThanOrEqual":"7.1.*","status":"unaffected","version":"7.1.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.2","versionType":"original_commit_for_fix"}]}],"cveId":"CVE-2026-68416","cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: fix double free and WARN_ON in add_mtd_device() error paths\n\nWhen device_register() or mtd_nvmem_add() fails inside\nadd_mtd_device() for a partition, the error handling triggers\nmtd_release() via put_device() or device_unregister(). mtd_release()\ncalls release_mtd_partition() which frees the mtd_info structure.\nHowever, callers such as mtd_add_partition() and add_mtd_partitions()\nalso call free_partition() in their error paths, resulting in a double\nfree.\n\nAdditionally, release_mtd_partition() hits WARN_ON(!list_empty(\n&mtd->part.node)) because the partition node is still linked in the\nparent's partitions list when the release callback fires from the\nadd_mtd_device() error path.\n\nFix this by overriding dev->type and dev->release before put_device()\nin the error paths, so that device_release() invokes a no-op function\ninstead of mtd_release(). For the mtd_nvmem_add() failure case,\ndevice_unregister() is replaced with device_del() to separate the\ndevice removal from the final kobject reference drop, allowing the\noverride to take effect before put_device() is called.\n\nThe callers' error paths (list_del + free_partition) remain the sole\nowners of mtd_info lifetime on add_mtd_device() failure, which is the\nexpected contract.\n\nThe normal partition teardown path is not affected: del_mtd_device()\ngoes through kref_put() -> mtd_device_release() -> device_unregister()\nwith dev->type still set to &mtd_devtype, so mtd_release() ->\nrelease_mtd_partition() continues to work correctly for the regular\nremoval case.","epss":{"date":"2026-11-06","percentile":0.05308,"score":0.00161},"exploits":[],"kev":null,"metrics":[],"modifiedAt":1793985572480,"publishedAt":1786363476582,"references":[{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/b1f78dc4a6869e30ff64345a5d3e7da1b6da0061"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/1dfe90daee6080b088b65620ff690a56f59ddea2"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/ffe21a3545b439e7b11578a701c22a847c149561"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/e1e96aca1bdf391e2f49531c270ffc134e5b49a5"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/f98ae09c727dcf34f745c875661c64b642e4abfa"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/820f983d641937a787e841ee4b93501f69f5683e"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/9d4af746af8ce27eefc2338b2feaa1e01f28b6c3"},{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"url":"https://git.kernel.org/stable/c/1dfe90daee6080b088b65620ff690a56f59ddea2"},{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"url":"https://git.kernel.org/stable/c/820f983d641937a787e841ee4b93501f69f5683e"},{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"url":"https://git.kernel.org/stable/c/9d4af746af8ce27eefc2338b2feaa1e01f28b6c3"},{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"url":"https://git.kernel.org/stable/c/b1f78dc4a6869e30ff64345a5d3e7da1b6da0061"},{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"url":"https://git.kernel.org/stable/c/e1e96aca1bdf391e2f49531c270ffc134e5b49a5"},{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"url":"https://git.kernel.org/stable/c/f98ae09c727dcf34f745c875661c64b642e4abfa"},{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"url":"https://git.kernel.org/stable/c/ffe21a3545b439e7b11578a701c22a847c149561"}],"remediation":[],"revision":"e9a67606fedbe3b8dd6e40463213b017318531d5780bd1d92ad1a27595aa4072","sources":[{"modifiedAt":1793984116107,"name":"CNA: Linux","retrievedAt":1793985997681,"url":"https://www.cve.org/CVERecord?id=CVE-2026-68416"},{"modifiedAt":1793985572480,"name":"NVD","retrievedAt":1793989650601,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68416"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1793986040314,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-68416"}],"ssvc":{"assessedAt":1793983746259,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"mtd: fix double free and WARN_ON in add_mtd_device() error paths","updatedAt":1793989650601}