From nobody Wed Jun 10 04:02:34 2026 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 4gZsYk3zJwz6gvLC for ; Wed, 10 Jun 2026 04:02: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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gZsYk27Tfz40lF for ; Wed, 10 Jun 2026 04:02:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781064154; 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=7YvmdElx9Py71Ohv3exSKKTzkB8wde+VplUnZBiGEz8=; b=tN8lN3bMj9e4s4yYsjo2vKO6YhnM7qAwt0EdaRwV2NjbHDbemqLlRLtp/+aChJUpyUR5uh vfO7J0jh3ddwRAN/wDsYQu/rZSca03feZ3f/u0DExyahsZXXTXHUNQb+kPdaMa8Jv4cohU LAOgZ6XDc9ZuY0PKXjQj4yq6fwLlVBihsk5iT2y1Pk03B1beYYeTXJjz7sQ3my0NuLcUCt ciHubTqvvIz8i6ydf2/YUFJ0pq0kuu5SSTiGWk4OFoWT5pNF3ML6Sh4v3Y4D8hzEtPtiyL uhBKvplUmM2/qEnzGdulkdwov6IyTs6Vd76YEtAz5pbPUzEwJnx0u6SaGsO8Ow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781064154; a=rsa-sha256; cv=none; b=MMneOuL9enkB68dMzZMzsiwIiWweaYOIln7bhh878cs2HalEXQinfUHveeiz9JkKLaJgfD 5jkc7zJGlteaQwkgoOXyJwcVBqeoLlK8tvrZsSqBNnesbhhvsRHfzXTv9Ij3aAlDsgnEIw Z3D5nSt5ssVn1In02r3dI66AJh1fT+7pqR5C1mrhap/yDoGTK5/ioJ+UGk8BHtSvizs2T2 jIDhLtv2WTkvaH/TimHAEZiN8UvOlMYx4LcVJYdruTmE/+niNlV/qdeNUXAXjT+hUWZJdN jVJzgTnkOZXIO0do++MIL/y2LjGSJhayVdqD1QBMb4WG1jSTK9HMn5rlyk/JUw== 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=1781064154; 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=7YvmdElx9Py71Ohv3exSKKTzkB8wde+VplUnZBiGEz8=; b=FQaCRiC5j2EantC2UDFuHj2XiA0mkfwuZfLXh3y/vTLEHNTWEn4dhQBg43rRayWEFi5gUV nRu8mDZ+PMMJXUnha0N9yeYNc63nHYL6CLJ/CWMVzbQ3TllgVhqt9Tsa/2+4veu3Mkk2bh fflM4sY8I2wi9Y+tl2TDOaU4Y/cFlmuZ9HKuMDH9I+sgmneSbNb/lHS6u8oN7y786ZKCeH /gVd8xYpfTksfRP7fieZSJ1IEwlyCGcQDtdAL/CXTGk4etfb9gya43rQnN7eZtw05dI3P9 syYbgTZTqTiMNAzLZaVdvWxXv2HLZRXJtGSo71Kg4C/l09VgmaAXO87zyOeVSQ== 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 4gZsYk1bFpz14Mn for ; Wed, 10 Jun 2026 04:02:34 +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 65A42Yju009427 for ; Wed, 10 Jun 2026 04:02:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 65A42YQJ009426 for jail@FreeBSD.org; Wed, 10 Jun 2026 04:02:34 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 295052] The jail(8) command leaks potentially sensitive file descriptors to exec.* hooks. Date: Wed, 10 Jun 2026 04:02:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 15.0-RELEASE X-Bugzilla-Keywords: security X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? 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: 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295052 --- Comment #20 from commit-hook@FreeBSD.org --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Da03b45d38f8fc312a7a86c3ac2e4bdcbb= ad9f4d3 commit a03b45d38f8fc312a7a86c3ac2e4bdcbbad9f4d3 Author: Jan Bramkamp AuthorDate: 2026-05-06 23:28:53 +0000 Commit: Kyle Evans CommitDate: 2026-06-10 04:00:36 +0000 jail: open the fstab files with fopen("re") This protects against accidentally leaking them past fork()+exec() in future refactorings. PR: 295052 Reviewed by: kevans (cherry picked from commit 58811b0ae096c134af372bcf475aea1d8d0e3c08) usr.sbin/jail/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=