From patchwork Tue Dec 6 13:17:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cengiz Can X-Patchwork-Id: 1712710 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) 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: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=du4Xt4ij; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NRLZk4mrQz23yq for ; Wed, 7 Dec 2022 00:18:21 +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 1p2Xpm-00023S-Pf; Tue, 06 Dec 2022 13:18:06 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1p2Xpk-00023J-ST for kernel-team@lists.ubuntu.com; Tue, 06 Dec 2022 13:18:04 +0000 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 9E18144072 for ; Tue, 6 Dec 2022 13:18:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1670332684; bh=CS4k6iLBbH4ITF7SNh8nWCM0mfWFgglpPrdVQ1zKlGE=; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; b=du4Xt4ijrRaP5MSJQIrAsA7He1krdA97lD0XkBJKYmRiulCh86izIZywz+2CFAoba gCoP/SkO8r3BoVPsxJW4EXKPZJBX0lOIVwHL709SN9Bg3usPq3canWqQwEd6rrht8J kbxNwHN/9v4U8BHgpjQGhVpnDtsw/yTLd0HalnWcnKWQhw+17PFhL4ZzC9gPWeFnbw OxJFSj6NgiQtTpWUb0oLRiDs+f9pJY6MV0Iq1/Wn0kHCd0lDzWBzgrVDAfy6eqokJw brEA1RDzKgt8DRMoB99HYgV2bejHb1cZJFGJEWIa7q58ePRrogU+OwMwz8dXR7A8JT 4tKfE9IfbLdcQ== Received: by mail-ej1-f69.google.com with SMTP id xh12-20020a170906da8c00b007413144e87fso1505934ejb.14 for ; Tue, 06 Dec 2022 05:18:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CS4k6iLBbH4ITF7SNh8nWCM0mfWFgglpPrdVQ1zKlGE=; b=DyVvUAOgm6RxKVy1m1LAA4Exa9mgt97CcENGhytEYFV6EL/cB25JbrC8rUY8rhBe0o KhACgO9eY4j5YcqthL6Wc0cA+Q3SFA6VsZOtu6rfIQKL4PKjoH/tnQDrs91fNAbiA+Jc f8pHTcIMrKVkRdDe0yLrsiFiCjmNut67Noc5Gaw0fSRFf4Q5PeTsZPrESSYUGCjcGtHA rLwKsFkpcJFGL6wtesnZ1e1Z9OTLks2gtwK7mXRp0Dk9eUCQiHKzZIBwfWP60LFhR4SU e6qLh9yO6hUoc8PCtHBN4W4SAk4qnFfWOUxNhOGNuHBb9NJA6cSoFNg+hU6aqH/o0Jdj m0ZQ== X-Gm-Message-State: ANoB5pnXMSOdb9S3gu/a2DFMlDHOm8GXJlryUlEr5HSG9clJOfq5Ub9d rw2oy5RQyXMb8gU4xKLX4cNtEyhQMz8SndySkuehP7DRoyqw8nbDuyCGp6Lp+wE6aiz8KwpkHX2 thVWwy6XKGryupcNMhWatMyPXjmo/wUHW4qorSuE4Mg== X-Received: by 2002:a17:906:6d8a:b0:7ad:69eb:923b with SMTP id h10-20020a1709066d8a00b007ad69eb923bmr11016127ejt.19.1670332684115; Tue, 06 Dec 2022 05:18:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5AvcFYdXhRGWuvzzwWewgH+LKjoltat8zOuALcFOny4jmkhkNcpi5GGutOEWSYJ2y0Ln/Y9g== X-Received: by 2002:a17:906:6d8a:b0:7ad:69eb:923b with SMTP id h10-20020a1709066d8a00b007ad69eb923bmr11016107ejt.19.1670332683818; Tue, 06 Dec 2022 05:18:03 -0800 (PST) Received: from localhost ([92.44.145.54]) by smtp.gmail.com with ESMTPSA id gg9-20020a170906e28900b007c0d41736c0sm4206682ejb.39.2022.12.06.05.18.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 05:18:03 -0800 (PST) From: Cengiz Can To: kernel-team@lists.ubuntu.com Subject: [SRU Bionic/Focal v3 0/2] CVE-2022-42896 Date: Tue, 6 Dec 2022 16:17:49 +0300 Message-Id: <20221206131752.153365-1-cengiz.can@canonical.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 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: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" [Impact] There are use-after-free vulnerabilities in the Linux kernel’s net/bluetooth/ l2cap_core.c’s l2cap_connect and l2cap_le_connect_req functions which may allow code execution and leaking kernel memory (respectively) remotely via Bluetooth. A remote attacker could execute code leaking kernel memory via Bluetooth if within proximity of the victim. [Fix] Actual fix is achieved by following commits: - "Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm" - "Bluetooth: L2CAP: Fix accepting connection request for invalid SPSM" [Test case] Compile, boot and basic functionality tested. There are two public PoCs but neither produce understandable results. (Basic functionality test: l2test from bluez package, ran with USB and PCI bluetooth transceivers). [Potential regression] Low. Fixes only add extra checks. [Changes in v3] - Dropped unnecessary dependency patches. - (Focal only) Used L2CAP_CR_BAD_PSM instead of L2CAP_CR_LE_BAD_PSM as return value. Luiz Augusto von Dentz (2): Bluetooth: L2CAP: Fix accepting connection request for invalid SPSM Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm net/bluetooth/l2cap_core.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) Acked-by: Tim Gardner Acked-by: Stefan Bader