CVE-2025-40293
iommufd: Don't overflow during division for dirty tracking
Reported by linux · Published December 8, 2025
In the Linux kernel, the following vulnerability has been resolved: iommufd: Don't overflow during division for dirty tracking If pgshift is 63 then BITS_PER_TYPE(*bitmap->bitmap) * pgsize will overflow to 0 and this triggers divide by 0. In this case the index should just be 0, so reorganize things to divide by shift and avoid hitting any overflows.
EPSS 0.22% · 12.0th 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 |
|---|---|---|
| kernel | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| kernel-libbpf | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel-livepatch-6.1.159-181.297 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel6.12-libbpf | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| linux_kernel | linux | 6.18, 6.17.8, 6.12.58, 6.6.117, 6.1.159 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 |
| Linux | Linux | 6.1, 0, 6.1.159 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.1.159-181.297 | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| linux | linux_kernel | 6.1, 6.1, 6.1 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| Linux | Linux | 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel-livepatch-6.12.58-82.121 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
…and 12 more
Timeline
- Dec 7, 2025 CVE Published
- Dec 8, 2025 EPSS Score (30 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (166 in total, the first dated here)
- Mar 29, 2026 Security Advisory (169 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-40293
vulnetix vdb fixes CVE-2025-40293
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-40293/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart