CVE-2026-63861

spi: mtk-snfi: unregister ECC engine on probe failure and remove() callback

Published Jul 19, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

During kernel initialization the mtk_snand driver registers an on-host NAND ECC engine to accelerate error correction. The original code failed to unregister that engine when the probe returned an error or when the device was removed, leaving the ECC hardware reference allocated. The lingering reference can leave the hardware registers and kernel state in an uninitialized or inconsistent condition, which in turn could lead to system instability or a kernel crash if the same resources are later reused or overwritten. This flaw is strictly about missing cleanup; it does not expose a direct exploitation path, but the consequence is a denial of service through resource leakage.

Affected Systems

The affected component is the Linux kernel for all builds that contain the mtk‑snfi SPI NAND driver. The specific affected kernel versions are not enumerated in the data, so any pre‑patch kernel that includes this driver is potentially impacted. Based on the description, it is inferred that any build containing the driver and lacking the new cleanup action is vulnerable.

Risk and Exploitability

The EPSS score is below 1 %, indicating a very low probability of exploitation. The CVSS score is 5.5, indicating moderate severity. The vulnerability is not listed in the CISA KEV catalog. Because the flaw involves kernel‑level resource management, it is likely to be noticed by an attacker with local or privileged access who can trigger or observe probe failures or device removal, potentially causing a kernel crash or denial of service. While no public exploit exists, the low EPSS score and lack of a remote exploitation vector suggest moderate overall risk, although the impact of a kernel crash warrants timely patching.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the devm cleanup change, which removes the ECC engine automatically on probe failure and device removal.
  • If an immediate kernel update is not feasible, blacklist or disable the mtk‑snfi driver so the affected ECC engine is never registered.
  • Ensure that device probing occurs only within controlled environments to reduce the likelihood of probe failures triggering the resource leak.
  • Follow CWE‑772 guidelines by ensuring all resources are properly released on every code path in future driver development.

Generated by OpenCVE AI on October 26, 2026 at 18:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8574-1 Linux kernel (GCP FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-1 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8596-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8608-1 Linux kernel (Azure FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-3 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8665-1 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
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.
Title spi: mtk-snfi: unregister ECC engine on probe failure and remove() callback
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jul 19, 2026, 2:04 PM
Reserved
Jul 19, 2026, 7:54 AM
Status
Analyzed
Published
Jul 19, 2026, 3:16 PM
Modified
Oct 26, 2026, 5:07 PM
Severity
Public date
Jul 19, 2026, 12:00 AM