Kernel invalid access via premature NFS client release
Published May 21, 2024 · Updated Aug 5, 2026
Use-after-free in Linux kernel NFS client code allows local users to trigger an invalid kernel memory access during NFS mounts. In nfs4_init_client(), nfs_put_client() can release the last clp reference before clear_bit() dereferences that freed client object. Reaching the defect requires mounting two exports from one server through different NICs, and KASAN detects the resulting invalid access.
Summary
What happened
Use-after-free in Linux kernel NFS client code allows local users to trigger an invalid kernel memory access during NFS mounts. In nfs4_init_client(), nfs_put_client() can release the last clp reference before clear_bit() dereferences that freed client object. Reaching the defect requires mounting two exports from one server through different NICs, and KASAN detects the resulting invalid access.
The record
- CVE
- CVE-2021-47259
- Published
- May 21, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416
- Attack vector
- local
- Privileges
- Unavailable
Timeline
How it unfolded
- May 21, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.13
- Affected versionversion=8dcbec6d20eb881ba368d0aebc3a8a678aebb1da <3e3c7ebbfac152d08be75c92802a64a1f6471a15
- Affected versionversion=8dcbec6d20eb881ba368d0aebc3a8a678aebb1da <42c10b0db064e45f5c5ae7019bbf2168ffab766c
- Affected versionversion=8dcbec6d20eb881ba368d0aebc3a8a678aebb1da <476bdb04c501fc64bf3b8464ffddefc8dbe01577
- Affected versionversion=8dcbec6d20eb881ba368d0aebc3a8a678aebb1da <72651c6579a25317a90536181d311c663d0329ab
- Affected versionversion=8dcbec6d20eb881ba368d0aebc3a8a678aebb1da <c3b6cf64dfe4ef96e7341508d50d6998da7062c7
- Affected versionversion=8dcbec6d20eb881ba368d0aebc3a8a678aebb1da <c7eab9e2d7b4e983ce280276fb920af649955897
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo