Skip to main content
← All vulnerabilities
CVE-2026-98834

mtd: core: avoid double-free of OTP NVMEM device

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.16, 6.2, 6.3, 6.4, 7.2.10
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux 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 Linux

    6.4

  • KernelLinux

    From 6.4.0 · fixed in 7.2.10

References 2

git.kernel.org