CVE-2025-21793: Linux kernel · spi: sn-f-ospi: Fix division by zero
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 6.8.0-1035.37~22.04.1 : update Linux kernel when convenient.
Data as of 24 Nov 2026, 19:46 UTC
- Patch
- Available – fixed in 6.8.0-1035.37~22.04.1, 6.8.0-1034.39~22.04.1, 6.8.0-1036.38~22.04.1 +29
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-7521-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7521-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7521-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7703-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7703-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7703-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7719-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7703-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7737-1 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-nvidiapkg:deb/ubuntu/linux-azure-nvidia?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been released in Linux kernel versions 6.8.0-1035.37~22.04.1 and later, as well as related fixed versions. Users should update their Linux kernel to one of the fixed versions to remediate this issue. No additional mitigation steps are required beyond applying the official fix.
Description
A division by zero vulnerability in the Linux kernel's spi: sn-f-ospi driver was fixed. The issue occurs when spi-nor commands have no dummy cycle, leading to zero dummy bus cycle bytes and width, which causes a CPU warning due to division by zero. The fix avoids this calculation by returning zero. This vulnerability has been addressed in multiple Linux kernel versions.
References
- ubuntu.com/security/CVE-2025-21793 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-21793 (opens in a new tab)
- git.kernel.org/linus/3588b1c0fde2f58d166e3f94a5a58d64b893526c (opens in a new tab)
- git.kernel.org/stable/c/3588b1c0fde2f58d166e3f94a5a58d64b893526c (opens in a new tab)
- git.kernel.org/stable/c/4df6f005bef04a3dd16c028124a1b5684db3922b (opens in a new tab)
- git.kernel.org/stable/c/7434135553bc03809a55803ee6a8dcaae6240d55 (opens in a new tab)
- git.kernel.org/stable/c/966328191b4c389c0f2159fa242915f51cbc1679 (opens in a new tab)
- ubuntu.com/security/notices/USN-7521-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7521-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7521-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7703-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7703-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7703-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7719-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7703-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7737-1 (opens in a new tab)