{"id":"CVE-2025-21793","summary":"spi: sn-f-ospi: Fix division by zero","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: sn-f-ospi: Fix division by zero\n\nWhen there is no dummy cycle in the spi-nor commands, both dummy bus cycle\nbytes and width are zero. Because of the cpu's warning when divided by\nzero, the warning should be avoided. Return just zero to avoid such\ncalculations.","modified":"2026-04-02T12:45:13.956210Z","published":"2025-02-27T02:18:30.281Z","related":["SUSE-SU-2025:01919-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7521-2"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21793.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3588b1c0fde2f58d166e3f94a5a58d64b893526c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4df6f005bef04a3dd16c028124a1b5684db3922b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7434135553bc03809a55803ee6a8dcaae6240d55"},{"type":"WEB","url":"https://git.kernel.org/stable/c/966328191b4c389c0f2159fa242915f51cbc1679"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21793.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21793"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1b74dd64c8612619e399e5a31da79a3636914495"},{"fixed":"966328191b4c389c0f2159fa242915f51cbc1679"},{"fixed":"4df6f005bef04a3dd16c028124a1b5684db3922b"},{"fixed":"7434135553bc03809a55803ee6a8dcaae6240d55"},{"fixed":"3588b1c0fde2f58d166e3f94a5a58d64b893526c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21793.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}