{"id":"CVE-2026-143096","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:17:41.023","lastModified":"2026-12-04T04:17:37.067","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: axi-spi-engine: Start the program length at zero\n\nspi_engine_optimize_message() allocates the program with kzalloc_flex(),\nwhich sets the __counted_by() counter \"length\" to the allocated size when\nthe compiler supports __builtin_counted_by_ref(). The program is then\nfilled by spi_engine_program_add_cmd(), which increments \"length\" and\nstores at length - 1, expecting it to start at zero as it did when the\nprogram came from kzalloc().\n\nReset \"length\" after the allocation, since it is a \"usage\" counter, not\na \"total allocation\" counter.\n\nBuild tested ARCH=x86_64 defconfig with CONFIG_SPI_AXI_SPI_ENGINE=m and\nW=1, with GCC 16.2.0."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/spi/spi-axi-spi-engine.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"69050f8d6d075dc01af7a5f2f550a8067510366f","lessThan":"20e028e01d62557de76c8da648ae52e0ad487c27","versionType":"git","status":"affected"},{"version":"69050f8d6d075dc01af7a5f2f550a8067510366f","lessThan":"2a490521d74ac76e5eb3c9a69d928a4c76dd3f78","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/spi/spi-axi-spi-engine.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"7.0","status":"affected"},{"version":"0","lessThan":"7.0","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"references":[{"url":"https://git.kernel.org/stable/c/20e028e01d62557de76c8da648ae52e0ad487c27","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/2a490521d74ac76e5eb3c9a69d928a4c76dd3f78","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}