From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 27 23:50:20 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C832516A417 for ; Thu, 27 Apr 2006 23:50:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 539CD43D48 for ; Thu, 27 Apr 2006 23:50:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3RNoKZ7090326 for ; Thu, 27 Apr 2006 23:50:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3RNoKpm090321; Thu, 27 Apr 2006 23:50:20 GMT (envelope-from gnats) Resent-Date: Thu, 27 Apr 2006 23:50:20 GMT Resent-Message-Id: <200604272350.k3RNoKpm090321@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Peter Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53D8E16A401 for ; Thu, 27 Apr 2006 23:43:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20E4D43D46 for ; Thu, 27 Apr 2006 23:43:27 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k3RNhQeN082707 for ; Thu, 27 Apr 2006 23:43:26 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k3RNhQQS082705; Thu, 27 Apr 2006 23:43:26 GMT (envelope-from nobody) Message-Id: <200604272343.k3RNhQQS082705@www.freebsd.org> Date: Thu, 27 Apr 2006 23:43:26 GMT From: Peter To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/96438: Executeing a linux binary within jail causes reboot. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 23:50:21 -0000 >Number: 96438 >Category: kern >Synopsis: Executeing a linux binary within jail causes reboot. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 27 23:50:19 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Peter >Release: 6.0-RELEASE #0 >Organization: >Environment: FreeBSD f6.my.domain 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 >Description: Launching a linux binary like tcsh as the initial command from jail(8) seem to cause system reboot. Second occurence is that in some circumstances _within_ jail(8) executeing linux binary cause the system to reboot in the same way. Because the machine in question is a remote. I have not watched console while this happends. I suspect this bug could be exploited to take over the system or DoS it. Linux binary: bin/tcsh: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped Dmesg excerpt: FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium Pro (199.74-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x617 Stepping = 7 Features=0xf9ff real memory = 83881984 (79 MB) avail memory = 72499200 (69 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard Will add to PR when I know more. Hopefully this issue will be remedied in 6.1 >How-To-Repeat: Setup jail(8), use a linux binary as "init". The second occourence is proberbly when I put linux system files. And then chroot to it within jail. >Fix: Be careful about linux binaries within jail(8). Don't trust jail(8) security too much. >Release-Note: >Audit-Trail: >Unformatted: