NFSv4/pnfs: key the data server cache on the NFS version
Published Sep 17, 2026
7.5
HIGHCVSS 3.1
EPSS 0.72%
Description
nfs4_pnfs_ds_add() keys the per-net data server cache on the multipath address set alone, and struct nfs4_pnfs_ds records no version. That suffices for the files layout driver, which always connects with version 4, but flexfiles takes its version tuple from GETDEVICEINFO per device, and one address can legitimately serve both NFSv3 and NFSv4.
Two deviceids on one address with different ds_versions[0].version therefore share a single nfs4_pnfs_ds, and whichever mirror connects first pins ds_clp to its own version. The other one is handed that client anyway, so it selects rpc_call_ops for a version the connection does not speak, and the mismatched sequence-slot handling dereferences NULL.
Add the version to the cache key so the two cannot alias, giving each version its own nfs4_pnfs_ds and connection while both mirrors stay usable. Only the major version is compared, since that is what selects rpc_call_ops and rpc_ops; v4.0 and v4.1 keep sharing a client. The files layout driver passes the 4 it already hardcodes at connect time.
Affected products
-
Affected
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
-
Affected
- 4.0
Unaffected
- ≥ 0, < 4.0
- ≥ 5.10.270, ≤ 5.10.*
- ≥ 5.15.221, ≤ 5.15.*
- ≥ 6.1.188, ≤ 6.1.*
- ≥ 6.12.110, ≤ 6.12.*
- ≥ 6.18.52, ≤ 6.18.*
- ≥ 6.6.157, ≤ 6.6.*
- ≥ 7.2.6, ≤ 7.2.*
- 7.3-rc1
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| Linux | Linux | unaffected | Affected
|
| Linux | Linux | affected | Affected
Unaffected
|
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
No CWE recorded.
References (9)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-81695 Advisory
- https://git.kernel.org/stable/c/02e160922bc83cd25e346a028ed43cbdb0b57e1a
- https://git.kernel.org/stable/c/13c23c5cb977f66390795437fd3837887ce1fd75
- https://git.kernel.org/stable/c/27f640cd92eebf5c2f64336be7ca24f4636390cb
- https://git.kernel.org/stable/c/bbc975cfb07a146843fde1126c43441e76177539
- https://git.kernel.org/stable/c/bc7aa9d8aff826031ffe25eba7f2f3acafcbf7a1
- https://git.kernel.org/stable/c/dd5bd091daa48c6ed8f9235ddf448aa288a0881f
- https://git.kernel.org/stable/c/f2994ba1263d9e88d3d9ae1d097c5cf811d4bfa5
- https://git.kernel.org/stable/c/ffb100b0da0e217d5d63ce6fe092f9c29e59f7dd
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
No data
Red Hat
No data
GitHub
No data