# CVE-2026-98834: mtd: core: avoid double-free of OTP NVMEM device

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-18T15:49:46.003Z
- Modified: 2026-11-30T12:18:06.570Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 before 4b87d9a89934402b4d29aac77d4e41fb7aaf237a; from e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 before cecf007418b93a2cbc94269e07fe2fb28f54d8fb; from e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 before 26300879cd8e4612dce66bb8f6ff7cd35fcf3e59; 6d1af517817a760d7af3dee0fc4603645485495c; f1b4affca1e13706ca2eb075bf6775421236d7d1; 949476b8601bde5459048eebdf457c9db20addd8; dd6c85f98ff33b009b819090268cbf679dc208b9; from 5.15.111 before 5.16; from 6.1.28 before 6.2; from 6.2.15 before 6.3; from 6.3.2 before 6.4; 6.4 (not affected: before 6.4; from 6.18.66 up to 6.18.*; from 7.2.10 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/4b87d9a89934402b4d29aac77d4e41fb7aaf237a>
- <https://git.kernel.org/stable/c/cecf007418b93a2cbc94269e07fe2fb28f54d8fb>
- <https://git.kernel.org/stable/c/26300879cd8e4612dce66bb8f6ff7cd35fcf3e59>

## Sources

- CVE List: [CVE-2026-98834](https://www.cve.org/CVERecord?id=CVE-2026-98834), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-98834](https://nvd.nist.gov/vuln/detail/CVE-2026-98834), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-98834 · Whole record: https://cve.day/CVE-2026-98834.json · Rebuilt by cve.day 2026-11-30T12:32:13.573Z
