CVE-2025-21793
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.2 before 6.6.79, from 6.7 before 6.12.16, from 6.13 before 6.13.4, 6.14NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-369

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: spi: sn-f-ospi: Corrige la división por cero Cuando no hay un ciclo ficticio en los comandos spi-nor, tanto los bytes del ciclo de bus ficticio como el ancho son cero. Debido a la advertencia de la CPU cuando se divide por cero, se debe evitar la advertencia. Devuelve solo cero para evitar dichos cálculos.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21793 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-21793 changed 2026-06-17Public domain