nfsd: fix dentry ref leak on V4ROOT export filehandle lookup
- 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.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: fix dentry ref leak on V4ROOT export filehandle lookup nfsd_set_fh_dentry() leaks the dentry reference from exportfs_decode_fh_raw() when the NFS3_FHSIZE or NFS_FHSIZE switch cases detect NFSEXP_V4ROOT and goto out. The out: label calls exp_put() but never dput(dentry), and fhp->fh_dentry was never assigned so fh_put() cannot compensate. A crafted NFSv3 filehandle targeting a V4ROOT export's fsid triggers the leak on every request.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From ef7f6c4904d03ccd7478e1ac20ed75f79c4ac444 · fixed in d493cf57f4c4dae5396cd6ad41e5c209d0615a81; From ef7f6c4904d03ccd7478e1ac20ed75f79c4ac444 · fixed in c1ae0f973bcba5730871e35976a0ab6878fdac34; From ef7f6c4904d03ccd7478e1ac20ed75f79c4ac444 · fixed in 11db8df188b34bdb8c6a3a0bf438e5fc8cd75aca; From ef7f6c4904d03ccd7478e1ac20ed75f79c4ac444 · fixed in 6247023fbbec1325029f2d5f2a7cdc0f9f9ea15a
- 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