CVE-2025-21724
iommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()
Reported by linux · Published February 27, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | d5d33f01b86af44b23eea61ee309e4ef22c0cdfe, 6.1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 |
| Linux | Linux | 6.1, 0, 6.1.129 |
| Linux | Linux | 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, 6.14, 6.13.2 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.129-138.220 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.5 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| linux | linux_kernel | 6.1, 6.1, 6.1 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | python3-perf | 0 |
…and 2 more
Timeline
- Feb 26, 2025 CVE Published
- Feb 27, 2025 EPSS Score (30 in total, the first dated here)
- Mar 10, 2025 Coalition ESS Score (12 in total, the first dated here)
- Dec 18, 2025 PoC Published
- Dec 22, 2025 Security Advisory (369 in total, the first dated here)
- Nov 11, 2026 CVE Updated
- Nov 15, 2026 Distribution Patch (322 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-21724
vulnetix vdb fixes CVE-2025-21724
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-21724/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart