From nobody Wed Oct 18 18:05:03 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 4S9dzg4SZfz4xL2H for ; Wed, 18 Oct 2023 18:05:03 +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 4S9dzg29xhz4dBJ for ; Wed, 18 Oct 2023 18:05:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697652303; a=rsa-sha256; cv=none; b=Wwi7a1JlORruyLuhKhfbHqk+dUm71FD/sMPw7s+KzKaGQZq3SGR1J+QzdjBbusX89OICKb MxUlcKxYtlDm87MoS/8sbU69/PtwGoIxrfTbmJIvrECCl2LOMeT03gr0U+zfiDSSi7HQDA ZIGvWH3DNvJezetVyxpvCsmJMQG4emUE4HUZm+JPGWzJE8Fcv+GPiDO+zfGvjHX1kO4/ge XX7eBmDMDjwX7hhTkXahPW0R4iD9ZuqNCsnrqDeIbDq1Ua36a3D16lcedwnOyAklifMMTy U/TYk9cpQcxArWo/we7GISWcX/X7OfU5HzknWuB2z/ofM60MCi97OYzfxctXvw== 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=1697652303; 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=suQ3lN2iSnOXV2C0cYQ2mjz2AsxtNZiTphunYLOKxBM=; b=JHATfwAyOmu7gJhkj6pvXtPCe4QdgKZJv2YX1OcJKcImP2LZnni1uZn+lT/YKQx7jN/ujP Y6tPbeK0jzdHOu25WJFa107T9t+2CtyOzW4uyx/B+7haGKuisJhuFSmzvQSYkwr8OXINPU C2VpPUdPVwSHevkKVEmc/VNAY1D2WEEjFX5gNEC3d0IdLPdrNEm+KqDC2ubh5qJBZvEVmG t8X3TU/GlBX1SlPdikf9PyAOfL7Mmg1gaGgafDQ3CmyVG/gLzZoq2ssql4OLQm/BpeVFV/ 4CJU8dWkBjvllAjiNwm5xkYGiU+1Q/YykcqOh7zw+pDjONzIH8Y/Nab4qkd53Q== 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 4S9dzg1FpBz24t for ; Wed, 18 Oct 2023 18:05:03 +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 39II53CU060201 for ; Wed, 18 Oct 2023 18:05:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39II53Ho060200 for jail@FreeBSD.org; Wed, 18 Oct 2023 18:05:03 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: Wed, 18 Oct 2023 18:05:03 +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 #3 from commit-hook@FreeBSD.org --- A commit in branch releng/14.0 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D7e21c691f295b3babc8c57c0aeafa19fa= f1371b6 commit 7e21c691f295b3babc8c57c0aeafa19faf1371b6 Author: Olivier Certner AuthorDate: 2023-08-17 23:54:38 +0000 Commit: Mitchell Horne CommitDate: 2023-10-18 17:59:51 +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. Approved by: re (gjb) PR: 272092 Reviewed by: mhorne Sponsored by: Kumacom SAS Differential Revision: https://reviews.freebsd.org/D40628 (cherry picked from commit 5817169bc4a06a35aa5ef7f5ed18f6cb35037e18) (cherry picked from commit abfcae344feb89c635616769d12150f84c96c003) 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.=