rpc.mountd CVE-2025-12801 announcement
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | mountd: Minor refactor of get_rootfh()utils/ | +17 | 0 replies | |
| 2/4 | mountd: Separate lookup of the exported directory and the mount pathsupport/ support/ utils/ | +86 | 0 replies | |
| 3/4 | support: Add a mini-library to extract and apply RPC credentialsaclocal/ support/ support/ +4 more | +368 | 0 replies | |
| 4/4 | Fix access checks when mounting subdirectories in NFSv3nfs.conf support/ support/ +2 more | +91 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Jeff Layton |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] rpc.mountd CVE-2025-12801 announcement
Vulnerability discovered in rpc.mountd in the nfs-utils package
A vulnerability was recently discovered in the rpc.mountd daemon in the nfs-utils package for Linux, that allows a NFSv3 client to escalate the privileges assigned to it in the /etc/exports file at mount time. In particular, it allows the client to access any subdirectory or subtree of an exported directory, regardless of the set file permissions, and regardless of any 'root_squash' or 'all_squash' attributes that would normally be expected to apply to that client.
The vulnerability does affect all known instances of the Linux kernel NFS server exporting the NFSv2 and/or NFSv3 protocols. It does not affect those Linux kernel NFS servers that only export filesystems using the NFSv4 protocol.
This issue has been fixed in nfs-utils 2.8.6 and later, with an upgrade advised for all users.
Trond Myklebust (4):
mountd: Minor refactor of get_rootfh()
mountd: Separate lookup of the exported directory and the mount path
support: Add a mini-library to extract and apply RPC credentials Fix access checks when mounting subdirectories in NFSv3
aclocal/libtirpc.m4 | 12 +++ nfs.conf | 1 + support/include/Makefile.am | 1 + support/include/nfs_ucred.h | 44 ++++++++++ support/include/nfsd_path.h | 8 ++ support/misc/Makefile.am | 2 +- support/misc/nfsd_path.c | 59 +++++++++++++ support/misc/ucred.c | 162 ++++++++++++++++++++++++++++++++++++ support/nfs/Makefile.am | 2 +- support/nfs/ucred.c | 147 ++++++++++++++++++++++++++++++++ utils/mountd/mountd.c | 111 +++++++++++++++++++----- utils/mountd/mountd.man | 26 ++++++ 12 files changed, 552 insertions(+), 23 deletions(-) create mode 100644 support/include/nfs_ucred.h create mode 100644 support/misc/ucred.c create mode 100644 support/nfs/ucred.c
Signature · 1 line
2.53.0