CVE-2025-21793 Details
Description
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.
A division by zero vulnerability has been identified in the Linux kernel's SPI NOR handling. When there is no dummy cycle in the SPI NOR commands, both the dummy bus cycle bytes and width are zero. This situation triggers a CPU warning for division by zero. The vulnerability has been addressed by modifying the code to return zero instead of performing the division, thereby avoiding the warning.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/3588b1c0fde2f58d166e3f94a5a58d64b893526c | kernel.org | Patch |
| https://git.kernel.org/stable/c/4df6f005bef04a3dd16c028124a1b5684db3922b | kernel.org | Patch |
| https://git.kernel.org/stable/c/7434135553bc03809a55803ee6a8dcaae6240d55 | kernel.org | Patch |
| https://git.kernel.org/stable/c/966328191b4c389c0f2159fa242915f51cbc1679 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-369 | Divide By Zero | [email protected] |
| CWE-369 | Divide By Zero | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.2, < 6.6.79 >= 6.7, < 6.12.16 >= 6.13, < 6.13.4 6.14 rc1 6.14 rc2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Mar 5, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | New CVE Received | kernel.org |