Linux
nfsd: avoid leaking pre-allocated openowner on unconfirmed retry race
In the Linux kernel, the following vulnerability has been resolved: nfsd: avoid leaking pre-allocated openowner on unconfirmed retry race When find_or_alloc_open_stateowner() encounters an unconfirmed owner, it calls release_openowner() and sets oo = NULL. Control then falls through past the `if (oo)` guard -- which would have freed any pre-allocated `new` -- and unconditionally executes `new = alloc_stateowner(...)`. If `new` was already allocated on a prior iteration, the pointer is silently overwritten and the previous allocation (slab object + owner name buffer) is leaked. This requires a race: two NFSv4.0 OPEN threads with the same owner string, where a concurrent thread inserts a new unconfirmed owner into the hash between retry iterations. The window is narrow but repeatable under adversarial conditions. Fix by adding `goto retry` after `oo = NULL` so the already-allocated `new` is reused on the next iteration rather than overwritten.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 23df17788c6212809848f836b10c4f85b16843a5, < c9aefb2b5f11337c9202c5bd0c45d71198449718
- >= 23df17788c6212809848f836b10c4f85b16843a5, < 017a6150106b054cc84d1b0582d97bd3a74d4281
- >= 23df17788c6212809848f836b10c4f85b16843a5, < a10bf67fe06469a71a401f72f328237345d553c0
- >= 23df17788c6212809848f836b10c4f85b16843a5, < 57aee7a35bb12753057c5b65d72d1f46c0e95b07
Fixed in c9aefb2b5f11337c9202c5bd0c45d71198449718, 017a6150106b054cc84d1b0582d97bd3a74d4281, a10bf67fe06469a71a401f72f328237345d553c0, 57aee7a35bb12753057c5b65d72d1f46c0e95b07
- 6.10
Fixed in 0, 6.12.95, 6.18.38, 7.1.3, 7.2
Mitigation
Upgrade Linux to c9aefb2b5f11337c9202c5bd0c45d71198449718 or 017a6150106b054cc84d1b0582d97bd3a74d4281 or a10bf67fe06469a71a401f72f328237345d553c0 or 57aee7a35bb12753057c5b65d72d1f46c0e95b07 or later.
Upgrade Linux to 0 or 6.12.95 or 6.18.38 or 7.1.3 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.