VDB

CVE-2025-21724

CVE-2025-21724 PUBLISHED

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.

PackageEcosystemFixed in
LinuxLinuxd5d33f01b86af44b23eea61ee309e4ef22c0cdfe, 6.1

Affected products

VendorProductVersions
LinuxLinux58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1
LinuxLinux6.1, 0, 6.1.129
LinuxLinux58ccf0190d19d9a8a41f8a02b9e06742b58df4a1, 6.14, 6.13.2
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-devel0
amazon:2023kernel-livepatch-6.1.129-138.2200
amazon:2023kernel0
amazon:2023kernel-tools-devel0
amazon:2023kernel-modules-extra0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.5
amazon:2023kernel-libbpf-devel0
linuxlinux_kernel6.1, 6.1, 6.1
amazon:2023kernel-libbpf-static0
amazon:2023perf0
amazon:2023kernel-libbpf0
amazon:2023kernel-headers0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.5
amazon:2023bpftool0
amazon:2023python3-perf0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›