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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-01T14:15:09.279Z
- Modified: 2026-11-11T23:10:00.263Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4670db6f32e9379f5ab6c9bb2a6787cd9b9230a9 before ee4c064e37d4d0ddc5a7580933dbe79a2c6acafc; from 4670db6f32e9379f5ab6c9bb2a6787cd9b9230a9 before 5e11741aec3b242a197250b473c37b58f53a16b6; from 4670db6f32e9379f5ab6c9bb2a6787cd9b9230a9 before b0dc7e7c56573e7a52080f25f3179a45f3dd7e6f; 6.18 (not affected: before 6.18; from 6.18.22 up to 6.18.*; from 6.19.12 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.18.1 before 6.18.22; from 6.19 before 6.19.12; 6.18; 7.0

## References

- <https://git.kernel.org/stable/c/ee4c064e37d4d0ddc5a7580933dbe79a2c6acafc> (patch)
- <https://git.kernel.org/stable/c/5e11741aec3b242a197250b473c37b58f53a16b6> (patch)
- <https://git.kernel.org/stable/c/b0dc7e7c56573e7a52080f25f3179a45f3dd7e6f> (patch)

## Sources

- CVE List: [CVE-2026-31783](https://www.cve.org/CVERecord?id=CVE-2026-31783), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-31783](https://nvd.nist.gov/vuln/detail/CVE-2026-31783), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31783 · Whole record: https://cve.day/CVE-2026-31783.json · Rebuilt by cve.day 2026-11-25T22:59:20.385Z
