Message ID | 20221202181017.405052-3-cengiz.can@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> 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=<UNKNOWN>) 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=BAhx9YWY; 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 4NPLn71xLNz23pH for <incoming@patchwork.ozlabs.org>; Sat, 3 Dec 2022 18:20:24 +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 <kernel-team-bounces@lists.ubuntu.com>) id 1p1Mof-0004Ls-Jb; Sat, 03 Dec 2022 07:20:05 +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 <cengiz.can@canonical.com>) id 1p1AVN-00045J-0f for kernel-team@lists.ubuntu.com; Fri, 02 Dec 2022 18:11:21 +0000 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (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 D4A1E42218 for <kernel-team@lists.ubuntu.com>; Fri, 2 Dec 2022 18:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1670004680; bh=gShn35IByWVh7i2XOPIXEXIYFd9b8uFj05XxJsPIgF4=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BAhx9YWYIXWfJe0kKQMc426WnDu/w+t0gJ2IJsVbvZcCpgnaGmbB30ba0Nn5641Pn L4ftOK0kQLlKOftw4mHi85Uir/UcZ7KYJ90vYCo3hcFCEqK9TeJXItJAhZKpmJhAal TrxEAh6v3BuW9UDPwiWyR94u2a8UMaKS5ve6K4oqo/MCrR4q9LRgvI0Bfc3cABCMv1 1VWq+pgOO7BRXpDFuaSHJu7LjErLFuAtjDc5HpZhspyWRqrqG8jL0t2Ys0LYK/GxdI b69Zvsc/mGvrTAHKymQWdOXwSOU68xVISclA/Pq+BhQkoyz7aBIVwtYTTTVLDquWC4 aSzMXNj6iaDlw== Received: by mail-wm1-f70.google.com with SMTP id 6-20020a1c0206000000b003d082ecf13cso1503168wmc.3 for <kernel-team@lists.ubuntu.com>; Fri, 02 Dec 2022 10:11:20 -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:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gShn35IByWVh7i2XOPIXEXIYFd9b8uFj05XxJsPIgF4=; b=gfNHfdotHmKBxCnXO6i2TKAndjmgJcq3OGCGcK2GYutVJcFcJVPDzlZ6QpdxvKDN6t eOhxmLXq0ibwfpW9F3h/gpsTitoiIDODyV6A9lgs4Vo2FaUgMobwbr/JoOX6Qik/Hcp+ 0hbd8a6Nm0C+Fu3u0jWSol0F8rNCzv0eSL19074xnqFcDHeLY2k52bBvAGqin29lmzKO Dv38J+gvq49QkD/0RdsH2twL3wC1607FxEkPZWu5NaJ3YHEe8vWVJM9keYCb+gweTyfG cvfZw7my0Dvi92cFlN68aRpBceaiCiBYqcwt+JWZVtNsWNpRbWg0FI8ywT0CHhKA05fD kmsg== X-Gm-Message-State: ANoB5plcTMy4aUy8/1n67s2lVimSJqqZ4bTgtYjGwtBiHgQRn65y4OKK UUg6d4ThkCkohPLGNF5YmjYnZKj2cWHKfSYr1VWXS4QWg+nqJ1XUU6c51qiIn2fC78YjXgUs0Qq tuak+tsa+IrRielfka5Kw/rJQ0AkBvky3+VFah5DSYQ== X-Received: by 2002:a05:6000:1208:b0:236:4838:515d with SMTP id e8-20020a056000120800b002364838515dmr43196946wrx.541.1670004680334; Fri, 02 Dec 2022 10:11:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf6CXzkkpgVjjYMvugex+uIR1GKaRtks8dfRQ9WmOStkllP9w69dflMjltHgNpwuYlIbfylxdw== X-Received: by 2002:a05:6000:1208:b0:236:4838:515d with SMTP id e8-20020a056000120800b002364838515dmr43196939wrx.541.1670004680146; Fri, 02 Dec 2022 10:11:20 -0800 (PST) Received: from localhost ([92.44.145.54]) by smtp.gmail.com with ESMTPSA id o16-20020adfead0000000b00241cfa9333fsm7696598wrn.5.2022.12.02.10.11.19 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 10:11:19 -0800 (PST) From: Cengiz Can <cengiz.can@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU Kinetic 2/2] Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm Date: Fri, 2 Dec 2022 21:10:18 +0300 Message-Id: <20221202181017.405052-3-cengiz.can@canonical.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221202181017.405052-1-cengiz.can@canonical.com> References: <20221202181017.405052-1-cengiz.can@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
CVE-2022-42896
|
expand
|
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 375ab8fa3bcf..e765cae4be6f 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -1989,7 +1989,7 @@ static struct l2cap_chan *l2cap_global_chan_by_psm(int state, __le16 psm, if (link_type == LE_LINK && c->src_type == BDADDR_BREDR) continue; - if (c->psm == psm) { + if (c->chan_type != L2CAP_CHAN_FIXED && c->psm == psm) { int src_match, dst_match; int src_any, dst_any;