CVE-2026-143406
Received Received - Intake

Divide-by-Zero in J-Core SPI Driver

Vulnerability report for CVE-2026-143406, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-05

Last updated on: 2026-12-05

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: spi: jcore: fix divide-by-zero when speed_hz is zero jcore_spi_baudrate() computes hw->clock_freq / 2 / speed without validating speed. The SPI core fills transfer.speed_hz from spi->max_speed_hz when it is zero, and jcore_spi_probe() never sets host->max_speed_hz, so the clamp in __spi_setup() is skipped. A spi_device created via the sysfs new_device interface (or a DT node without spi-max-frequency) therefore has max_speed_hz == 0, and any SPI_IOC_MESSAGE transfer reaches jcore_spi_baudrate() with speed == 0, causing a division by zero and a kernel panic. Clamp speed to a minimum of 1 Hz before the division so the divisor is never zero. The computed divider then truncates to the register field width and the transfer simply runs at the slowest supported rate. Verified by inspection of the __spi_setup() clamp and __spi_validate()'s speed_hz handling; the division-by-zero path requires the J-Core controller, which was not available.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-05
Last Modified
2026-12-05
Generated
2026-12-05
AI Q&A
2026-12-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
jcore linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a divide-by-zero error in the Linux kernel's J-Core SPI driver. It occurs when the SPI transfer speed is set to zero, causing a kernel panic. The issue arises because the driver does not validate the speed parameter before performing a division operation.

Detection Guidance

This vulnerability is specific to the Linux kernel's J-Core SPI driver and can be detected by checking for kernel panics or division-by-zero errors in logs when SPI transfers occur with speed_hz set to zero. Inspect kernel logs for messages related to jcore_spi_baudrate or SPI transfers.

Impact Analysis

This vulnerability can cause a system crash (kernel panic) if an SPI device is configured with a zero speed_hz value. This may lead to denial-of-service conditions, disrupting system operations and requiring a reboot to recover.

Mitigation Strategies

Apply the kernel patch that clamps speed_hz to a minimum of 1 Hz before division. Ensure all SPI devices have a valid spi-max-frequency set in their device tree or sysfs configuration to prevent speed_hz from being zero.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-143406. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...