CVE-2026-99354: sunrpc: pin gss module across auth_domain RCU free
In the Linux kernel, the following vulnerability has been resolved:
sunrpc: pin gss module across authdomain RCU free
A gss authdomain stores a raw pointer to svcauthopsgss in dom->flavour, and its release queues svcauthgssdomainreleasercu() via callrcu(). Both live in authrpcgss.ko text, and nothing pins the module while a domain referencing it is reachable. rmmod authrpcgss can therefore unmap that text while an NFSD export still holds a reference to the domain.
The export cache is one such holder. When the export is finally released, the domain reference drops from module text:
svcexportput() authdomainput(exp->exclient) authdomainrelease() dom->flavour->domainrelease(dom) / into module text / svcauthgssdomainrelease() callrcu(&dom->rcuhead, svcauthgssdomainreleasercu)
Once authrpcgss is unloaded, the domainrelease call lands in unmapped memory. The rcubarrier() in exitrpcsecgss() does not help: it waits only for callbacks already queued, and this one is not queued until the export goes away.
NFSD's NFSv4 objects import symbols from authrpcgss.ko, so only a server built without CONFIGNFSDV4 can unload authrpcgss while exports still name a gss domain.
Take a module reference in svcauthgssregisterpseudoflavor() before publishing the domain and drop it at the end of svcauthgssdomainreleasercu(). The rcubarrier() then holds the module image until this callback has returned.
[ cel: rewrote description ]
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.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
In svcauth_gss_register_pseudoflavor(), take a module reference before publishing the domain, and drop it at the end of svcauth_gss_domain_release_rcu().