# CVE-2022-49927: nfs4: Fix kmemleak when allocate slot failed

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-05-01T14:11:05.404Z
- **Modified:** 2026-06-17T05:19:32.623Z

## Who should check

- Anyone running Linux \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 84b5cb476903003ae9ca88f32b57ff0eaefa6d4c; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< aae35a0c8a775fa4afa6a4e7dab3f936f1f89bbb; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 86ce0e93cf6fb4d0c447323ac66577c642628b9d; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 925cb538bd5851154602818dc80bf4b4d924c127; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 45aea4fbf61e205649c29200726b9f45c1718a67; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 24641993a7dce6b1628645f4e1d97ca06c9f765d; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< db333ae981fb8843c383aa7dbf62cc682597d401; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 7e8436728e22181c3f12a5dbabd35ed3a8b8c593
- Anyone running Linux 3.12

## 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

## Affected and fixed versions

- Linux: \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 84b5cb476903003ae9ca88f32b57ff0eaefa6d4c; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< aae35a0c8a775fa4afa6a4e7dab3f936f1f89bbb; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 86ce0e93cf6fb4d0c447323ac66577c642628b9d; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 925cb538bd5851154602818dc80bf4b4d924c127; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 45aea4fbf61e205649c29200726b9f45c1718a67; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 24641993a7dce6b1628645f4e1d97ca06c9f765d; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< db333ae981fb8843c383aa7dbf62cc682597d401; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 7e8436728e22181c3f12a5dbabd35ed3a8b8c593 (cvelist)
- Linux: 3.12 (cvelist)

## Mitigation

- Upgrade Linux to 7e8436728e22181c3f12a5dbabd35ed3a8b8c593 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49927. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49927.md
Affected: Linux >= abf79bb341bf52f75f295b850abdf5f78f584311, < 84b5cb476903003ae9ca88f32b57ff0eaefa6d4c; >= abf79bb341bf52f75f295b850abdf5f78f584311, < aae35a0c8a775fa4afa6a4e7dab3f936f1f89bbb; >= abf79bb341bf52f75f295b850abdf5f78f584311, < 86ce0e93cf6fb4d0c447323ac66577c642628b9d; >= abf79bb341bf52f75f295b8…
Fixed in: Linux 84b5cb476903003ae9ca88f32b57ff0eaefa6d4c, Linux 86ce0e93cf6fb4d0c447323ac66577c642628b9d, Linux 925cb538bd5851154602818dc80bf4b4d924c127, Linux 45aea4fbf61e205649c29200726b9f45c1718a67, Linux 24641993a7dce6b1628645f4e1d97ca06c9f765d, Linux 7e8436728e22181c3f12a5dbabd35ed3a8b8c593

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.
```

## FAQ

### Is CVE-2022-49927 being exploited?

There is no confirmed exploitation: CVE-2022-49927 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49927?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49927?

Linux \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 84b5cb476903003ae9ca88f32b57ff0eaefa6d4c; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< aae35a0c8a775fa4afa6a4e7dab3f936f1f89bbb; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 86ce0e93cf6fb4d0c447323ac66577c642628b9d; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 925cb538bd5851154602818dc80bf4b4d924c127; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 45aea4fbf61e205649c29200726b9f45c1718a67; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 24641993a7dce6b1628645f4e1d97ca06c9f765d; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< db333ae981fb8843c383aa7dbf62cc682597d401; \>= abf79bb341bf52f75f295b850abdf5f78f584311, \< 7e8436728e22181c3f12a5dbabd35ed3a8b8c593; Linux 3.12.

### Is there a fix for CVE-2022-49927?

Yes. Fixed in Linux 84b5cb476903003ae9ca88f32b57ff0eaefa6d4c, Linux 86ce0e93cf6fb4d0c447323ac66577c642628b9d, Linux 925cb538bd5851154602818dc80bf4b4d924c127, Linux 45aea4fbf61e205649c29200726b9f45c1718a67, Linux 24641993a7dce6b1628645f4e1d97ca06c9f765d, Linux 7e8436728e22181c3f12a5dbabd35ed3a8b8c593. Upgrade Linux to 7e8436728e22181c3f12a5dbabd35ed3a8b8c593 or later.

### How do I check if I'm affected by CVE-2022-49927?

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.

## References

- patch: <https://git.kernel.org/stable/c/84b5cb476903003ae9ca88f32b57ff0eaefa6d4c>
- patch: <https://git.kernel.org/stable/c/aae35a0c8a775fa4afa6a4e7dab3f936f1f89bbb>
- patch: <https://git.kernel.org/stable/c/86ce0e93cf6fb4d0c447323ac66577c642628b9d>
- patch: <https://git.kernel.org/stable/c/925cb538bd5851154602818dc80bf4b4d924c127>
- patch: <https://git.kernel.org/stable/c/45aea4fbf61e205649c29200726b9f45c1718a67>
- patch: <https://git.kernel.org/stable/c/24641993a7dce6b1628645f4e1d97ca06c9f765d>
- patch: <https://git.kernel.org/stable/c/db333ae981fb8843c383aa7dbf62cc682597d401>
- patch: <https://git.kernel.org/stable/c/7e8436728e22181c3f12a5dbabd35ed3a8b8c593>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49927>

HTML: <https://flawdb.com/CVE-2022-49927> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49927>
