From owner-freebsd-security@freebsd.org Tue Jun 20 13:32:20 2017 Return-Path: Delivered-To: freebsd-security@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 899C3D99048 for ; Tue, 20 Jun 2017 13:32:20 +0000 (UTC) (envelope-from pawel.biernacki@gmail.com) Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1201482D55 for ; Tue, 20 Jun 2017 13:32:20 +0000 (UTC) (envelope-from pawel.biernacki@gmail.com) Received: by mail-lf0-x232.google.com with SMTP id m77so73766267lfe.0 for ; Tue, 20 Jun 2017 06:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YGd4mWuKbBcqkAE1305krTqTKv7+U8JZRbTrOBFijd4=; b=MXAKCjAkfhh4h4KFaLWOo28h9YNtrOgNS745o7HmrQvLPl9OidIa2YdcMEwRSC0oPe lSNIgmJqx2mlReMgdrkI+BPu8nhBRMWZ2UsjBfYKRmKNW7qYObL2RhwqHCiJM7T1f0/s R+F0Jd5MJq/X7+Ab8SotHpc+gwYrZ6nQ32Ab4y0E+t016Xz9ZwHd+aVl1jQ8OMF3IPrK fJ2PijTQaHjUYQXFDr3Nq+Bc1ii452U1LXGweDbyFCcwfSejZPefraWzXO5Yo/8Qp8A6 71ofRO4ZSaYdLayMcCN09XgQQCJ1NLDMmZ4eUqIlaqYNYlMINfNf7L2uK6Vj6NbK5Jum 7WoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YGd4mWuKbBcqkAE1305krTqTKv7+U8JZRbTrOBFijd4=; b=RZXLaGJYHSpLn+zDHX49AdFL6lkaz0NO68g/QfgCoyZ/jQ+K4ZqUtZ0OSquMZm+Rq8 AkdQIAB9CDQLlDLJU1lP+sa10Rgq63DYHrqNqXtF3tbZKndqg9muuuVHIrFYJogMTb5x 5pTzckf1poM8rt5MKSf2VXpkivOry2Wm78hYPnuaQc2wbXf8rK6ekd+CTAVUJL7m75wT HNt0mpQLG3ZKNMPMQiP8zThWRRZ11GqtTJvFfQqKTd8kSVr9BmKb2za+Dl2ewb7g0EfX uc8ZAmIq0hZL3KCnyohiDTu0n7tHyHCm55dT9tGGQ/TDvRWiyDmH4OZEsre/iWFT+/pb Aibw== X-Gm-Message-State: AKS2vOwEZmH6X/gdUtKUiR+D1AmeYSzDY8EKh1Jprx7Hkkn+5pj7Amjg 9YvxNtOWZG4SzoHI6gdv/gPHxS6bRGqc6bM= X-Received: by 10.25.31.13 with SMTP id f13mr9510645lff.2.1497965537932; Tue, 20 Jun 2017 06:32:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.27.5 with HTTP; Tue, 20 Jun 2017 06:32:17 -0700 (PDT) In-Reply-To: <20170620131514.vdynljgemuz4fp3c@mutt-hbsd> References: <20170620131514.vdynljgemuz4fp3c@mutt-hbsd> From: Pawel Biernacki Date: Tue, 20 Jun 2017 14:32:17 +0100 Message-ID: Subject: Re: The Stack Clash vulnerability To: Shawn Webb Cc: Vladimir Terziev , "freebsd-security@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 13:32:20 -0000 Hi Shawn, Nice p0c, but it don't work with security.bsd.unprivileged_proc_debug=0, which was initially enabled in the menu with hardening options. Pawel. On 20 June 2017 at 14:15, Shawn Webb wrote: > On Tue, Jun 20, 2017 at 08:13:46AM +0000, Vladimir Terziev wrote: > > Hi, > > > > I assume FreeBSD security team is already aware about the Stack Clash > vulnerability, that is stated to affect FreeBSD amongst other Unix-like OS. > > > > Just in case here is the analyses document of Qualys: > > > > https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt > > FreeBSD is indeed affected. I've written a PoC, which works even with > the stack guard enabled: > > https://github.com/lattera/exploits/blob/master/FreeBSD/ > StackClash/001-stackclash.c > > Thanks, > > -- > Shawn Webb > Cofounder and Security Engineer > HardenedBSD > > GPG Key ID: 0x6A84658F52456EEE > GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE > -- One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.