CVE-2026-143406 spi: jcore: fix divide-by-zero when speed_hz is zero
linux linux: no CVSS score yet.
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.
- Published
- Assigned by
- Linux (CNA)
- NVD analysis
- Not in the NVD yet
- Record from
- the CVE List, synced
Fix and patched versions
- Linux Linux: fixed in 5.10.275
- Linux Linux: fixed in 5.15.226
- Linux Linux: fixed in 6.1.193
- Linux Linux: fixed in 6.6.163
- Linux Linux: fixed in 6.12.117
- Linux Linux: fixed in 6.18.63
- Linux Linux: fixed in 7.3.4
- Linux Linux: fixed in 7.4-rc1
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-143406 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-143406?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-143406?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-143406 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Linux | 4.9 and later |
Fixed in
| Product | Release line | Fixed in |
|---|---|---|
| Linux | 5.10 | 5.10.275 |
| Linux | 5.15 | 5.15.226 |
| Linux | 6.1 | 6.1.193 |
| Linux | 6.6 | 6.6.163 |
| Linux | 6.12 | 6.12.117 |
| Linux | 6.18 | 6.18.63 |
| Linux | 7.3 | 7.3.4 |
| Linux | later releases | 7.4-rc1 |
References
- https://git.kernel.org/stable/c/10982e43876212fe06ec00cff936b0569e5ab7ee
- https://git.kernel.org/stable/c/9345692144d3645809a3cb9cede27a56ba52af11
- https://git.kernel.org/stable/c/da62913b94dbd804426c420ec9305e3d13da86fd
- https://git.kernel.org/stable/c/d1e2ec9dc7f7ef3a6beedcdc150537423c717a49
- https://git.kernel.org/stable/c/fd745ddad8f94cc9b28c4ac3a86ec9b803ec2996
- https://git.kernel.org/stable/c/9c9bbb6a878056447dac471bbe73b4aa93085b01
- https://git.kernel.org/stable/c/1b8f9d14d2961f894035e3246307cf32fca52c30
- https://git.kernel.org/stable/c/7db773075501248893c22b11bedc6745d6d0be45