CVE-2023-53171
Last modified
CVE-2023-53171 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.14% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 3.6, < 5.10.173 |
| Linux | Linux Kernel | >= 5.11, < 5.15.99 |
| Linux | Linux Kernel | >= 5.16, < 6.1.16 |
| Linux | Linux Kernel | >= 6.2, < 6.2.3 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2023-53171?
How severe is CVE-2023-53171?
How do I fix CVE-2023-53171?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-53166In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2023-53167In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53168In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53169In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-5317Cross-site Scripting (XSS) - Stored in GitHub repository tho…5.4
- CVE-2023-53170In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53172In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53173In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53174In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53175In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53176In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53177In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2023-53171?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
