CVE-2025-21724

iommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()

No CVSS score yet EPSS 0.19%

Published 27 Feb 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2025-21724

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-21724 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

iommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()

Resolve a UBSAN shift-out-of-bounds issue in iova_bitmap_offset_to_index() where shifting the constant "1" (of type int) by bitmap->mapped.pgshift (an unsigned long value) could result in undefined behavior.

The constant "1" defaults to a 32-bit "int", and when "pgshift" exceeds 31 (e.g., pgshift = 63) the shift operation overflows, as the result cannot be represented in a 32-bit type.

To resolve this, the constant is updated to "1UL", promoting it to an unsigned long type to match the operand's type.

Exploitation

EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.13% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, before 44d9c94b7a3f29a3e07c4753603a35e9b28842a3
affected from 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, before 38ac76fc06bc6826a3e4b12a98efbe98432380a9
affected from 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, before d5d33f01b86af44b23eea61ee309e4ef22c0cdfe
affected from 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, before b1f8453b8ff1ab79a03820ef608256c499769cb6
affected from 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, before e24c1551059268b37f6f40639883eafb281b8b9c
Other versions: unaffected
Linux
affected 6.1
unaffected before 6.1
unaffected from 6.1.129 up to and including 6.1.*
unaffected from 6.6.76 up to and including 6.6.*
unaffected from 6.12.13 up to and including 6.12.*
unaffected from 6.13.2 up to and including 6.13.*
unaffected 6.14 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-21724 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21724

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-21724
trivy image --scanners vuln IMAGE | grep CVE-2025-21724

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

Source: the record CVE-2025-21724 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.