From nobody Sun Mar 30 21:43:32 2025 X-Original-To: bugs@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 4ZQnnf19Vvz5s7Mk for ; Sun, 30 Mar 2025 21:43:34 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZQnnd1k8bz3V70 for ; Sun, 30 Mar 2025 21:43:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743371013; 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=fwdqTVcoBEixDzarwESc7XpKZGEdCehmf1HPAoEjwhI=; b=pEzjzYpcs+cQdrv4fBJZJ97ORO7fuGNQ2ofQw1LINYHxWb3XmzjLcYCUfJOklz6Av6ForK 4cCc2u4t8wA6z3EHH6Suq0Udm0ivdMn+14aoXaRGteKIy99mFAJoyK3oKkMqCxLt8rj85W 1Balf0IUcf4uBEG8/EwerEmLWG2ACERvGfwCSB/w8mRPQ4vpZABvFs54a6HIK0gfAciWWj l0WGe0Kn6ySUyJ88rMt23Y16cH4bMmWLd5JXhxNJqB7YwQtwDMGAYSAWF0RV2+66w1R+6S YK/8khyINTpxhAReixQRnIm9gx1kL3W15xN5mukHhafeQD2TU14eRnE3cHi48w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743371013; a=rsa-sha256; cv=none; b=DWHJXJ9o8klmG0VsWbnpmhkWLPZeYAur/ZjV3ljysfIGgiOK4zpTbaXfJACJNK+lmTUBTA ZDAn/64MzIDOp5YDOCgusiNS7YRMRqX+PXdoIhJtHceTH3XFPP2K9hMRorHHgyWb0P8z1v hZkKlatlUk35hyEMvDfH5hyCrHPB6lgXR9CHGPFob28ZWqueeH9nMxHwAREDxwGiqmagIN C3+xTA7a6iY2LAa/lTigEaHXle6M+1ciEYxIiOAkKnx31KTATZYngqb22knNn2k73NQUYR qG//jjcO/Yc+KGzXOSk55bfHuQeTJm2oDZH15h6DZtcRhzFO18tM4X6QN6miKg== 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=1743371013; 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=fwdqTVcoBEixDzarwESc7XpKZGEdCehmf1HPAoEjwhI=; b=a0FQZpctWx4NioIH1TuHIC78fhK0bcNKU8RH49Z9Ey5jG8GY3iMOogwufe+YNKvXlkQppk wFWQQE+mOQrm4lyIQdqd0F1wT1tTqQvB1gXw8Axg/lwqClEZ/cERL2cB2bTht3/fuBBzBd UuNW2LDOqJsP2lOCQmv8WAC7PPIsFGToBbvxOIeS9c/LCLyQHnekNMeLzhtkCu1c3Eud6E o3uGB1Yl30/+2MkBIHBEjR8plGvRPKsa77TfGfXCUppb3huhbjqNIhx6G9RmCY+e3hc1xZ WPOenXSxiIzpVNmUoxiNL+UBulH1rf86pJUeN7/YN/k0vNM59itZ3KidpCQYBw== 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 4ZQnnd144Rz2KV for ; Sun, 30 Mar 2025 21:43:33 +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 52ULhX4I041000 for ; Sun, 30 Mar 2025 21:43:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52ULhXCM040999 for bugs@FreeBSD.org; Sun, 30 Mar 2025 21:43:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 285782] Jail escape via directory rename outside of jail $path. Date: Sun, 30 Mar 2025 21:43:32 +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: 14.2-RELEASE X-Bugzilla-Keywords: security X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285782 --- Comment #2 from Konstantin Belousov --- I suspect this thing can be made into sort-of exploit if nested jails are enabled. There, you would replace the 'host' by upper jail, and the jail is created as subordinate of the upper jail. Then if a process in the sub- ordinate jail owns the file descriptor pointing to the directory that is moved out of the hierarchy of the sub-ord (and upper jail can do that), the process can escape into host namespace. --=20 You are receiving this mail because: You are the assignee for the bug.=