# CVE-2026-23431: spi: amlogic-spisg: Fix memory leak in aml_spisg_probe()

- 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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-04-03T15:15:17.355Z
- Modified: 2026-07-24T21:10:00.143Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

spi: amlogic-spisg: Fix memory leak in aml_spisg_probe()

In aml_spisg_probe(), ctlr is allocated by
spi_alloc_target()/spi_alloc_host(), but fails to call
spi_controller_put() in several error paths. This leads
to a memory leak whenever the driver fails to probe after
the initial allocation.

Convert to use devm_spi_alloc_host()/devm_spi_alloc_target()
to fix the memory leak.

(As written by CVE List.)

## Affected

- Linux Linux: from cef9991e04aed3305c61c392e880f6e01a0c2ea4 before bec21d97c968a4806939eb2946df49ea6c341bde; from cef9991e04aed3305c61c392e880f6e01a0c2ea4 before 8e28a01b69f7ea8df7ceb15470cfe643b2828f4f; from cef9991e04aed3305c61c392e880f6e01a0c2ea4 before b8db9552997924b750e727a625a30eaa4603bbb9; 6.17 (not affected: before 6.17; from 6.18.20 up to 6.18.*; from 6.19.10 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.17.1 before 6.18.20; from 6.19 before 6.19.10; 6.17; 7.0

## References

- <https://git.kernel.org/stable/c/bec21d97c968a4806939eb2946df49ea6c341bde> (patch)
- <https://git.kernel.org/stable/c/8e28a01b69f7ea8df7ceb15470cfe643b2828f4f> (patch)
- <https://git.kernel.org/stable/c/b8db9552997924b750e727a625a30eaa4603bbb9> (patch)

## Sources

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

---

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