MediumFix available
spi: sn-f-ospi: Fix division by zero
Type: advisorySources: OSV
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.16, 6.13.4, 6.6.79
- CVEs
- CVE-2025-21793
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 17:41 UTC · Revision 1
Source evidence
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.
osv:CVE-2025-21793
Kernel
Fixed versions: 6.6.79, 6.12.16, 6.13.4
Complete source record
{
"id": "8ed31bd6bf4ab0bd88448d0dbccf5c37844ce313b92a7f4e95b8d1c505e510b9",
"url": "https://osv.dev/vulnerability/CVE-2025-21793",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "spi: sn-f-ospi: Fix division by zero",
"summary": "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.",
"evidence": "osv:CVE-2025-21793",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.79",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.13.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2025-21793",
"aliases": [
"CVE-2025-21793"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.79"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.13.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21793.json"
}
}
],
"modified": "2026-10-28T02:30:44.777253729Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/3588b1c0fde2f58d166e3f94a5a58d64b893526c",
"https://git.kernel.org/stable/c/4df6f005bef04a3dd16c028124a1b5684db3922b",
"https://git.kernel.org/stable/c/7434135553bc03809a55803ee6a8dcaae6240d55",
"https://git.kernel.org/stable/c/966328191b4c389c0f2159fa242915f51cbc1679",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21793.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-21793",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21793.json"
}
},
"related_cves": [
{
"value": "CVE-2025-21793",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 512560,
"published_at": "2025-02-27T02:18:30.281+00:00"
}