CVE-2025-21793

spi: sn-f-ospi: Fix division by zero

State
Published
Severity
5.5 Medium
Published
Feb 27, 2025
Updated
May 11, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 1b74dd64c8612619e399e5a31da79a3636914495 to before 966328191b4c389c0f2159fa242915f51cbc1679Affected
  • 1b74dd64c8612619e399e5a31da79a3636914495 to before 4df6f005bef04a3dd16c028124a1b5684db3922bAffected
  • 1b74dd64c8612619e399e5a31da79a3636914495 to before 7434135553bc03809a55803ee6a8dcaae6240d55Affected
  • 1b74dd64c8612619e399e5a31da79a3636914495 to before 3588b1c0fde2f58d166e3f94a5a58d64b893526cAffected
LinuxLinux
  • 6.2Affected
  • before 6.2Not affected
  • 6.6.79 through 6.6.*Not affected
  • 6.12.16 through 6.12.*Not affected
  • 6.13.4 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.