# CVE-2026-72472: nfs: use nfsi-\>rwsem to protect traversal of the file lock list

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-26)
- **Published:** 2026-08-15T05:57:13.752Z
- **Modified:** 2026-10-30T13:19:53.063Z

## Who should check

- Anyone running Linux \>= c69899a17ca4836230720e65493942d9582a0424, \< 7813adb38c88573b730219c1dc1b630dfab7165e; \>= c69899a17ca4836230720e65493942d9582a0424, \< 1cda95bf2e9c0e6b63545b7565fe4a1e474322f4; \>= c69899a17ca4836230720e65493942d9582a0424, \< f161ef7b0dd2f51fdb002ba4a4e9bf0ee7409218; \>= c69899a17ca4836230720e65493942d9582a0424, \< e68035178e65e2b3aa386ce61202ff33724ae418; \>= c69899a17ca4836230720e65493942d9582a0424, \< 4837fb36219e6c08b666bc31a86841bad8526358
- Anyone running Linux 4.0

## Description

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

nfs: use nfsi-\>rwsem to protect traversal of the file lock list

Lingfeng identified a bug and suggested two solutions, but both appear
to have issues.

Generally, we cannot release flc\_lock while iterating over the file lock
list to avoid use-after-free (UAF) problems with file locks. However,
functions like nfs\_delegation\_claim\_locks and nfs4\_reclaim\_locks cannot
adhere to this rule because recover\_lock or nfs4\_lock\_delegation\_recall
may take a long time. To resolve this, NFS switches to using nfsi-\>rwsem
for the same protection, and nfs\_reclaim\_locks follows this approach.
Although nfs\_delegation\_claim\_locks uses so\_delegreturn\_mutex instead,
this is inadequate since a single inode can have multiple nfs4\_state
instances. Therefore, the fix is to also use nfsi-\>rwsem in this case.

Furthermore, after commit c69899a17ca4 ("NFSv4: Update of VFS byte range
lock must be atomic with the stateid update"), the functions
nfs4\_locku\_done and nfs4\_lock\_done also break this rule because they
call locks\_lock\_inode\_wait without holding nfsi-\>rwsem. Simply adding
this protection could cause many deadlocks, so instead, the call to
locks\_lock\_inode\_wait is moved into \_nfs4\_proc\_setlk. Regarding the bug
fixed by commit c69899a17ca4 ("NFSv4: Update of VFS byte range
lock must be atomic with the stateid update"), it has been resolved
after commit 0460253913e5 ("NFSv4: nfs4\_do\_open() is incorrectly triggering
state recovery") because all slots are drained before calling
nfs4\_do\_reclaim, which prevents concurrent stateid changes along this path.
Also, nfs\_delegation\_claim\_locks does not cause this concurrency either
since when \_nfs4\_proc\_setlk is called with NFS\_DELEGATED\_STATE, no RPC is
sent, so nfs4\_lock\_done is not called. Therefore,
nfs4\_lock\_delegation\_recall from nfs\_delegation\_claim\_locks is the first
time the stateid is set.

## Affected and fixed versions

- Linux: \>= c69899a17ca4836230720e65493942d9582a0424, \< 7813adb38c88573b730219c1dc1b630dfab7165e; \>= c69899a17ca4836230720e65493942d9582a0424, \< 1cda95bf2e9c0e6b63545b7565fe4a1e474322f4; \>= c69899a17ca4836230720e65493942d9582a0424, \< f161ef7b0dd2f51fdb002ba4a4e9bf0ee7409218; \>= c69899a17ca4836230720e65493942d9582a0424, \< e68035178e65e2b3aa386ce61202ff33724ae418; \>= c69899a17ca4836230720e65493942d9582a0424, \< 4837fb36219e6c08b666bc31a86841bad8526358 (cvelist)
- Linux: 4.0 (cvelist)

## Mitigation

- Upgrade Linux to 4837fb36219e6c08b666bc31a86841bad8526358 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-72472.md
Affected: Linux >= c69899a17ca4836230720e65493942d9582a0424, < 7813adb38c88573b730219c1dc1b630dfab7165e; >= c69899a17ca4836230720e65493942d9582a0424, < 1cda95bf2e9c0e6b63545b7565fe4a1e474322f4; >= c69899a17ca4836230720e65493942d9582a0424, < f161ef7b0dd2f51fdb002ba4a4e9bf0ee7409218; >= c69899a17ca4836230720e6…
Fixed in: Linux 7813adb38c88573b730219c1dc1b630dfab7165e, Linux 1cda95bf2e9c0e6b63545b7565fe4a1e474322f4, Linux 4837fb36219e6c08b666bc31a86841bad8526358

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-2026-72472 being exploited?

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

### How serious is CVE-2026-72472?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-72472?

Linux \>= c69899a17ca4836230720e65493942d9582a0424, \< 7813adb38c88573b730219c1dc1b630dfab7165e; \>= c69899a17ca4836230720e65493942d9582a0424, \< 1cda95bf2e9c0e6b63545b7565fe4a1e474322f4; \>= c69899a17ca4836230720e65493942d9582a0424, \< f161ef7b0dd2f51fdb002ba4a4e9bf0ee7409218; \>= c69899a17ca4836230720e65493942d9582a0424, \< e68035178e65e2b3aa386ce61202ff33724ae418; \>= c69899a17ca4836230720e65493942d9582a0424, \< 4837fb36219e6c08b666bc31a86841bad8526358; Linux 4.0.

### Is there a fix for CVE-2026-72472?

Yes. Fixed in Linux 7813adb38c88573b730219c1dc1b630dfab7165e, Linux 1cda95bf2e9c0e6b63545b7565fe4a1e474322f4, Linux 4837fb36219e6c08b666bc31a86841bad8526358. Upgrade Linux to 4837fb36219e6c08b666bc31a86841bad8526358 or later.

### How do I check if I'm affected by CVE-2026-72472?

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

- other: <https://git.kernel.org/stable/c/7813adb38c88573b730219c1dc1b630dfab7165e>
- other: <https://git.kernel.org/stable/c/1cda95bf2e9c0e6b63545b7565fe4a1e474322f4>
- other: <https://git.kernel.org/stable/c/f161ef7b0dd2f51fdb002ba4a4e9bf0ee7409218>
- other: <https://git.kernel.org/stable/c/e68035178e65e2b3aa386ce61202ff33724ae418>
- other: <https://git.kernel.org/stable/c/4837fb36219e6c08b666bc31a86841bad8526358>

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

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