CVE-2025-40293
iommufd: Don't overflow during division for dirty tracking
Check your servers for CVE-2025-40293
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40293 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, before 07105e61882ff4a7d58db63cc5f9e90c6c60506c affected from 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, before 4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69 affected from 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, before de7f2c67ceb1941b05b04ac35458a03e93cc57b1 affected from 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, before dbf316fc90aa954dcd5440817f4b944627ed63e0 affected from 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, before cb30dfa75d55eced379a42fd67bd5fb7ec38555e
Other versions: unaffected
|
| Linux |
affected 6.1 unaffected before 6.1 unaffected from 6.1.159 up to and including 6.1.* unaffected from 6.6.117 up to and including 6.6.* unaffected from 6.12.58 up to and including 6.12.* unaffected from 6.17.8 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40293 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40293
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40293
trivy image --scanners vuln IMAGE | grep CVE-2025-40293
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/07105e61882ff4a7d58db63cc5f9e90c6c60506c git.kernel.org
- https://git.kernel.org/stable/c/4c8a4f1d34eced168cc0b3a3dfe7b6dcc2090f69 git.kernel.org
- https://git.kernel.org/stable/c/de7f2c67ceb1941b05b04ac35458a03e93cc57b1 git.kernel.org
- https://git.kernel.org/stable/c/dbf316fc90aa954dcd5440817f4b944627ed63e0 git.kernel.org
- https://git.kernel.org/stable/c/cb30dfa75d55eced379a42fd67bd5fb7ec38555e git.kernel.org
Source: the record CVE-2025-40293 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse