From nobody Mon Sep 13 16:52:45 2021 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 D862917B70D8 for ; Mon, 13 Sep 2021 16:52:45 +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 4H7XbK5fXDz3CZv for ; Mon, 13 Sep 2021 16:52:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 A225E26FD for ; Mon, 13 Sep 2021 16:52:45 +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 18DGqjrF052629 for ; Mon, 13 Sep 2021 16:52:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 18DGqj7j052628 for bugs@FreeBSD.org; Mon, 13 Sep 2021 16:52:45 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 258481] Jail information leak via zfs kstats Date: Mon, 13 Sep 2021 16:52:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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 Many People X-Bugzilla-Who: asomers@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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258481 Bug ID: 258481 Summary: Jail information leak via zfs kstats Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org A jailed user can determine the names and throughput of ZFS datasets that aren't accessible in the jail, by querying the kstat.zfs.zroot.dataset tree= .=20 For example: [asomers@universe14a ~]$ sysctl kstat.zfs | grep dataset_name kstat.zfs.zroot.dataset.objset-0x81.dataset_name: zroot/var/tmp kstat.zfs.zroot.dataset.objset-0x7a.dataset_name: zroot/var/spool kstat.zfs.zroot.dataset.objset-0x73.dataset_name: zroot/var/run kstat.zfs.zroot.dataset.objset-0x6c.dataset_name: zroot/var/log kstat.zfs.zroot.dataset.objset-0x65.dataset_name: zroot/var/empty kstat.zfs.zroot.dataset.objset-0x5e.dataset_name: zroot/var/db kstat.zfs.zroot.dataset.objset-0x8f.dataset_name: zroot/var/cache/pkg kstat.zfs.zroot.dataset.objset-0x88.dataset_name: zroot/var/cache kstat.zfs.zroot.dataset.objset-0x57.dataset_name: zroot/var kstat.zfs.zroot.dataset.objset-0x29.dataset_name: zroot/usr/src kstat.zfs.zroot.dataset.objset-0x45.dataset_name: zroot/usr/obj kstat.zfs.zroot.dataset.objset-0x50.dataset_name: zroot/usr/local kstat.zfs.zroot.dataset.objset-0x3b.dataset_name: zroot/usr kstat.zfs.zroot.dataset.objset-0x34.dataset_name: zroot/tmp kstat.zfs.zroot.dataset.objset-0x39b.dataset_name: zroot/j/jails/universe14a/scratch kstat.zfs.zroot.dataset.objset-0x596.dataset_name: zroot/j/jails/universe14a/home kstat.zfs.zroot.dataset.objset-0xad.dataset_name: zroot/j/jails/universe14a kstat.zfs.zroot.dataset.objset-0x1b0.dataset_name: zroot/j/jails/universe13a/scratch kstat.zfs.zroot.dataset.objset-0x1aa.dataset_name: zroot/j/jails/universe13a/home kstat.zfs.zroot.dataset.objset-0x1a4.dataset_name: zroot/j/jails/universe13a kstat.zfs.zroot.dataset.objset-0x1cd.dataset_name: zroot/j/jails/universe12a/scratch kstat.zfs.zroot.dataset.objset-0x1d3.dataset_name: zroot/j/jails/universe12a/home kstat.zfs.zroot.dataset.objset-0x11e.dataset_name: zroot/j/jails/universe12a kstat.zfs.zroot.dataset.objset-0xde.dataset_name: zroot/j/jails/universe11a/scratch kstat.zfs.zroot.dataset.objset-0xd2.dataset_name: zroot/j/jails/universe11a/home kstat.zfs.zroot.dataset.objset-0x98.dataset_name: zroot/j/jails/universe11a kstat.zfs.zroot.dataset.objset-0x59.dataset_name: zroot/j/jails kstat.zfs.zroot.dataset.objset-0x3f.dataset_name: zroot/j kstat.zfs.zroot.dataset.objset-0x192ec.dataset_name: zroot/git kstat.zfs.zroot.dataset.objset-0x2d.dataset_name: zroot/home kstat.zfs.zroot.dataset.objset-0x15.dataset_name: zroot --=20 You are receiving this mail because: You are the assignee for the bug.=