From nobody Tue Jun 9 19:19:11 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 4gZdxq3Yvxz6gVCZ for ; Tue, 09 Jun 2026 19:19:11 +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 4gZdxq0vr9z3PNX for ; Tue, 09 Jun 2026 19:19:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781032751; 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=MsoGbEbdV3M69awUBpLf9z7umoEbASnme461mtCnhBM=; b=HksRGyofy5MaHM8DJxLFFcR6p+gJTHduae/vm+bWgVOlR3NgV1V0TcDR+S/gd0N7exuH8h q/PnL1QkLzkMhQI2Ii3Z3jLiytAv7ry7nuZGXuUQKRjff7jSrzNmL615GzRIxQqKSKMP6V SVmW+bNwlchF/IF6bUERi623t8tiNQpxs6UsDVKzBF1BFN7TTm6fqfbbfPY9FH1F70WTFe tLsYEhoBOWFGuGme7tya0cT5vBg93wfEo48Wq1tJPy1o0hB6wrjhErloo0Ly+Cv1sp5tY9 HL3NuR62naojiTQstreReyj7MKQ0Picza3RCaJxT34wXMebHExrTsjRb86yhWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781032751; a=rsa-sha256; cv=none; b=YFw/PG3ARVA7a+RH/uNdbsPThnskXUqY0JHSoLhXgnXmltOn/+3QFm6emt5VAqNkAW9Y32 +zJNxf3TFODPt76rL0jC5ODgqRcAYZCs94ZVVaDZhjvrVhwIk2QwOGhD6UfdQ4DT2iLZgS i6ydTOnUVOkEjgH7B9waSbNdwPR12Nvl+Ops1De6QyPU3tyOIgll6D0RuHHMha4R/vxvSQ 0dsPWWZkzKko2D/FRy1xivxp7Alff2CfNSp28aRPhJR1/O5PeFm3QctzSwVITHa9bXySE0 zzC+RANbDcWIqW71SgP8W0DnXu1Yll0xX8sQCWFvMVita8qVdkV6FikI8+4/6g== 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=1781032751; 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=MsoGbEbdV3M69awUBpLf9z7umoEbASnme461mtCnhBM=; b=p+naK7atffYFucPocap/oAcLLcDouskEZ/fOSmH2+h5WJKK41yq3dpZhNldfNLlC1m9Q17 XuXiMJzZFsiwOXlDp6uTa1gKx6adqo9HD/VIBfLPl+RCcrBZwuZB2JcIZ08lgpCKv86VeV 4/PxTWWmdNeOSFtOgW4dJhyPCjvtLfZJkda7keFesnxU0A2IHyYFauekgIXT4t/4XXgupd gm+0qiDa0JIPNbZataA2313emfpSp92Ba0sus0PGjAjQCp8J31FyxWXtDz4YTQ4vEqil4T AQu/JkSK+YitBzBoobzvW87qG/Ds/i9LFxw7rnk1MLp7JtmoCflWyAWcsojjrg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gZdxq0H5jznkp for ; Tue, 09 Jun 2026 19:19:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f483 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 09 Jun 2026 19:19:11 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 3fe092282025 - releng/14.4 - 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/14.4 X-Git-Reftype: branch X-Git-Commit: 3fe092282025d45218605b950f03780f32df6f48 Auto-Submitted: auto-generated Date: Tue, 09 Jun 2026 19:19:11 +0000 Message-Id: <6a28672f.3f483.5b415e09@gitrepo.freebsd.org> The branch releng/14.4 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=3fe092282025d45218605b950f03780f32df6f48 commit 3fe092282025d45218605b950f03780f32df6f48 Author: Mark Johnston AuthorDate: 2026-05-29 21:41:35 +0000 Commit: Mark Johnston CommitDate: 2026-06-08 13:21:34 +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);