CVE-2022-49927
nfs4: Fix kmemleak when allocate slot failed
Check your servers for CVE-2022-49927
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-49927 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:
nfs4: Fix kmemleak when allocate slot failed
If one of the slot allocate failed, should cleanup all the other allocated slots, otherwise, the allocated slots will leak:
unreferenced object 0xffff8881115aa100 (size 64): comm ""mount.nfs"", pid 679, jiffies 4294744957 (age 115.037s) hex dump (first 32 bytes): 00 cc 19 73 81 88 ff ff 00 a0 5a 11 81 88 ff ff ...s......Z..... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000007a4c434a>] nfs4_find_or_create_slot+0x8e/0x130 [<000000005472a39c>] nfs4_realloc_slot_table+0x23f/0x270 [<00000000cd8ca0eb>] nfs40_init_client+0x4a/0x90 [<00000000128486db>] nfs4_init_client+0xce/0x270 [<000000008d2cacad>] nfs4_set_client+0x1a2/0x2b0 [<000000000e593b52>] nfs4_create_server+0x300/0x5f0 [<00000000e4425dd2>] nfs4_try_get_tree+0x65/0x110 [<00000000d3a6176f>] vfs_get_tree+0x41/0xf0 [<0000000016b5ad4c>] path_mount+0x9b3/0xdd0 [<00000000494cae71>] __x64_sys_mount+0x190/0x1d0 [<000000005d56bdec>] do_syscall_64+0x35/0x80 [<00000000687c9ae4>] entry_SYSCALL_64_after_hwframe+0x46/0xb0
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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 none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 2025):
- 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
Weakness
- CWE-401 Missing Release of Memory after Effective Lifetime
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from abf79bb341bf52f75f295b850abdf5f78f584311, before 84b5cb476903003ae9ca88f32b57ff0eaefa6d4c affected from abf79bb341bf52f75f295b850abdf5f78f584311, before aae35a0c8a775fa4afa6a4e7dab3f936f1f89bbb affected from abf79bb341bf52f75f295b850abdf5f78f584311, before 86ce0e93cf6fb4d0c447323ac66577c642628b9d affected from abf79bb341bf52f75f295b850abdf5f78f584311, before 925cb538bd5851154602818dc80bf4b4d924c127 affected from abf79bb341bf52f75f295b850abdf5f78f584311, before 45aea4fbf61e205649c29200726b9f45c1718a67 affected from abf79bb341bf52f75f295b850abdf5f78f584311, before 24641993a7dce6b1628645f4e1d97ca06c9f765d affected from abf79bb341bf52f75f295b850abdf5f78f584311, before db333ae981fb8843c383aa7dbf62cc682597d401 affected from abf79bb341bf52f75f295b850abdf5f78f584311, before 7e8436728e22181c3f12a5dbabd35ed3a8b8c593
Other versions: unaffected
|
| Linux |
affected 3.12 unaffected before 3.12 unaffected from 4.9.333 up to and including 4.9.* unaffected from 4.14.299 up to and including 4.14.* unaffected from 4.19.265 up to and including 4.19.* unaffected from 5.4.224 up to and including 5.4.* unaffected from 5.10.154 up to and including 5.10.* unaffected from 5.15.78 up to and including 5.15.* unaffected from 6.0.8 up to and including 6.0.* unaffected 6.1 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-49927 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49927
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-49927
trivy image --scanners vuln IMAGE | grep CVE-2022-49927
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/84b5cb476903003ae9ca88f32b57ff0eaefa6d4c git.kernel.org
- https://git.kernel.org/stable/c/aae35a0c8a775fa4afa6a4e7dab3f936f1f89bbb git.kernel.org
- https://git.kernel.org/stable/c/86ce0e93cf6fb4d0c447323ac66577c642628b9d git.kernel.org
- https://git.kernel.org/stable/c/925cb538bd5851154602818dc80bf4b4d924c127 git.kernel.org
- https://git.kernel.org/stable/c/45aea4fbf61e205649c29200726b9f45c1718a67 git.kernel.org
- https://git.kernel.org/stable/c/24641993a7dce6b1628645f4e1d97ca06c9f765d git.kernel.org
- https://git.kernel.org/stable/c/db333ae981fb8843c383aa7dbf62cc682597d401 git.kernel.org
- https://git.kernel.org/stable/c/7e8436728e22181c3f12a5dbabd35ed3a8b8c593 git.kernel.org
Source: the record CVE-2022-49927 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse