# CVE-2025-40293: iommufd: Don't overflow during division for dirty tracking

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-08T00:46:16.850Z
- **Modified:** 2026-10-14T22:10:00.210Z

## Who should check

- Anyone running Linux \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< 07105e61882ff4a7d58db63cc5f9e90c6c60506c; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< 4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< de7f2c67ceb1941b05b04ac35458a03e93cc57b1; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< dbf316fc90aa954dcd5440817f4b944627ed63e0; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< cb30dfa75d55eced379a42fd67bd5fb7ec38555e
- Anyone running Linux 6.1

## Description

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.

## Affected and fixed versions

- Linux: \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< 07105e61882ff4a7d58db63cc5f9e90c6c60506c; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< 4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< de7f2c67ceb1941b05b04ac35458a03e93cc57b1; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< dbf316fc90aa954dcd5440817f4b944627ed63e0; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< cb30dfa75d55eced379a42fd67bd5fb7ec38555e (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40293. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40293.md
Affected: Linux >= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, < 07105e61882ff4a7d58db63cc5f9e90c6c60506c; >= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, < 4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69; >= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, < de7f2c67ceb1941b05b04ac35458a03e93cc57b1; >= 58ccf0190d19d9a8a41f8a0…
Fixed in: Linux 07105e61882ff4a7d58db63cc5f9e90c6c60506c, Linux 4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40293 being exploited?

There is no confirmed exploitation: CVE-2025-40293 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40293?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40293?

Linux \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< 07105e61882ff4a7d58db63cc5f9e90c6c60506c; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< 4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< de7f2c67ceb1941b05b04ac35458a03e93cc57b1; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< dbf316fc90aa954dcd5440817f4b944627ed63e0; \>= 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, \< cb30dfa75d55eced379a42fd67bd5fb7ec38555e; Linux 6.1.

### Is there a fix for CVE-2025-40293?

Yes. Fixed in Linux 07105e61882ff4a7d58db63cc5f9e90c6c60506c, Linux 4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40293?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/07105e61882ff4a7d58db63cc5f9e90c6c60506c>
- other: <https://git.kernel.org/stable/c/4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69>
- other: <https://git.kernel.org/stable/c/de7f2c67ceb1941b05b04ac35458a03e93cc57b1>
- other: <https://git.kernel.org/stable/c/dbf316fc90aa954dcd5440817f4b944627ed63e0>
- other: <https://git.kernel.org/stable/c/cb30dfa75d55eced379a42fd67bd5fb7ec38555e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40293>

HTML: <https://flawdb.com/CVE-2025-40293> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40293>
