EnvMap GitHub

CVE-2026-143406

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

Not scored yetReceived

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.

In the words of the organisation that published it (Linux).

Affected

  • Linux: from 2cb1b3b3ac0ac86b70eb1ecd65585c0d024fe273 before 10982e43876212fe06ec00cff93; from 2cb1b3b3ac0ac86b70eb1ecd65585c0d024fe273 before 9345692144d3645809a3cb9cede; from 2cb1b3b3ac0ac86b70eb1ecd65585c0d024fe273 before da62913b94dbd804426c420ec93; from 2cb1b3b3ac0ac86b70eb1ecd65585c0d024fe273 before d1e2ec9dc7f7ef3a6beedcdc150; 4.9

as the publisher (Linux) lists them.

References

Record

Published03:19 UTC, 5 December 2026
Last changed03:19 UTC, 5 December 2026
NVD statusReceived
Published byLinux

CVE-2026-143406 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.