CVE-2025-21724CWE-787

CVE-2025-21724

High · published February 27, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
8.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00191 · 8.3th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2025-02-27T07:15Z
Affected products (4)
ProductVersionsFixed in
linux/linux_kernel≥ 6.1, < 6.1.1296.1.129
linux/linux_kernel≥ 6.2, < 6.6.766.6.76
linux/linux_kernel≥ 6.7, < 6.12.136.12.13
linux/linux_kernel≥ 6.13, < 6.13.26.13.2
References (8)
EPSS history
Timeline
  • 27 FEB 02:07Z
    iommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()
    cvelistv5