CVE-2023-53801: iommu/sprd: Release dma buffer to avoid memory leak
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iommu/sprd: Release dma buffer to avoid memory leak
When attaching to a domain, the driver would alloc a DMA buffer which is used to store address mapping table, and it need to be released when the IOMMU domain is freed.
The Linux kernel CVE team has assigned CVE-2023-53801 to this issue.
Affected and fixed versions
===========================
Fixed in 5.15.113 with commit 92c089a931fd3939cd32318cf4f54e69e8f51a19 Fixed in 6.1.81 with commit 8745f3592ee4a7b49ede16ddd3f12a41ecaa23c9 Fixed in 6.3.4 with commit d0a917fd5e3b3ed9d9306b4260ba684b982da9f3 Fixed in 6.4 with commit 9afea57384d4ae7b2034593eac7fa76c7122762a
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2023-53801
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/iommu/sprd-iommu.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/92c089a931fd3939cd32318cf4f54e69e8f51a19 https://git.kernel.org/stable/c/8745f3592ee4a7b49ede16ddd3f12a41ecaa23c9 https://git.kernel.org/stable/c/d0a917fd5e3b3ed9d9306b4260ba684b982da9f3 https://git.kernel.org/stable/c/9afea57384d4ae7b2034593eac7fa76c7122762a