CVE-2022-50072

NFSv4/pnfs: Fix a use-after-free bug in open

7.8 high EPSS 0.21%

Published 18 Jun 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2022-50072

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-2022-50072 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

NFSv4/pnfs: Fix a use-after-free bug in open

If someone cancels the open RPC call, then we must not try to free either the open slot or the layoutget operation arguments, since they are likely still in use by the hung RPC call.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.7% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 6b3fc1496e7227cd6a39a80bbfb7588ef7c7a010, before 0fffb46ff3d5ed4668aca96441ec7a25b793bd6f
affected from a2b3be930e79cc5d9d829f158e31172b2043f0cd, before f7ee3b772d9de87387a725caa04bc041ac7fe5ec
affected from 0ee5b9644f06b4d3cdcd9544f43f63312e425a4c, before 76ffd2042438769298f34b76102b40dea89de616
affected from d4c2a041ed3ba114502d5ed6ace5b1a48d637a8e, before a4cf3dadd1fa43609f7c6570c9116b0e0a9923d1
affected from 6949493884fe88500de4af182588e071cf1544ee, before b03d1117e9be7c7da60e466eaf9beed85c5916c8
affected from 6949493884fe88500de4af182588e071cf1544ee, before 2135e5d56278ffdb1c2e6d325dc6b87f669b9dac
affected 08d7a26d115cc7892668baa9750f64bd8baca29b
affected ea759ae0a9ae5acee677d722129710ac89cc59c1
affected from 4.19.247, before 4.19.256
affected from 5.4.198, before 5.4.211
affected from 5.10.122, before 5.10.138
affected from 5.15.47, before 5.15.63
affected from 5.17.15, before 5.18
affected from 5.18.4, before 5.19
Other versions: unaffected
Linux
affected 5.19
unaffected before 5.19
unaffected from 4.19.256 up to and including 4.19.*
unaffected from 5.4.211 up to and including 5.4.*
unaffected from 5.10.138 up to and including 5.10.*
unaffected from 5.15.63 up to and including 5.15.*
unaffected from 5.19.4 up to and including 5.19.*
unaffected 6.0 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-2022-50072 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50072

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-2022-50072
trivy image --scanners vuln IMAGE | grep CVE-2022-50072

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

Source: the record CVE-2022-50072 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.