mtd: core: avoid double-free of OTP NVMEM device (Linux Linux)

CVE-2026-98834
Not available

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

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.

References

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 < 4b87d9a89934402b4d29aac77d4e41fb7aaf237a
affected : ≥ e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 < cecf007418b93a2cbc94269e07fe2fb28f54d8fb
affected : ≥ e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 < 26300879cd8e4612dce66bb8f6ff7cd35fcf3e59
affected : 6d1af517817a760d7af3dee0fc4603645485495c
affected : f1b4affca1e13706ca2eb075bf6775421236d7d1
affected : 949476b8601bde5459048eebdf457c9db20addd8
affected : dd6c85f98ff33b009b819090268cbf679dc208b9
affected : ≥ 5.15.111 < 5.16
affected : ≥ 6.1.28 < 6.2
affected : ≥ 6.2.15 < 6.3
affected : ≥ 6.3.2 < 6.4
Other versions : unaffected
Linux · Linux
affected : 6.4
unaffected : ≥ 0 < 6.4
unaffected : ≥ 6.18.66 ≤ 6.18.*
unaffected : ≥ 7.2.10 ≤ 7.2.*
unaffected : ≥ 7.3 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD