CVE-2026-143096: spi: axi-spi-engine: Start the program length at zero

Published Dec 3, 2026
·
Updated

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

spi: axi-spi-engine: Start the program length at zero

spiengineoptimizemessage() allocates the program with kzallocflex(), which sets the countedby() counter "length" to the allocated size when the compiler supports builtincountedbyref(). The program is then filled by spiengineprogramaddcmd(), which increments "length" and stores at length - 1, expecting it to start at zero as it did when the program came from kzalloc().

Reset "length" after the allocation, since it is a "usage" counter, not a "total allocation" counter.

Build tested ARCH=x8664 defconfig with CONFIGSPIAXISPIENGINE=m and W=1, with GCC 16.2.0.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In spi_engine_optimize_message(), reset the program's length counter to zero after allocation; kzalloc_flex() initializes the __counted_by() counter to the allocated size.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:19 AM
Data Sourced
via MITRE·09:19 AM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203