From nobody Tue Oct 17 19:44:07 2023 X-Original-To: jail@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 4S94DR0hH2z4xvnj for ; Tue, 17 Oct 2023 19:44:07 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S94DQ5sJcz3Mmq for ; Tue, 17 Oct 2023 19:44:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697571846; a=rsa-sha256; cv=none; b=CbQoxe6kL9dX5uFr89AOJyzdX8aWXma+4Pm17OZYjWXTYtPzZWelZr7cRnEWxcQdzZFUj8 QDj4AAbeZF2Ps9AavHScWIDOEq9EmFLkw9nbFDocmNnHT1UdJYYLUwsHeNBPoJQE/n68g7 ADEXLe1nVjxbn/yuTMrYzG3IsGfwzfoUD1dyHDlhnw45JkraooKIVv/S2MKFDmVbHA+ZpG 5tDxZUwY/ZG6SX2l0xr2wUC/CHfDO+GuMcKRiwrl6UvtBBJD/ewO8iaPGKyhzXtVadpbOs 8rRldfjJUozeBKCCztoIsS0xHGjoHMrA0354C39lx+Tc3FkHd3vvEx/sD0+2+Q== 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=1697571846; 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: in-reply-to:in-reply-to:references:references; bh=zxo472+EzBne8qj1jz/yko/Uytj/5MN1sLikKICVDRg=; b=fDQdYtlmI/Cc2d1kqRoFnI46eVxlWUdotto4oEx8gGGxBtdTEpn5IWH38JFvmFbQpiBYn2 LEIlSgPIMUhsDvKlgvCaV5aZe97wpd8+aCMtyTIs1yhwdPGtBNJgZ17MRiIAXJr7PEKdlN +0lZLjyKy3xO+upCqIGpqOjWHTSDWlrSp56LMocSdLBTRpRb2E5RvHTtUXZ5KkSnbLuS+7 JrtITJ1hwI1mWI0MA0VkRso15W6HzreBbTXCX1Jx5ImB3hu9Cupw6YNg/TF36WEIqA5RU9 K29MYbA8JUGncoNz7boe5KKMCHN92ygGptSkelAsoVSXL21monP6+ExwGMgbnA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S94DQ4xz5zd4N for ; Tue, 17 Oct 2023 19:44:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 39HJi6Hl047861 for ; Tue, 17 Oct 2023 19:44:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39HJi6PY047860 for jail@FreeBSD.org; Tue, 17 Oct 2023 19:44:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 272092] The 'see_jail_proc' security policy still allows signaling and debugging sub-jails' processes Date: Tue, 17 Oct 2023 19:44:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272092 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3De1153205a719c6cb792cb2213a3737ee6= b53d59c commit e1153205a719c6cb792cb2213a3737ee6b53d59c Author: Olivier Certner AuthorDate: 2023-08-17 23:54:38 +0000 Commit: Mitchell Horne CommitDate: 2023-10-17 19:42:58 +0000 Fix 'security.bsd.see_jail_proc' by using cr_bsd_visible() As implemented, this security policy would only prevent seeing processes in sub-jails, but would not prevent sending signals to, changing priority of or debugging processes in these, enabling attacks where unprivileged users could tamper with random processes in sub-jails in particular circumstances (conflated UIDs) despite the policy being enforced. PR: 272092 Reviewed by: mhorne MFC after: 2 weeks Sponsored by: Kumacom SAS Differential Revision: https://reviews.freebsd.org/D40628 (cherry picked from commit 5817169bc4a06a35aa5ef7f5ed18f6cb35037e18) sys/kern/kern_prot.c | 25 +++++++------------------ sys/netinet/in_prot.c | 4 +--- 2 files changed, 8 insertions(+), 21 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=