]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r358992:
authorBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 16 Mar 2020 21:12:46 +0000 (21:12 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 16 Mar 2020 21:12:46 +0000 (21:12 +0000)
commitcc2ef1a8daff5b271a7c2710b834f2e29d9610b3
tree3526305193ef1aabb2f7dffd806348da4fa2393f
parentd82993b2a46c3d37f3b5d1d5322016a8cefff77e
MFC r358992:

  kern_jail: missing \0 termination check on osrelease parameter

  If a user spplies a non-\0 terminated osrelease parameter reading it back
  may disclose kernel memory.
  This is a problem in case of nested jails (children.max > 0, which is not
  the default).  Otherwise root outside the jail has access to kernel memory
  by other means and root inside a jail cannot create a child jail.

  Add the proper \0 check at the end of a supplied osrelease parameter and
  make sure any copies of the field will be \0-terminated.

  Submitted by: Hans Christian Woithe (chwoithe yahoo.com)
sys/kern/kern_jail.c