CVE-2025-21770: iommu: Fix potential memory leak in iopf_queue_remove_device()

Published Feb 27, 2025
·
Updated

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

iommu: Fix potential memory leak in iopfqueueremovedevice()

The iopfqueueremovedevice() helper removes a device from the per-iommu iopf queue when PRI is disabled on the device. It responds to all outstanding iopf's with an IOMMUPAGERESPINVALID code and detaches the device from the queue.

However, it fails to release the group structure that represents a group of iopf's awaiting for a response after responding to the hardware. This can cause a memory leak if iopfqueueremovedevice() is called with pending iopf's.

Fix it by calling iopffreegroup() after the iopf group is responded.

Affected Software

5 affected components
Linux Linux kernel
Linux Linux kernel>=6.9<6.12.16
Linux Linux kernel>=6.13<6.13.4
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Call iopf_free_group() after the iopf group is responded to, and ensure iopf_queue_remove_device() responds to outstanding IOPFs with an IOMMU_PAGE_RESP_INVALID code before detaching the pending IOPFs.

Event History

Feb 27, 2025
CVE Published
via MITRE·02:18 AM
Data Sourced
via MITRE·02:18 AM
Description
Data Sourced
via NVD·03:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-21770?

CVE-2025-21770 has been classified as a low-severity vulnerability affecting the Linux kernel.

2

What impact does CVE-2025-21770 have on affected systems?

CVE-2025-21770 could potentially lead to a memory leak when devices are removed from the iopf queue.

3

How do I fix CVE-2025-21770?

To fix CVE-2025-21770, users should update their Linux kernel to the latest patched version.

4

Which versions of the Linux kernel are affected by CVE-2025-21770?

CVE-2025-21770 affects specific versions of the Linux kernel that include the vulnerable iommu component.

5

Is CVE-2025-21770 exploitable remotely?

CVE-2025-21770 is not considered to be remotely exploitable, as it requires local access to the affected systems.

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