mtd: core: avoid double-free of OTP NVMEM device
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.16, 6.2, 6.3, 6.4, 7.2.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- 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