iommu/amd: Fix I/O page table memory leak
Published Aug 22, 2024
5.5
MEDIUMCVSS 3.1
EPSS 0.21%
Description
The current logic updates the I/O page table mode for the domain before calling the logic to free memory used for the page table. This results in IOMMU page table memory leak, and can be observed when launching VM w/ pass-through devices.
Fix by freeing the memory used for page table before updating the mode.
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 5.12StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<5.12
- Version 5.15.27StatusunaffectedConstraints<=5.15.*
- Version 5.16.13StatusunaffectedConstraints<=5.16.*
- Version 5.17StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
- ≥ 5.12 · < 5.15.27
- ≥ 5.16 · < 5.16.13
- 5.17
- 5.17
- 5.17
- 5.17
- 5.17
- 5.17
No data.
Red Hat Enterprise Linux 8
kernel-0:4.18.0-372.9.1.el8
Fixed · RHSA-2022:1988
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | kernel-0:4.18.0-372.9.1.el8 | Fixed | RHSA-2022:1988 |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue is fixed in RHEL-8.6 and above (including RHEL 8.10) ~~~ in (rhel-8.6, rhel-8.7, rhel-8.8, rhel-8.9, rhel-8.10) iommu/amd: Fix I/O page table memory leak ~~~
References (8)
- https://access.redhat.com/security/cve/CVE-2022-48904 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2307157 Issue Tracking
- https://git.kernel.org/stable/c/378e2fe1eb58d5c2ed55c8fe5e11f9db5033cdd6 Patch
- https://git.kernel.org/stable/c/6b0b2d9a6a308bcd9300c2d83000a82812c56cea Patch
- https://git.kernel.org/stable/c/c78627f757e37c2cf386b59c700c4e1574988597 Patch
- https://lore.kernel.org/linux-cve-announce/2024082212-CVE-2022-48904-b02c@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-48904
- https://www.cve.org/CVERecord?id=CVE-2022-48904
Change history (0)
No recorded changes yet.