CVE-2023-53171 Details
Description
In the Linux kernel, the following vulnerability has been resolved: vfio/type1: prevent underflow of locked_vm via exec() When a vfio container is preserved across exec, the task does not change, but it gets a new mm with locked_vm=0, and loses the count from existing dma mappings. If the user later unmaps a dma mapping, locked_vm underflows to a large unsigned value, and a subsequent dma map request fails with ENOMEM in __account_locked_vm. To avoid underflow, grab and save the mm at the time a dma is mapped. Use that mm when adjusting locked_vm, rather than re-acquiring the saved task's mm, which may have changed. If the saved mm is dead, do nothing. locked_vm is incremented for existing mappings in a subsequent patch.
A vulnerability in the Linux kernel's VFIO Type1 IOMMU implementation can lead to a memory management issue. When a VFIO container is maintained across an exec call, it receives a new memory management structure (mm) with the locked_vm counter reset to zero. This change causes the container to lose track of existing DMA (Direct Memory Access) mappings. If the user then unmaps a DMA mapping, the locked_vm counter can underflow, resulting in a large unsigned value. This underflow causes subsequent DMA map requests to fail with an 'out of memory' error in the __account_locked_vm function.
The vulnerability has been addressed in Linux kernel commits 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026, 5a271242716846cc016736fb76be2b40ee49b0c3, a6b2aabe664098d5cf877ae0fd96459464a30e17, b0790dff0760b7734cf0961f497ad64628ca550b and eafb81c50da899dd80b340c841277acc4a1945b7.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/046eca5018f8a5dd1dc2cedf87fb5843b9ea3026 | kernel.org | Patch |
| https://git.kernel.org/stable/c/5a271242716846cc016736fb76be2b40ee49b0c3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a6b2aabe664098d5cf877ae0fd96459464a30e17 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b0790dff0760b7734cf0961f497ad64628ca550b | kernel.org | Patch |
| https://git.kernel.org/stable/c/eafb81c50da899dd80b340c841277acc4a1945b7 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.6, < 5.10.173 >= 5.11, < 5.15.99 >= 5.16, < 6.1.16 >= 6.2, < 6.2.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | kernel.org |
| Nov 5, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 2, 2025 | Initial Analysis | [email protected] |
| Sep 15, 2025 | New CVE Received | kernel.org |