mtd: core: avoid double-free of OTP NVMEM device
- CVE-2026-98834
- GHSA-cqw6-frjh-g7f6
- EUVD-2026-103774
Description
In the Linux kernel, the following vulnerability has been resolved: mtd: core: avoid double-free of OTP NVMEM device If factory OTP setup fails after the user OTP NVMEM device has been registered, mtd_otp_nvmem_add() unregisters the user device but leaves mtd->otp_user_nvmem set. On an error, the caller unregisters it again. For -EOPNOTSUPP, registration continues and normal teardown unregisters it again. Clear mtd->otp_user_nvmem after unregistering it.
Text from the CVE.org record.
Recommendation
Linux
- If you run a version from 6.2.15 to before 6.3update to 6.3 or laterMinor version change: check the release notes
- If you run a version from 6.1.28 to before 6.2update to 6.2 or laterMinor version change: check the release notes
- If you run a version from 5.15.111 to before 5.16update to 5.16 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 6.2.15 to before 6.3 6.3 from 6.1.28 to before 6.2 6.2 from 5.15.111 to before 5.16 5.16 from 6.3.2 to before 6.4 none stated 6.4 none stated before 6.4: not affected none stated from 6.18.66 up to 6.18.*: not affected none stated from 7.2.10 up to 7.2.*: not affected none stated and 1 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.