nvmem: core: fix use-after-free bugs in error paths
- 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 6.6.160, 6.12.94, 6.18.36, 7.0.13
- 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: nvmem: core: fix use-after-free bugs in error paths Fix several instances of error paths in which we call __nvmem_device_put() - which may end up freeing the underlying memory and other resources - and then keep on using the nvmem structure. Always put the reference to the nvmem device as the last step before returning the error code.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From e888d445ac33a5b0288d670ecd970908b13f07cd · fixed in 6cdcf0d16c80900f42d60252480cd131c1a83d23; From e888d445ac33a5b0288d670ecd970908b13f07cd · fixed in e0d38bf47a72da2f02c9fa6f752cd66d977cd7f7; From e888d445ac33a5b0288d670ecd970908b13f07cd · fixed in cb85ef5a227b3662b88f4d849a1aad43bfe7f5ae; From e888d445ac33a5b0288d670ecd970908b13f07cd · fixed in 40e2a459c0dd1333b2343831480a0ad80dc07614; From e888d445ac33a5b0288d670ecd970908b13f07cd · fixed in 5b6b6fc491899d583eaa75344e094796ae9b530b
- Linux Linux
4.20
- KernelLinux
From 4.20.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.94; From 6.13.0 · fixed in 6.18.36; From 6.19.0 · fixed in 7.0.13