Bug 2589683 (CVE-2026-143096) - CVE-2026-143096 kernel: kernel: Denial of service via improper length counter initialization in AXI SPI driver
Summary: CVE-2026-143096 kernel: kernel: Denial of service via improper length counter...
Keywords:
Status: NEW
Alias: CVE-2026-143096
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-03 09:29 UTC by OSIDB Bzimport
Modified: 2026-12-03 13:36 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-03 09:29:14 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

spi_engine_optimize_message() allocates the program with kzalloc_flex(),
which sets the __counted_by() counter "length" to the allocated size when
the compiler supports __builtin_counted_by_ref(). The program is then
filled by spi_engine_program_add_cmd(), 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=x86_64 defconfig with CONFIG_SPI_AXI_SPI_ENGINE=m and
W=1, with GCC 16.2.0.


Note You need to log in before you can comment on or make changes to this bug.