Description
In the Linux kernel, the following vulnerability has been resolved:

spi: amlogic: spifc-a4: unregister ECC engine on probe failure and remove() callback

aml_sfc_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.
Published: 2026-05-01
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

During driver initialization the Amlogic spifc-a4 SPI NAND flash controller registers an on-host ECC engine; however, if the probe fails or the device is later removed, the engine is never unregistered. This missing cleanup results in a kernel resource that remains allocated, which can degrade kernel stability or exhaust memory if repeatedly triggered. The weakness is a failure to release a resource.

Affected Systems

The Linux kernel contains the spifc-a4 driver that implements this functionality. Any distribution running a kernel that includes the driver before the patch that adds a devm cleanup action is affected. The issue is present in all kernel versions that contain the unpatched driver code.

Risk and Exploitability

The CVSS score is 5.5, and the EPSS score is <1%. The issue is not listed in the CISA KEV catalog. Based on the description, it is inferred that exploiting the resource leak requires local kernel access or the ability to repeatedly trigger probe failures or device removal, which makes remote exploitation unlikely. Nevertheless, repeated failures could lead to a denial of service if an attacker can repeatedly cause probe crashes.

Generated by OpenCVE AI on May 12, 2026 at 01:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the patch for the Amlogic spifc-a4 driver (commit 5e11741…).
  • If an update cannot be applied immediately, consider disabling the spifc-a4 driver to prevent the resource leak.
  • Monitor system logs for repeated NAND device probe failures and verify that the ECC engine is unregistered after device removal.

Generated by OpenCVE AI on May 12, 2026 at 01:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 12 May 2026 00:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772

Mon, 11 May 2026 21:00:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:6.18:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
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'}


Sat, 02 May 2026 12:15:00 +0000


Sat, 02 May 2026 12:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772

Fri, 01 May 2026 14:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: spi: amlogic: spifc-a4: unregister ECC engine on probe failure and remove() callback aml_sfc_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: amlogic: spifc-a4: 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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-11T22:15:43.675Z

Reserved: 2026-03-09T15:48:24.141Z

Link: CVE-2026-31783

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-01T15:16:41.813

Modified: 2026-05-11T20:47:03.257

Link: CVE-2026-31783

cve-icon Redhat

Severity :

Publid Date: 2026-05-01T00:00:00Z

Links: CVE-2026-31783 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-12T01:30:04Z

Weaknesses