spi: mtk-snfi: unregister ECC engine on probe failure and remove() callback
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Original description
In the Linux kernel, the following vulnerability has been resolved:
spi: mtk-snfi: unregister ECC engine on probe failure and remove() callback
mtk_snand_probe() registers the on-host NAND ECC engine, but teardown was missing from both probe unwind and remove-time cleanup. Add a devm cleanup action after successful registration so nand_ecc_unregister_on_host_hw_engine() runs automatically on probe failures and during device removal.
From the CVE record · Linux
References
- git.kernel.org/stable/c/6aea4a99410615912d80a4ba0827c4e8d4a8312dPatch
- git.kernel.org/stable/c/3e79a563377a319d016ed0d3cd8c43171670c0f3Patch
- git.kernel.org/stable/c/86357e1d0157d8408b78f8768a69ab263d010316Patch
- git.kernel.org/stable/c/e0b049bd7b279d7b6ad22a637cddced93198a51bPatch
- git.kernel.org/stable/c/98cf4b58299e0c6a537c68cd32155d9e7569e7cbPatch
- git.kernel.org/stable/c/ab00febad191d7a4400aa1c3468279fb508258d4Patch
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63861.json
- nvd.nist.gov/vuln/detail/CVE-2026-63861
- git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git