From patchwork Thu Feb 21 09:28:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Hicks X-Patchwork-Id: 1045932 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 444q0l5hHTz9sBr; Thu, 21 Feb 2019 20:28:55 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1gwkeu-0003BI-6a; Thu, 21 Feb 2019 09:28:48 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1gwkes-0003B6-QF for kernel-team@lists.ubuntu.com; Thu, 21 Feb 2019 09:28:46 +0000 Received: from 2.general.tyhicks.us.vpn ([10.172.64.53] helo=sec.lxd) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1gwker-0005Ie-Vj; Thu, 21 Feb 2019 09:28:46 +0000 From: Tyler Hicks To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/1][SRU][B/C/D/Unstable] CVE-2019-8912 - AF_ALG use after free Date: Thu, 21 Feb 2019 09:28:31 +0000 Message-Id: <1550741312-27390-1-git-send-email-tyhicks@canonical.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" https://people.canonical.com/~ubuntu-security/cve/2019/CVE-2019-8912.html In the Linux kernel through 4.20.10, af_alg_release() in crypto/af_alg.c neglects to set a NULL value for a certain structure member, which leads to a use-after-free in sockfs_setattr. Clean cherry pick back to Bionic (Xenial and older are not affected). I've successfully tested the fix with the syzkaller reproducer under Bionic and Cosmic. Tyler Mao Wenan (1): net: crypto set sk to NULL when af_alg_release. crypto/af_alg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)