[Bug 214981] POLA violation: ZFS happily and silently remounts any existing mount on pool import

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Sep 20 18:13:19 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214981

--- Comment #2 from Vladimir Krstulja <vlad-fbsd at acheronmedia.com> ---
I now believe this problem should be taken more seriously. I'd also like to
formally request the FreeBSD project to assign a CVE to this issue.

While I managed to train myself to always use -R or -N for zpool import, I now
found out the hard way that if you have zfs_enable="YES" in rc.conf, which you
would if you wanted your "local" datasets be mounted on boot, it has a
side-effect of automatically importing and mounting datasets for any pool that
becomes visible.

In other words, anythign you "plug in" that contains a ZFS pool. Say, a sneaky
USB stick.

Merely unlocking geli'd drives will result with any pools on those drives being
imported, datasets automounted, existing mountpoints remounted, root included,
with zero warning, notification or complaint.

So technically, we don't even have the protection of import -R or -N. This is a
security issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list