CVE-2026-142923: NFS: use TCP for MOUNT when xprtsec= selects TLS
In the Linux kernel, the following vulnerability has been resolved:
NFS: use TCP for MOUNT when xprtsec= selects TLS
An NFSv2 or NFSv3 text mount that specifies xprtsec= but no mountproto= crashes in nfsinittimeoutvalues():
RIP: 0010:nfsinittimeoutvalues+0x10a/0x110 [nfs] Call Trace: nfsmount+0x1c3/0x330 [nfs] nfstrygettree+0x1e5/0x460 [nfs] nfsgettree+0x64d/0x6d0 [nfs] vfsgettree+0x2b/0xe0 vfscmdcreate+0x5f/0xd0 vfsfsconfiglocked+0x50/0x130 sesysfsconfig+0x2f9/0x3a0
nfsvalidatetransportprotocol() sets nfsserver.protocol to XPRTTRANSPORTTCPTLS when xprtsec= is present, but the switch in nfssetmounttransportprotocol() has no case for that value. mountserver.protocol stays zero, and nfsinittimeoutvalues() calls BUG() on a transport it does not recognize.
mount.nfs always appends mountproto= after probing the server's rpcbind, so only a caller that bypasses it, such as "mount -i" or a program that drives fsconfig() directly, reaches the crash.
Select TCP for MOUNT when the NFS transport is XPRTTRANSPORTTCPTLS. nfsmount() requests no transport security, so MOUNT already runs over plain TCP whenever mount.nfs supplies mountproto=tcp.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6
Event History
Frequently Asked Questions
Which mount attempts are affected in practice?
Affected attempts are NFSv2 or NFSv3 text mounts that specify xprtsec= but omit mountproto=. The crash is reachable when the caller bypasses mount.nfs, such as with mount -i or a program that invokes fsconfig() directly.
Are normal mounts through mount.nfs affected?
mount.nfs probes rpcbind and always appends mountproto=, so it does not reach the crash condition described. The issue is limited to callers that submit the mount configuration without that option.
What happens when the vulnerable mount request is made?
The kernel can crash in nfs_init_timeout_values() because the MOUNT transport protocol remains unset after xprtsec= selects TCP/TLS. This is a denial-of-service condition for the affected system.
What can be done if the fix cannot be applied immediately?
Avoid direct NFSv2 or NFSv3 mount requests that combine xprtsec= with no mountproto=. Use mount.nfs rather than mount -i or direct fsconfig() calls, or explicitly supply a mountproto= value.