Every CVESearch/Get API key

CVE-2026-143406

spi: jcore: fix divide-by-zero when speed_hz is zero

Explain with AI
ChatGPTClaudeGoogle AI
Scores
Unknown
No source reports a CVSS or EPSS score yet.
Exploitation
Unknown
No source reports exploitation yet.
Listed fix
5.10.275 for Kernel
From OSV6 more listed versions

Overview

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.

Affected

Packages 1

Affected packages
PackageAffectedFixed
Kernel
Linux
4.9.0 up to 5.10.275, 5.11.0 up to 5.15.226, 5.16.0 up to 6.1.193, 6.2.0 up to 6.6.163, 6.7.0 up to 6.12.117, 6.13.0 up to 6.18.63, 6.19.0 up to 7.3.4
5.10.2755.15.2266.1.1936.6.1636.12.1176.18.637.3.4

Products 1

Sources

CVE ListNo score

spi: jcore: fix divide-by-zero when speed_hz is zero

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.

Record
CVE-2026-143406
Updated
2026-12-05
EUVDEUVD-2026-145003No score

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.

Record
EUVD-2026-145003
Updated
2026-12-05
GitHub AdvisoriesGHSA-4vvg-p768-f9hjNo score

In the Linux kernel, the following vulnerability has been resolved: spi: jcore: fix divide-by...

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.

Record
GHSA-4vvg-p768-f9hj
Updated
2026-12-05
NVDNo score

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.

Record
CVE-2026-143406
Updated
2026-12-05
OSVNo score

spi: jcore: fix divide-by-zero when speed_hz is zero

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.

Record
CVE-2026-143406
Updated
2026-12-05

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Other IDs, referencesGitHub Advisories, NVD
Affected packages, key facts, referencesOSV
Other IDs, published dateEUVD
First indexedCVE List

Upstream dates may differ.

References

Show 4 more referencesShow less
MoveEnter Open