High severity · published Feb 27, 2025
CVE-2025-21724
iommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()
7.8
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 9% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
6.1 before 6.1.129; 6.2 before 6.6.76; 6.7 before 6.12.13; 6.13 before 6.13.2 · source: NVD
LI
Linux · Linux
58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 before 44d9c94b7a3f29a3e07c4753603a35e9b28842a3; 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 before 38ac76fc06bc6826a3e4b12a98efbe98432380a9; 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 before d5d33f01b86af44b23eea61ee309e4ef22c0cdfe; 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 before b1f8453b8ff1ab79a03820ef608256c499769cb6; 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 before e24c1551059268b37f6f40639883eafb281b8b9c; 6.1 · source: vendor
SS
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP · Siemens
V3.1.5; V3.1.5 · source: CISA
SS
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP · Siemens
V3.1.5; V3.1.5 · source: CISA
SS
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem · Siemens
0 · source: CISA
SS
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP · Siemens
V3.1.5 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-21724
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-21724
Patch
https://git.kernel.org/stable/c/38ac76fc06bc6826a3e4b12a98efbe98432380a9
Patch
https://git.kernel.org/stable/c/44d9c94b7a3f29a3e07c4753603a35e9b28842a3
Patch
https://git.kernel.org/stable/c/b1f8453b8ff1ab79a03820ef608256c499769cb6
Patch
https://git.kernel.org/stable/c/d5d33f01b86af44b23eea61ee309e4ef22c0cdfe
Patch
https://git.kernel.org/stable/c/e24c1551059268b37f6f40639883eafb281b8b9c
lists.debian.org
https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
