sunrpc: treat empty auth.unix.gid replies as negative entries

State
Published
Severity
Not Scored
Published
Nov 19, 2026
Updated
Nov 23, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

sunrpc: treat empty auth.unix.gid replies as negative entries

When rpc.mountd cannot resolve a uid (getpwuid() or getgrouplist() failure, e.g. while winbind or sssd is briefly unreachable), it answers the auth.unix.gid upcall with zero groups. unix_gid_parse() installs that as a valid positive entry, and svcauth_unix_set_client() then replaces the credential's group list with the empty one on every request, RPCSEC_GSS included via svcauth_gss_set_client(). One failed lookup strips that uid of all supplementary groups on every export for up to mountd's configured TTL (30 minutes by default), long after the NSS backend has recovered.

mountd cannot send an empty list for a successful lookup, since getgrouplist(3) always includes at least the user's primary group, so a zero-group reply can only mean the lookup failed. Record it as a negative entry: unix_gid_find() then returns -ENOENT and svcauth_unix_set_client() keeps the groups the RPC credential already carries. This is the fallback that commit 3fc605a2aa38 ("[PATCH] knfsd: allow the server to provide a gid list when using AUTH_UNIX authentication") promised when no answer is available, and the same state try_to_negate_entry() already creates when no listener holds the channel open.

ProductVersions
Linux Linux3fc605a2aa38899c12180ca311f1eeb61a6d867e to before 544d9ac0f6ea71ef743b249eb5dcd4af4fcf9497 Affected3fc605a2aa38899c12180ca311f1eeb61a6d867e to before 7257ffbd64309a39b1c5febb8d1709072837e0e1 Affected3fc605a2aa38899c12180ca311f1eeb61a6d867e to before d449a7448cf18f06eda673095be653d5cc44ae70 Affected3fc605a2aa38899c12180ca311f1eeb61a6d867e to before c687133dce7fff425a943057b891e782719e112a Affected3fc605a2aa38899c12180ca311f1eeb61a6d867e to before 3a791bd9456839f8f13c4686b2287524a0a04141 Affected3fc605a2aa38899c12180ca311f1eeb61a6d867e to before 8067c654ae8c6d88aa0d499e9974b59ab2fe5042 Affected3fc605a2aa38899c12180ca311f1eeb61a6d867e to before 9d161fa805f49dd21d131065485065067bb96c8a Affected3fc605a2aa38899c12180ca311f1eeb61a6d867e to before a12cc0930235b86b934ade7c077a1935c2ac333d Affected
Linux Linux2.6.21 Affectedbefore 2.6.21 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.