CVE-2023-53171
vfio/type1: prevent underflow of locked_vm via exec()
Check your servers for CVE-2023-53171
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53171 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.30% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 73fa0d10d077d9521ee2dace2307ae2c9a965336, before 5a271242716846cc016736fb76be2b40ee49b0c3 affected from 73fa0d10d077d9521ee2dace2307ae2c9a965336, before eafb81c50da899dd80b340c841277acc4a1945b7 affected from 73fa0d10d077d9521ee2dace2307ae2c9a965336, before a6b2aabe664098d5cf877ae0fd96459464a30e17 affected from 73fa0d10d077d9521ee2dace2307ae2c9a965336, before b0790dff0760b7734cf0961f497ad64628ca550b affected from 73fa0d10d077d9521ee2dace2307ae2c9a965336, before 046eca5018f8a5dd1dc2cedf87fb5843b9ea3026
Other versions: unaffected
|
| Linux |
affected 3.6 unaffected before 3.6 unaffected from 5.10.173 up to and including 5.10.* unaffected from 5.15.99 up to and including 5.15.* unaffected from 6.1.16 up to and including 6.1.* unaffected from 6.2.3 up to and including 6.2.* unaffected 6.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53171 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53171
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-53171
trivy image --scanners vuln IMAGE | grep CVE-2023-53171
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/5a271242716846cc016736fb76be2b40ee49b0c3 git.kernel.org
- https://git.kernel.org/stable/c/eafb81c50da899dd80b340c841277acc4a1945b7 git.kernel.org
- https://git.kernel.org/stable/c/a6b2aabe664098d5cf877ae0fd96459464a30e17 git.kernel.org
- https://git.kernel.org/stable/c/b0790dff0760b7734cf0961f497ad64628ca550b git.kernel.org
- https://git.kernel.org/stable/c/046eca5018f8a5dd1dc2cedf87fb5843b9ea3026 git.kernel.org
Source: the record CVE-2023-53171 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse