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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 1cda95bf2e9c0e6b63545b7565fe4a1e474322f4, 4837fb36219e6c08b666bc31a86841bad8526358, 7813adb38c88573b730219c1dc1b630dfab7165e, e68035178e65e2b3aa386ce61202ff33724ae418, f161ef7b0dd2f51fdb002ba4a4e9bf0ee7409218 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-15 · Modified: 2026-10-30
- Aliases: UBUNTU-CVE-2026-72472, DEBIAN-CVE-2026-72472
- Record: https://cvemate.com/vulnerability/CVE-2026-72472 · JSON: https://cvemate.com/vulnerability/CVE-2026-72472/json

## Description

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

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.644%, percentile 52.324%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 171)

- debian linux (Debian): All versions (No fix recorded) \| \< 6.1.192-1 \| \< 6.12.100-1 \| \< 7.1.5-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-34.34
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1013.13
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-7.0 (Ubuntu): \< 7.0.0-1013.13~24.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/1cda95bf2e9c0e6b63545b7565fe4a1e474322f4>
- <https://git.kernel.org/stable/c/f161ef7b0dd2f51fdb002ba4a4e9bf0ee7409218>
- <https://git.kernel.org/stable/c/e68035178e65e2b3aa386ce61202ff33724ae418>
- <https://git.kernel.org/stable/c/4837fb36219e6c08b666bc31a86841bad8526358>
- <https://ubuntu.com/security/CVE-2026-72472>
- <https://www.cve.org/CVERecord?id=CVE-2026-72472>
- <https://git.kernel.org/linus/4837fb36219e6c08b666bc31a86841bad8526358>
- <https://ubuntu.com/security/notices/USN-8781-1>
- <https://ubuntu.com/security/notices/USN-8816-1>
- <https://ubuntu.com/security/notices/USN-8816-2>
- <https://ubuntu.com/security/notices/USN-8816-3>
- <https://ubuntu.com/security/notices/USN-8816-4>
- <https://ubuntu.com/security/notices/USN-8888-1>
- <https://ubuntu.com/security/notices/USN-8888-2>
- <https://security-tracker.debian.org/tracker/CVE-2026-72472>
- <https://git.kernel.org/stable/c/7813adb38c88573b730219c1dc1b630dfab7165e>
- <https://ubuntu.com/security/notices/USN-9003-1>
- <https://ubuntu.com/security/notices/USN-9043-1>

---

Data as of 2026-12-05T05:06:26.991Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
