CVE-2025-37896
spi: spi-mem: Add fix to avoid divide error
Reported by linux · Published May 20, 2025
In the Linux kernel, the following vulnerability has been resolved: spi: spi-mem: Add fix to avoid divide error For some SPI flash memory operations, dummy bytes are not mandatory. For example, in Winbond SPINAND flash memory devices, the `write_cache` and `update_cache` operation variants have zero dummy bytes. Calculating the duration for SPI memory operations with zero dummy bytes causes a divide error when `ncycles` is calculated in the spi_mem_calc_op_duration(). Add changes to skip the 'ncylcles' calculation for zero dummy bytes. Following divide error is fixed by this change: Oops: divide error: 0000 [#1] PREEMPT SMP NOPTI ... ? do_trap+0xdb/0x100 ? do_error_trap+0x75/0xb0 ? spi_mem_calc_op_duration+0x56/0xb0 ? exc_divide_error+0x3b/0x70 ? spi_mem_calc_op_duration+0x56/0xb0 ? asm_exc_divide_error+0x1b/0x20 ? spi_mem_calc_op_duration+0x56/0xb0 ? spinand_select_op_variant+0xee/0x190 [spinand] spinand_match_and_init+0x13e/0x1a0 [spinand] spinand_manufacturer_match+0x6e/0xa0 [spinand] spinand_probe+0x357/0x7f0 [spinand] ? kernfs_activate+0x87/0xd0 spi_mem_probe+0x7a/0xb0 spi_probe+0x7d/0x130
EPSS 0.17% · 6.8th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.14.6 |
| Linux | Linux | 8e4d3d8a5e51e07bd0d6cdd81b5e4af79f796927, 1915dbd67dadc0bb35670c8e28229baa29368d17 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 226d6cb3cb799aae46d0dd19a521133997d9db11, 226d6cb3cb799aae46d0dd19a521133997d9db11 |
| Linux | Linux | 6.14, 0, 6.14.6 |
| Linux | Linux | 6.15, 0, 6.14.6 |
| linux | linux_kernel | 6.14, 6.14 |
Timeline
- May 20, 2025 CVE Published
- May 21, 2025 EPSS Score (30 in total, the first dated here)
- Oct 24, 2025 PoC Published (3 in total, the first dated here)
- Nov 17, 2025 CVE Updated
- Jun 2, 2026 Security Advisory (196 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
- Sep 19, 2026 Distribution Patch (188 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-37896
vulnetix vdb fixes CVE-2025-37896
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-37896/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart