# CVE-2025-21793: spi: sn-f-ospi: Fix division by zero

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-02-27T02:18:30.281Z
- Modified: 2026-06-17T08:44:17.627Z
- Weaknesses: CWE-369
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1b74dd64c8612619e399e5a31da79a3636914495 before 966328191b4c389c0f2159fa242915f51cbc1679; from 1b74dd64c8612619e399e5a31da79a3636914495 before 4df6f005bef04a3dd16c028124a1b5684db3922b; from 1b74dd64c8612619e399e5a31da79a3636914495 before 7434135553bc03809a55803ee6a8dcaae6240d55; from 1b74dd64c8612619e399e5a31da79a3636914495 before 3588b1c0fde2f58d166e3f94a5a58d64b893526c; 6.2 (not affected: before 6.2; from 6.6.79 up to 6.6.*; from 6.12.16 up to 6.12.*; from 6.13.4 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.2 before 6.6.79; from 6.7 before 6.12.16; from 6.13 before 6.13.4; 6.14

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/966328191b4c389c0f2159fa242915f51cbc1679> (patch)
- <https://git.kernel.org/stable/c/4df6f005bef04a3dd16c028124a1b5684db3922b> (patch)
- <https://git.kernel.org/stable/c/7434135553bc03809a55803ee6a8dcaae6240d55> (patch)
- <https://git.kernel.org/stable/c/3588b1c0fde2f58d166e3f94a5a58d64b893526c> (patch)

## Sources

- CVE List: [CVE-2025-21793](https://www.cve.org/CVERecord?id=CVE-2025-21793), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21793](https://nvd.nist.gov/vuln/detail/CVE-2025-21793), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21793 · Whole record: https://cve.day/CVE-2025-21793.json · Rebuilt by cve.day 2026-11-25T22:58:54.570Z
