CVE-2026-98834

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

State
Published
Severity
Not scored
Published
Oct 18, 2026
Updated
Oct 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 to before cecf007418b93a2cbc94269e07fe2fb28f54d8fbAffected
  • e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 to before 26300879cd8e4612dce66bb8f6ff7cd35fcf3e59Affected
  • 6d1af517817a760d7af3dee0fc4603645485495cAffected
  • f1b4affca1e13706ca2eb075bf6775421236d7d1Affected
  • 949476b8601bde5459048eebdf457c9db20addd8Affected
  • dd6c85f98ff33b009b819090268cbf679dc208b9Affected
  • 5.15.111 to before 5.16Affected
  • 6.1.28 to before 6.2Affected
  • 6.2.15 to before 6.3Affected
  • 6.3.2 to before 6.4Affected
LinuxLinux
  • 6.4Affected
  • before 6.4Not affected
  • 7.2.10 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.