From nobody Tue Jun 9 19:19:48 2026 X-Original-To: dev-commits-src-branches@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 4gZdyY3sQVz6gVKY for ; Tue, 09 Jun 2026 19:19:49 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gZdyY0Wkfz3QgS for ; Tue, 09 Jun 2026 19:19:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781032789; 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=K1GvGY4pc3c6MoctBvXO6tK13LShIugISATqv1qvEyY=; b=OoyGa92pfuJCP0/z0zY8uvjIXjtRpsB6rJnac2X02C1jmn4btsKmJL5dxEqbH37cu0M+bB ZfYqh9qCMJLcMC7GFYGWr8a3k/SJzilwg0KM4fuUfvzAx4BgU1aWSRcemFccNQp9W0QDMX kxVZQt5b5yhYUu7vjhgR9EUZU6KweQOB624tKb25AdV13NYye8rMdiLXzYsTXKnuXha54k tcZ5nc5psvHS5KnUw6JsvIloFS9fkIYnSqt+yGmQ+GA3G+bU0XvqJq4UWqgHPjZbDxSR4E XKCh11+9F1b1uaMTAnxdeFAYzdqaNSsIvG3wSUjsbm1gMptK+lIcd9AGDDKvAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781032789; a=rsa-sha256; cv=none; b=WlYmGjCywwHPv6+osEcvSb2/hAmYBVaLcTnaqmGLK8LR2NfB9heucPcfWxr7DoP1nbAgC1 fC1fdZ66wY9us37JYIlxsfwZ5+7mmonLIjNYlr9Pm38uLa163AqW8zb2IYhFlB9C3s3OcM Dl6eOz8Q71o+rrXWxs+DOd7HipXEwxh0605XsM3HNj4nebEyNjRpdAe2ztIIHX+H2MyoLd 0iqE3AMwTelpwEDlFC1t2GbBfKBzC/ifZREU26eLjQnCrNprnVtz16DjsJCTiICKtQPimm cGYa5A51yteIFHaqWd8ESgdkH9eYluI9b8ctD/RTs3JfzZ4CEAGS7SPmZZiG4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781032789; 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=K1GvGY4pc3c6MoctBvXO6tK13LShIugISATqv1qvEyY=; b=IoygGGd4Py5PstS40IaShkFgS4iLSWUOrd2NnSKhhqC6dtIyBXIkQI1vW9xwMo2BWaivHy MCsFy/+zbTl27+byZmzE6x2MvTMLitkpV1KBH+9j4sXom/CWxyYInQleAptkVyQbD4+16s BkHrWfy3WrlluaHofPaZaVyXAnWFCP2GRxXuCp8Kgv5P5bExvOoqQzZ0vqhUDQJsylg+68 KcKwtlmmr6H2I78ARO7o81DAeNKqrPz/QGw29j0FKMXZyPngair9+JtFVhyh0HkpyW5zgH QZzMHZTjKcfWYGAhXrYHgbsk8Ltkl6VnVUo1Odd7zRC0074znJ53mO/pEPyXcw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gZdyX71CpznwF for ; Tue, 09 Jun 2026 19:19:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f428 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 09 Jun 2026 19:19:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 0b18ec59972b - releng/15.0 - linux: Correct the issetugid check in copyout_auxargs List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: 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.0 X-Git-Reftype: branch X-Git-Commit: 0b18ec59972b1c378e1a092f5abc6bc03f614123 Auto-Submitted: auto-generated Date: Tue, 09 Jun 2026 19:19:48 +0000 Message-Id: <6a286754.3f428.18db784a@gitrepo.freebsd.org> The branch releng/15.0 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0b18ec59972b1c378e1a092f5abc6bc03f614123 commit 0b18ec59972b1c378e1a092f5abc6bc03f614123 Author: Mark Johnston AuthorDate: 2026-05-29 21:41:35 +0000 Commit: Mark Johnston CommitDate: 2026-06-08 15:39:32 +0000 linux: Correct the issetugid check in copyout_auxargs The runtime linker in glibc relies on the AT_SECURE auxv entry to know whether the executable is set-ugid, if so then various dangerous functionality such as LD_PRELOAD is disabled. The check added in commit 669414e4fb74 failed to take into account the fact that during execve, P_SUGID may not yet be set for a set-ugid process. Correct the test. Approved by: so Security: FreeBSD-SA-26:30.linux Security: CVE-2026-49413 Reported by: Minseong Kim Fixes: 669414e4fb74 ("Implement AT_SECURE properly.") Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57350 --- sys/compat/linux/linux_elf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/compat/linux/linux_elf.c b/sys/compat/linux/linux_elf.c index c9eb6aea8373..6c9f785c97e7 100644 --- a/sys/compat/linux/linux_elf.c +++ b/sys/compat/linux/linux_elf.c @@ -492,11 +492,9 @@ __linuxN(copyout_auxargs)(struct image_params *imgp, uintptr_t base) struct thread *td = curthread; Elf_Auxargs *args; Elf_Auxinfo *aarray, *pos; - struct proc *p; int error, issetugid; - p = imgp->proc; - issetugid = p->p_flag & P_SUGID ? 1 : 0; + issetugid = imgp->credential_setid ? 1 : 0; args = imgp->auxargs; aarray = pos = malloc(LINUX_AT_COUNT * sizeof(*pos), M_TEMP, M_WAITOK | M_ZERO);