CVE-2025-21724: iommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index()

Published Feb 27, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

iommufd/iovabitmap: Fix shift-out-of-bounds in iovabitmapoffsettoindex()

Resolve a UBSAN shift-out-of-bounds issue in iovabitmapoffsettoindex() 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.

Affected Software

13 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.1<6.1.129
Linux Linux kernel>=6.2<6.6.76
Linux Linux kernel>=6.7<6.12.13
Linux Linux kernel>=6.13<6.13.2
debian/linux<6.1.129-1
6.1.129-1
debian/linux<6.12.13-1
6.12.13-1
debian/linux<6.12.13-1
6.12.13-1
linux/kernel>=6.1.0<6.1.129
6.1.129
linux/kernel>=6.2.0<6.6.76
6.6.76
linux/kernel>=6.7.0<6.12.13
6.12.13
linux/kernel>=6.13.0<6.13.2
6.13.2
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.129-1
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.13-1
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.129
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.76
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.13
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.13.2
  7. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.15-1

Event History

Feb 27, 2025
CVE Published
via MITRE·02:07 AM
Data Sourced
via MITRE·02:07 AM
Description
Data Sourced
via OSV·02:07 AM
DescriptionAffected Software
Data Sourced
via NVD·02:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·02:15 AM
Severity
Data Sourced
via Red Hat·03:06 AM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-21724?

CVE-2025-21724 is classified as a medium severity vulnerability due to the potential for data corruption.

2

How do I fix CVE-2025-21724?

To resolve CVE-2025-21724, upgrade your Linux kernel to a patched version that addresses the issue.

3

What versions of the Linux kernel are affected by CVE-2025-21724?

CVE-2025-21724 affects Linux kernel versions between 6.1.0 to 6.1.129, 6.2.0 to 6.6.76, 6.7.0 to 6.12.13, and 6.13.0 to 6.13.2.

4

What impact does CVE-2025-21724 have on system security?

CVE-2025-21724 can lead to potential data integrity issues if exploited, making it a risk for systems using vulnerable kernel versions.

5

Is there a workaround for CVE-2025-21724?

There are currently no known workarounds for CVE-2025-21724, so updating the kernel is essential.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203