# CVE-2026-143406

- Bağlantı: https://www.allsafe.com.tr/cve-2026-143406/
- Yayımlanma: 2026-12-05T06:19:50+03:00
- Yazar: Postmaster

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.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-143406)
