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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-02-27T02:18:18.570Z
- Modified: 2026-06-17T08:44:14.257Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

iommu: Fix potential memory leak in iopf_queue_remove_device()

The iopf_queue_remove_device() 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 IOMMU_PAGE_RESP_INVALID 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 iopf_queue_remove_device() is called with
pending iopf's.

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

(As written by CVE List.)

## Affected

- Linux Linux: from 19911232713573a2ebea84a25bd4d71d024ed86b before db60d2d896a17decd58d143eef92cf22eb0a0176; from 19911232713573a2ebea84a25bd4d71d024ed86b before 90d5429cd2921ca2714684ed525898d431bb9283; from 19911232713573a2ebea84a25bd4d71d024ed86b before 9759ae2cee7cd42b95f1c48aa3749bd02b5ddb08; 6.9 (not affected: before 6.9; from 6.12.16 up to 6.12.*; from 6.13.4 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.9 before 6.12.16; from 6.13 before 6.13.4; 6.14

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/db60d2d896a17decd58d143eef92cf22eb0a0176> (patch)
- <https://git.kernel.org/stable/c/90d5429cd2921ca2714684ed525898d431bb9283> (patch)
- <https://git.kernel.org/stable/c/9759ae2cee7cd42b95f1c48aa3749bd02b5ddb08> (patch)

## Sources

- CVE List: [CVE-2025-21770](https://www.cve.org/CVERecord?id=CVE-2025-21770), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21770](https://nvd.nist.gov/vuln/detail/CVE-2025-21770), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21770 · Whole record: https://cve.day/CVE-2025-21770.json · Rebuilt by cve.day 2026-11-25T22:58:54.549Z
