# CVE-2022-49316: NFSv4: Don't hold the layoutget locks across multiple RPC calls

> 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.21% (percentile 7, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-02-26T02:10:43.569Z
- **Modified:** 2026-06-17T05:17:41.700Z

## Who should check

- Anyone running Linux \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 6b3fc1496e7227cd6a39a80bbfb7588ef7c7a010; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< a2b3be930e79cc5d9d829f158e31172b2043f0cd; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 0ee5b9644f06b4d3cdcd9544f43f63312e425a4c; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< d4c2a041ed3ba114502d5ed6ace5b1a48d637a8e; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 08d7a26d115cc7892668baa9750f64bd8baca29b; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< ea759ae0a9ae5acee677d722129710ac89cc59c1; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 6949493884fe88500de4af182588e071cf1544ee
- Anyone running Linux 4.18

## Description

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

NFSv4: Don't hold the layoutget locks across multiple RPC calls

When doing layoutget as part of the open() compound, we have to be
careful to release the layout locks before we can call any further RPC
calls, such as setattr(). The reason is that those calls could trigger
a recall, which could deadlock.

## Affected and fixed versions

- Linux: \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 6b3fc1496e7227cd6a39a80bbfb7588ef7c7a010; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< a2b3be930e79cc5d9d829f158e31172b2043f0cd; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 0ee5b9644f06b4d3cdcd9544f43f63312e425a4c; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< d4c2a041ed3ba114502d5ed6ace5b1a48d637a8e; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 08d7a26d115cc7892668baa9750f64bd8baca29b; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< ea759ae0a9ae5acee677d722129710ac89cc59c1; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 6949493884fe88500de4af182588e071cf1544ee (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- Upgrade Linux to 6949493884fe88500de4af182588e071cf1544ee 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-49316. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49316.md
Affected: Linux >= 56f487f8c8fc5d6e582b79a86fc132d050129e15, < 6b3fc1496e7227cd6a39a80bbfb7588ef7c7a010; >= 56f487f8c8fc5d6e582b79a86fc132d050129e15, < a2b3be930e79cc5d9d829f158e31172b2043f0cd; >= 56f487f8c8fc5d6e582b79a86fc132d050129e15, < 0ee5b9644f06b4d3cdcd9544f43f63312e425a4c; >= 56f487f8c8fc5d6e582b79a…
Fixed in: Linux 6b3fc1496e7227cd6a39a80bbfb7588ef7c7a010, Linux 0ee5b9644f06b4d3cdcd9544f43f63312e425a4c, Linux 08d7a26d115cc7892668baa9750f64bd8baca29b, Linux 6949493884fe88500de4af182588e071cf1544ee

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-49316 being exploited?

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

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

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

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

Linux \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 6b3fc1496e7227cd6a39a80bbfb7588ef7c7a010; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< a2b3be930e79cc5d9d829f158e31172b2043f0cd; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 0ee5b9644f06b4d3cdcd9544f43f63312e425a4c; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< d4c2a041ed3ba114502d5ed6ace5b1a48d637a8e; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 08d7a26d115cc7892668baa9750f64bd8baca29b; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< ea759ae0a9ae5acee677d722129710ac89cc59c1; \>= 56f487f8c8fc5d6e582b79a86fc132d050129e15, \< 6949493884fe88500de4af182588e071cf1544ee; Linux 4.18.

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

Yes. Fixed in Linux 6b3fc1496e7227cd6a39a80bbfb7588ef7c7a010, Linux 0ee5b9644f06b4d3cdcd9544f43f63312e425a4c, Linux 08d7a26d115cc7892668baa9750f64bd8baca29b, Linux 6949493884fe88500de4af182588e071cf1544ee. Upgrade Linux to 6949493884fe88500de4af182588e071cf1544ee or later.

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

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/6b3fc1496e7227cd6a39a80bbfb7588ef7c7a010>
- patch: <https://git.kernel.org/stable/c/a2b3be930e79cc5d9d829f158e31172b2043f0cd>
- patch: <https://git.kernel.org/stable/c/0ee5b9644f06b4d3cdcd9544f43f63312e425a4c>
- patch: <https://git.kernel.org/stable/c/d4c2a041ed3ba114502d5ed6ace5b1a48d637a8e>
- patch: <https://git.kernel.org/stable/c/08d7a26d115cc7892668baa9750f64bd8baca29b>
- patch: <https://git.kernel.org/stable/c/ea759ae0a9ae5acee677d722129710ac89cc59c1>
- patch: <https://git.kernel.org/stable/c/6949493884fe88500de4af182588e071cf1544ee>

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

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