From nobody Tue Nov 17 17:08:08 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jTWQK1W1jz71SHx for ; Tue, 17 Nov 2026 17:08:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jTWQJ3Xf1z4Md6 for ; Tue, 17 Nov 2026 17:08:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794935288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B1aFawh+6liarM66EL5PHSz6A1MR/Xxo+cTpmgoAbJE=; b=IqLPWlylQkL/2O9z4yM7JxvYO9FcIDD1jCZbA7v10SWicp+60KB0RQCP3bGFYBE1qba1/0 pfp4bnQhAVFXtm8b2gTjd9KRu818z8E9JXui/lLxvlR+oDh0DdE8lTqtmTFL/zdfE9FDyM Bb3qn4NSDbkqU76KvfPQbh0Pi3aTvXo1grxxqGGh0db93/AkBhHUllGyeNQK/d5Qd1U8/W Gj/xh3nPOEHNp3z0bHpSCtB2HDHFxbkJOIEMrqUEyTr0wMt9i97rRf3eCycJUSVvu/x+BL j/ttoXzg9z8nxnf7vCr7YdB7THk8h/ETiMn9bOnc/dKlniR9tsnBjCexWPJdOA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794935288; b=N3BoceOYiyO0iL5laf0HPLwrEhn4qHJx0HjZwo/PJGGlxpV/o2fK1+ZajYtcUdAcFoPsFN QHfeQNdSyuSL/G06Atux5kmetnog7PCTuittPAdScP7u2Lc+WBZiEfZ3prV7xv9ALvaHXW 0H0McQMDO4T5v8yrUAySKz+NsBwyILJHqvT6gkVRw+SYonbDHlE3umph5oqITzU76XxGJq 4Wb5CxXYDzchwMBHztSEkKiQyLw9FQO9FaWGSqGI+e3uA+9xA4xyMSoccuEtkGLq0Hgi9+ cPcX02XpHneYC13rCnAh2SPRtZyVjTt67XnYOCnF2YgGSVO/SBMXZ+lfTG/77A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794935288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B1aFawh+6liarM66EL5PHSz6A1MR/Xxo+cTpmgoAbJE=; b=VdOs62gsLzcKarckXX9DomGiuJBTlBmSoTimdox39c9fvB9uIC4dwX01b9AZnd20bd3pK8 n50IymBiXFo4sQGxW0qIce52gz3wYb6gQusVNxHDLMQKq9lT1L54PXi32gHdxgvs8oZcPD 59Ug5Y4dggocEeKA+aJR5m21AE1CAb4pDkzOP0askoQx99MlGPi7omw0oXe0tEYpvqQ3n3 HJNopXQGFnEXW1r7R4+TPj1kXdmtQr9ZFg4Fbyr4an2fkNDpD5xuVFFWUD1Ewd/+Rlt2Xt C9HNaieimQIMVna2+HqdKlf/0qzeFrq2wbAIWblhtl50h/gLpbMf4eyWM/1vkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jTWQJ2tw3zrn9 for ; Tue, 17 Nov 2026 17:08:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1cef2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 17 Nov 2026 17:08:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 0ed72563c53b - releng/15.1 - gssd: Fix unix credential squashing when accepting a context List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/releng/15.1 X-Git-Reftype: branch X-Git-Commit: 0ed72563c53b815b6633167c987c78425523ee61 Auto-Submitted: auto-generated Date: Tue, 17 Nov 2026 17:08:08 +0000 Message-Id: <6afc89f8.1cef2.ba9cc2a@gitrepo.freebsd.org> The branch releng/15.1 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0ed72563c53b815b6633167c987c78425523ee61 commit 0ed72563c53b815b6633167c987c78425523ee61 Author: Mark Johnston AuthorDate: 2026-10-27 14:31:32 +0000 Commit: Mark Johnston CommitDate: 2026-11-16 21:21:08 +0000 gssd: Fix unix credential squashing when accepting a context gssd_accept_sec_context_lucid_v1_1_svc() handles context acceptance when MIT Kerberos is in use. Its last operation is to map the Kerberos principal to a local credential subsequently used by the NFS server for the authenticated session. If it fails to resolve the principal to a local user, it is supposed to squash the client's credentials. However, it failed to set the UID field, which will end up set to zero, corresponding to the root user on the server. As a result, an authenticated principal that doesn't map to a local user ends up being treated as UID 0. Fix this. Use names for the nobody user and group. Approved by: so Security: FreeBSD-SA-26:78.gssd Security: CVE-2026-101315 Reported by: Erik Power Reported by: SecBuddyF, Tencent KeenLab Reviewed by: rmacklem, cy Fixes: e3ac01e18eb3 ("kgssapi: Fix the kgssapi so that it can use MIT Kerberos") Sponsored by: The FreeBSD Foundation --- usr.sbin/gssd/gssd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/gssd/gssd.c b/usr.sbin/gssd/gssd.c index 54d2062dd29a..a939312633c1 100644 --- a/usr.sbin/gssd/gssd.c +++ b/usr.sbin/gssd/gssd.c @@ -28,6 +28,7 @@ */ #include +#include #include #include #include @@ -951,7 +952,8 @@ gssd_accept_sec_context_lucid_v1_1_svc(accept_sec_context_lucid_v1_args *argp, result->gidlist.gidlist_val[i] = groups[i]; } else { - result->gid = 65534; + result->uid = UID_NOBODY; + result->gid = GID_NOBODY; result->gidlist.gidlist_len = 0; result->gidlist.gidlist_val = NULL; gssd_verbose_out("gssd_pname_to_uid: mapped" @@ -1184,7 +1186,7 @@ gssd_pname_to_uid_1_svc(pname_to_uid_args *argp, pname_to_uid_res *result, struc " to uid=%d, gid=%d\n", (int)result->uid, (int)result->gid); } else { - result->gid = 65534; + result->gid = GID_NOBODY; result->gidlist.gidlist_len = 0; result->gidlist.gidlist_val = NULL; gssd_verbose_out("gssd_pname_to_uid: mapped"