Bug 2591379 (CVE-2026-143406) - CVE-2026-143406 kernel: kernel: Denial of Service via divide-by-zero condition in J-Core SPI driver
Summary: CVE-2026-143406 kernel: kernel: Denial of Service via divide-by-zero conditio...
Keywords:
Status: NEW
Alias: CVE-2026-143406
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-05 01:32 UTC by OSIDB Bzimport
Modified: 2026-12-05 03:43 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-05 01:32:14 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.