From nobody Thu Dec 21 13:45:08 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 4SwsBD6Stnz54pvt for ; Thu, 21 Dec 2023 13:45:08 +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 4SwsBD2JHRz4SsH for ; Thu, 21 Dec 2023 13:45:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703166308; a=rsa-sha256; cv=none; b=tbrQ86jmoKcyp6vPW6N3d4y0tlzx4kd+GOpdC2CeyPBlNqU6an1ME37UDQzgL0xUJHmzAq nHgOBIENfhMPjmNUIDCic/0xBw52qwMtEnMe8tfuQcjSzEtdWGT8r0ihsIGaqPr/o+77rx iMAgtmEVnQtzhqkl5U3AZ/73RNEeOL4Icy8ICENg1G8APF30/fk5G//JIaHA7/fTr7RBwv q3zL8HTUxX/IA1dPT2wd/IcA6NzyHGKzwWs8tZZRHKj2khFod5E+K6QsrszLallFoTThyB w4bLm7t1tf5xIkMFqxGvv0m7lNMEN2j+UDQJwnH1odJKPDspqPr4KX/p+yNEfA== 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=1703166308; 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=Cc/CoVrgxqNL1wo6/1noNxzQxyeV0b9FKoeoLJMUKbo=; b=spwpIeZCB2lQb7KKGGv0JopjYjEIpQiHTRU8U41KdNOnb3m3lIYMp1aYlihe8e4GOnnloU ELh7jiAeWq8GOhzy2ZKfaAJm/c4jSazbiT2eAH8kbGkyDTDGIsiyLmO4Eu2xOrCver7tfT ru24JGDjflcfWUKegJS+fRuRzTsCzFxYMDjZkfW3Xor7kk55ZKqWFezMn98QCEqo4FNDUa 8Tk3VgBmNZCAKvxpU3dD53DrTV7ZTrIZ2L8oqaFHrOWlq8K+IYQK/74ZrNZYvW2ZLGAqeW ls3xsRw3B10fTfeWAY7aa7ODvwGzyZbJ9FHRkClSov5ZUI3MSdUHShyST4kiHw== 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 4SwsBD1JBQzb7q for ; Thu, 21 Dec 2023 13:45:08 +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 3BLDj8Yd060413 for ; Thu, 21 Dec 2023 13:45:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BLDj8hK060412 for jail@FreeBSD.org; Thu, 21 Dec 2023 13:45:08 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: Thu, 21 Dec 2023 13:45:08 +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: Closed X-Bugzilla-Resolution: FIXED 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 #4 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9a4a7e5fb6e901e81c8e64a988358ad4b= 59464a5 commit 9a4a7e5fb6e901e81c8e64a988358ad4b59464a5 Author: Olivier Certner AuthorDate: 2023-08-17 23:54:38 +0000 Commit: Olivier Certner CommitDate: 2023-12-21 13:36:17 +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 Sponsored by: Kumacom SAS Differential Revision: https://reviews.freebsd.org/D40628 (cherry picked from commit 5817169bc4a06a35aa5ef7f5ed18f6cb35037e18) Approved by: markj (mentor) 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.=