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

CVE record · `CVE-2025-21724`

- **Identifiers:** `CVE-2025-21724`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 27 Feb 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 27 Feb 2025, 02:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 to before 44d9c94b7a3f29a3e07c4753603a35e9b28842a3` (git)
  - affected: `58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 to before 38ac76fc06bc6826a3e4b12a98efbe98432380a9` (git)
  - affected: `58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 to before d5d33f01b86af44b23eea61ee309e4ef22c0cdfe` (git)
  - affected: `58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 to before b1f8453b8ff1ab79a03820ef608256c499769cb6` (git)
  - affected: `58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 to before e24c1551059268b37f6f40639883eafb281b8b9c` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.1`
  - unaffected: `before 6.1` (semver)
  - unaffected: `6.1.129 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.76 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.13 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13.2 to 6.13.*, inclusive` (semver)
  - unaffected: `6.14 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel iommufd/iova_bitmap code is affected: a 32-bit int shift in iova_bitmap_offset_to_index() can overflow when pgshift exceeds 31, causing undefined behavior. The source gives few details on attack conditions or impact. Upgrade to 6.1.129, 6.6.76, 6.12.13, 6.13.2 or a later fixed release.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0019, the 8th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 27 Feb 2025, 02:07 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-21724)
- 27 Feb 2025, 02:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-21724)

## Sources

- [CVE List: CVE-2025-21724](https://www.cve.org/CVERecord?id=CVE-2025-21724)
- [NVD: CVE-2025-21724](https://nvd.nist.gov/vuln/detail/CVE-2025-21724)

### References from the CNA

- <https://git.kernel.org/stable/c/44d9c94b7a3f29a3e07c4753603a35e9b28842a3>
- <https://git.kernel.org/stable/c/38ac76fc06bc6826a3e4b12a98efbe98432380a9>
- <https://git.kernel.org/stable/c/d5d33f01b86af44b23eea61ee309e4ef22c0cdfe>
- <https://git.kernel.org/stable/c/b1f8453b8ff1ab79a03820ef608256c499769cb6>
- <https://git.kernel.org/stable/c/e24c1551059268b37f6f40639883eafb281b8b9c>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-21724>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-21724/>. Everything for agents: <https://agentprime.io/llms.txt>.
