CVE-2023-53171
vfio/type1: prevent underflow of locked_vm via exec()
Mitigation
- Upgrade Linux to 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026 or later.
Who should check
- Anyone running Linux >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < 5a271242716846cc016736fb76be2b40ee49b0c3; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < eafb81c50da899dd80b340c841277acc4a1945b7; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < a6b2aabe664098d5cf877ae0fd96459464a30e17; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < b0790dff0760b7734cf0961f497ad64628ca550b; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026
- Anyone running Linux 3.6
Vulnerability facts
- Affected
- Linux >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < 5a271242716846cc016736fb76be2b40ee49b0c3; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < eafb81c50da899dd80b340c841277acc4a1945b7; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < a6b2aabe664098d5cf877ae0fd96459464a30e17; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < b0790dff0760b7734cf0961f497ad64628ca550b; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026; Linux 3.6
- Fixed in
- Linux 5a271242716846cc016736fb76be2b40ee49b0c3, Linux 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < 5a271242716846cc016736fb76be2b40ee49b0c3; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < eafb81c50da899dd80b340c841277acc4a1945b7; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < a6b2aabe664098d5cf877ae0fd96459464a30e17; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < b0790dff0760b7734cf0961f497ad64628ca550b; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026 | — | cvelist |
| Linux | 3.6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-53171. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-53171.md Affected: Linux >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < 5a271242716846cc016736fb76be2b40ee49b0c3; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < eafb81c50da899dd80b340c841277acc4a1945b7; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < a6b2aabe664098d5cf877ae0fd96459464a30e17; >= 73fa0d10d077d9521ee2dac… Fixed in: Linux 5a271242716846cc016736fb76be2b40ee49b0c3, Linux 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/5a271242716846cc016736fb76be2b40ee49b0c3
- https://git.kernel.org/stable/c/eafb81c50da899dd80b340c841277acc4a1945b7
- https://git.kernel.org/stable/c/a6b2aabe664098d5cf877ae0fd96459464a30e17
- https://git.kernel.org/stable/c/b0790dff0760b7734cf0961f497ad64628ca550b
- https://git.kernel.org/stable/c/046eca5018f8a5dd1dc2cedf87fb5843b9ea3026
FAQ
Is CVE-2023-53171 being exploited?
There is no confirmed exploitation: CVE-2023-53171 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-53171?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2023-53171?
Linux >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < 5a271242716846cc016736fb76be2b40ee49b0c3; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < eafb81c50da899dd80b340c841277acc4a1945b7; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < a6b2aabe664098d5cf877ae0fd96459464a30e17; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < b0790dff0760b7734cf0961f497ad64628ca550b; >= 73fa0d10d077d9521ee2dace2307ae2c9a965336, < 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026; Linux 3.6.
Is there a fix for CVE-2023-53171?
Yes. Fixed in Linux 5a271242716846cc016736fb76be2b40ee49b0c3, Linux 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026. Upgrade Linux to 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026 or later.
How do I check if I'm affected by CVE-2023-53171?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.