# CVE-2026-22980: nfsd: provide locking for v4\_end\_grace

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-416, CWE-362
- **Published:** 2026-01-23T15:24:02.924Z
- **Modified:** 2026-11-10T13:18:31.567Z

## Who should check

- Anyone running Linux \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< ca97360860eb02e3ae4ba42c19b439a0fcecbf06; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< e8bfa2401d4c51eca6e48e9b33c798828ca9df61; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 34eb22836e0cdba093baac66599d68c4cd245a9d; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 06600719d0f7a723811c45e4d51f5b742f345309; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< ba4811c8b433bfa681729ca42cc62b6034f223b0; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 53f07d095e7e680c5e4569a55a019f2c0348cdc6; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 2857bd59feb63fcf40fe4baf55401baea6b4feb4
- Anyone running Linux 3.18

## Description

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

nfsd: provide locking for v4\_end\_grace

Writing to v4\_end\_grace can race with server shutdown and result in
memory being accessed after it was freed - reclaim\_str\_hashtbl in
particularly.

We cannot hold nfsd\_mutex across the nfsd4\_end\_grace() call as that is
held while client\_tracking\_op-\>init() is called and that can wait for
an upcall to nfsdcltrack which can write to v4\_end\_grace, resulting in a
deadlock.

nfsd4\_end\_grace() is also called by the landromat work queue and this
doesn't require locking as server shutdown will stop the work and wait
for it before freeing anything that nfsd4\_end\_grace() might access.

However, we must be sure that writing to v4\_end\_grace doesn't restart
the work item after shutdown has already waited for it.  For this we
add a new flag protected with nn-\>client\_lock.  It is set only while it
is safe to make client tracking calls, and v4\_end\_grace only schedules
work while the flag is set with the spinlock held.

So this patch adds a nfsd\_net field "client\_tracking\_active" which is
set as described.  Another field "grace\_end\_forced", is set when
v4\_end\_grace is written.  After this is set, and providing
client\_tracking\_active is set, the laundromat is scheduled.
This "grace\_end\_forced" field bypasses other checks for whether the
grace period has finished.

This resolves a race which can result in use-after-free.

## Affected and fixed versions

- Linux: \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< ca97360860eb02e3ae4ba42c19b439a0fcecbf06; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< e8bfa2401d4c51eca6e48e9b33c798828ca9df61; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 34eb22836e0cdba093baac66599d68c4cd245a9d; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 06600719d0f7a723811c45e4d51f5b742f345309; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< ba4811c8b433bfa681729ca42cc62b6034f223b0; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 53f07d095e7e680c5e4569a55a019f2c0348cdc6; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 2857bd59feb63fcf40fe4baf55401baea6b4feb4 (cvelist)
- Linux: 3.18 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-22980.md
Affected: Linux >= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, < ca97360860eb02e3ae4ba42c19b439a0fcecbf06; >= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, < e8bfa2401d4c51eca6e48e9b33c798828ca9df61; >= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, < 34eb22836e0cdba093baac66599d68c4cd245a9d; >= 7f5ef2e900d9462bf9cffaf…
Fixed in: Linux 34eb22836e0cdba093baac66599d68c4cd245a9d, Linux 06600719d0f7a723811c45e4d51f5b742f345309, Linux 53f07d095e7e680c5e4569a55a019f2c0348cdc6, Linux 2857bd59feb63fcf40fe4baf55401baea6b4feb4

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

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

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

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

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

Linux \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< ca97360860eb02e3ae4ba42c19b439a0fcecbf06; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< e8bfa2401d4c51eca6e48e9b33c798828ca9df61; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 34eb22836e0cdba093baac66599d68c4cd245a9d; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 06600719d0f7a723811c45e4d51f5b742f345309; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< ba4811c8b433bfa681729ca42cc62b6034f223b0; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 53f07d095e7e680c5e4569a55a019f2c0348cdc6; \>= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \< 2857bd59feb63fcf40fe4baf55401baea6b4feb4; Linux 3.18.

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

Yes. Fixed in Linux 34eb22836e0cdba093baac66599d68c4cd245a9d, Linux 06600719d0f7a723811c45e4d51f5b742f345309, Linux 53f07d095e7e680c5e4569a55a019f2c0348cdc6, Linux 2857bd59feb63fcf40fe4baf55401baea6b4feb4. Upgrade Linux to 2857bd59feb63fcf40fe4baf55401baea6b4feb4 or later.

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

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/ca97360860eb02e3ae4ba42c19b439a0fcecbf06>
- patch: <https://git.kernel.org/stable/c/e8bfa2401d4c51eca6e48e9b33c798828ca9df61>
- patch: <https://git.kernel.org/stable/c/34eb22836e0cdba093baac66599d68c4cd245a9d>
- patch: <https://git.kernel.org/stable/c/06600719d0f7a723811c45e4d51f5b742f345309>
- patch: <https://git.kernel.org/stable/c/ba4811c8b433bfa681729ca42cc62b6034f223b0>
- patch: <https://git.kernel.org/stable/c/53f07d095e7e680c5e4569a55a019f2c0348cdc6>
- patch: <https://git.kernel.org/stable/c/2857bd59feb63fcf40fe4baf55401baea6b4feb4>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

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

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