nfsd: set SC_STATUS_FREED in nfsd4_drop_revoked_stid for delegations
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12, 6.12.109, 6.18.50, 7.2.4
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: nfsd: set SC_STATUS_FREED in nfsd4_drop_revoked_stid for delegations nfsd4_drop_revoked_stid() handles FREE_STATEID for admin-revoked delegations but does not set SC_STATUS_FREED before releasing cl_lock. revoke_delegation() uses this flag to detect whether FREE_STATEID has already processed the delegation -- without it, the freed delegation is added to cl_revoked via list_add(), producing a use-after-free when cl_revoked is later traversed in __destroy_client(). The SC_STATUS_REVOKED path in nfsd4_free_stateid() (line 7983) already sets SC_STATUS_FREED correctly. Apply the same pattern to the SC_STATUS_ADMIN_REVOKED path in nfsd4_drop_revoked_stid().
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 8dd91e8d31febf4d9cca3ae1bb4771d33ae7ee5a · fixed in d832a0587528853d45481d1faf75d4b5d062adaf; From 8dd91e8d31febf4d9cca3ae1bb4771d33ae7ee5a · fixed in 1e4795766719ffd74b8cf0f2fde4a1350f8326bf; From 8dd91e8d31febf4d9cca3ae1bb4771d33ae7ee5a · fixed in a6d89032e5c6620d5bb44582a72555ce07bf1c2e; From 8dd91e8d31febf4d9cca3ae1bb4771d33ae7ee5a · fixed in 650d370cfbc66a96dd14d517bd704689b5bda4e5; From 6.11.6 · fixed in 6.12
- Linux Linux
6.12
- KernelLinux
From 6.12.0 · fixed in 6.12.109; From 6.13.0 · fixed in 6.18.50; From 6.19.0 · fixed in 7.2.4