CVE-2026-143096

Source
https://cve.org/CVERecord?id=CVE-2026-143096
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143096.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143096
Downstream
Published
2026-12-03T09:19:16Z
Modified
2026-12-03T11:01:19Z
Summary
spi: axi-spi-engine: Start the program length at zero
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143096.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
69050f8d6d075dc01af7a5f2f550a8067510366f
Fixed
20e028e01d62557de76c8da648ae52e0ad487c27
Fixed
2a490521d74ac76e5eb3c9a69d928a4c76dd3f78

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143096.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143096.json"