In the Linux kernel, the following vulnerability has been resolved: spi: mtk-snfi: unregister ECC engine on probe failure and remove() callback… (CVE-2026-63861)
A vulnerability in the Linux kernel's MediaTek SNFI SPI driver (mtk-snfi) was resolved by ensuring proper cleanup of the NAND ECC engine on probe failure and device removal. The issue was that the ECC engine was registered during probe but not unregistered on failure or removal, potentially leading to resource leaks or inconsistent states. The fix adds a managed cleanup action to automatically unregister the ECC engine when probe fails or the device is removed.
AI Analysis
Technical Summary
The Linux kernel's mtk-snfi SPI driver had a flaw where the on-host NAND ECC engine was registered during the mtk_snand_probe() function but lacked corresponding teardown during probe failure or device removal. This could cause the ECC engine to remain registered improperly. The patch introduces a devm-managed cleanup action that calls nand_ecc_unregister_on_host_hw_engine() automatically on probe failure and device removal, ensuring proper resource management.
Potential Impact
The vulnerability could lead to improper resource management in the kernel driver, potentially causing system instability or unexpected behavior related to the NAND ECC engine. There is no indication of direct security compromise or exploitation in the wild.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this issue by adding automatic cleanup of the ECC engine on probe failure and device removal. Users should update to the fixed kernel version once available. Patch status is not explicitly confirmed in the provided data; check the vendor or Linux kernel advisories for the exact fixed versions and apply updates accordingly.
In the Linux kernel, the following vulnerability has been resolved: spi: mtk-snfi: unregister ECC engine on probe failure and remove() callback… (CVE-2026-63861)
Description
A vulnerability in the Linux kernel's MediaTek SNFI SPI driver (mtk-snfi) was resolved by ensuring proper cleanup of the NAND ECC engine on probe failure and device removal. The issue was that the ECC engine was registered during probe but not unregistered on failure or removal, potentially leading to resource leaks or inconsistent states. The fix adds a managed cleanup action to automatically unregister the ECC engine when probe fails or the device is removed.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's mtk-snfi SPI driver had a flaw where the on-host NAND ECC engine was registered during the mtk_snand_probe() function but lacked corresponding teardown during probe failure or device removal. This could cause the ECC engine to remain registered improperly. The patch introduces a devm-managed cleanup action that calls nand_ecc_unregister_on_host_hw_engine() automatically on probe failure and device removal, ensuring proper resource management.
Potential Impact
The vulnerability could lead to improper resource management in the kernel driver, potentially causing system instability or unexpected behavior related to the NAND ECC engine. There is no indication of direct security compromise or exploitation in the wild.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this issue by adding automatic cleanup of the ECC engine on probe failure and device removal. Users should update to the fixed kernel version once available. Patch status is not explicitly confirmed in the provided data; check the vendor or Linux kernel advisories for the exact fixed versions and apply updates accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-g8cm-gmx3-562c
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63861"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27ac2a4a8d598913096a
Added to database: 07/19/2026, 19:38:20 UTC
Last enriched: 07/19/2026, 20:15:43 UTC
Last updated: 07/20/2026, 17:26:47 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.