CVE-2025-21793Published Feb 27, 2025 · Feb 27Updated Oct 28
spi: sn-f-ospi: Fix division by zero
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: sn-f-ospi: Fix division by zero
When there is no dummy cycle in the spi-nor commands, both dummy bus cycle bytes and width are zero. Because of the cpu's warning when divided by zero, the warning should be avoided. Return just zero to avoid such calculations.
From the CVE record · Linux
The Linux kernel's sn-f-ospi component can divide by zero when an SPI-NOR command has no dummy cycle, causing a CPU warning. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running Linux kernels with the sn-f-ospi component should check their installations; affected versions are not specified.