Message ID | 20221206131752.153365-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=Yvb1CeG2; 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 4NRLZk4qnTz23yt for <incoming@patchwork.ozlabs.org>; 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 <kernel-team-bounces@lists.ubuntu.com>) id 1p2Xps-00024l-4q; Tue, 06 Dec 2022 13:18:12 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.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 1p2Xpq-00023s-QH for kernel-team@lists.ubuntu.com; Tue, 06 Dec 2022 13:18:10 +0000 Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.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-1.canonical.com (Postfix) with ESMTPS id 9309A4154B for <kernel-team@lists.ubuntu.com>; Tue, 6 Dec 2022 13:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1670332690; bh=jrVq7v1vsVwxkgdA12G+5Gwd2H/ojhE+HQg21OEIme8=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Yvb1CeG2wUp31Koia5o05yRSE2YklQCAb7AQiyni6ZCG8Oq3D8S8gdxcB+Vrwmfqa skrz88x6OFAGyN/DgL9dfVaggI5idIhaDz3jPSXT+lzNGSyUTHoAv0Xt7qvD52WFLV ohAIoG2RTUT6J12nuDbO6sX4TzXWPAq0vItZNiP4WXwatdjYFn8GBgCW73iFwaR20U fkckh0pU2yqtyfAaGcerwoSXlM265RAMX+fAs4C1edfNf8x1CqRH4M7veyb35MNJqA M/Q/8qjspGMoUIBUrUrB8kJt7A4luLo5tgLBFRuUgtdNigChkIpNEHuM4zdBL0Vokg hLLEo75BDw+dA== Received: by mail-ej1-f70.google.com with SMTP id ds15-20020a170907724f00b007c0abebc958so1518319ejc.2 for <kernel-team@lists.ubuntu.com>; Tue, 06 Dec 2022 05:18:10 -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=jrVq7v1vsVwxkgdA12G+5Gwd2H/ojhE+HQg21OEIme8=; b=WrnYjXbNHk6q/Pwu0nsY2NRkvtPAuzOnYSbxtW8vrUFyutXeWgrmcPXhQlHLiqUuWd YCUfNQGiiq3ygKBbM0A9odLd9mGLVQKeZh1rogAlttpGjjimGbEFKxGn7/S+89qyxW1s aaKOltU6vMzJ1B+8AlqYGD4ESyHJT7R37VBuos9rkekP1RknpRmSFJ6r0r6wfXOD2+Pf rQvZaI8VB74fxEsiVbVI5jYGMQsfURRH0uSBOQXY2Y3ClOD+yhD7AVPLOGGDTHK068NK tE9yk//xcF7dAkBToVoHrOHFA1cCdqdKpF3dT/S4bHotfZgsfmEkxjuyfRROjNsGJ3bm wm0g== X-Gm-Message-State: ANoB5pmI2F5F3Fx9KJbH0GY30Djgy2797LlvaXRW3L/E0aTa3RlfwVmt QVWPNW1vFtOIKG9odEgvTY/vCaPzQCb7giAJhlwk+gRhxEQ//2Y4Nrj9r9sHb5oaC/2GascwIk3 WN7zHYqPWBY8OhbIrLirdRv7MvQl9gInYwibfUqVyhw== X-Received: by 2002:a17:906:2a97:b0:7c0:ab1e:e361 with SMTP id l23-20020a1709062a9700b007c0ab1ee361mr20078277eje.579.1670332689556; Tue, 06 Dec 2022 05:18:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf7DmAK2rQPukMyYB33r8m+V+k76KJ/ydo25orjO4XjD4B6O76nMq55ZQcOmKj42fVOXBT3qkQ== X-Received: by 2002:a17:906:2a97:b0:7c0:ab1e:e361 with SMTP id l23-20020a1709062a9700b007c0ab1ee361mr20078262eje.579.1670332689337; Tue, 06 Dec 2022 05:18:09 -0800 (PST) Received: from localhost ([92.44.145.54]) by smtp.gmail.com with ESMTPSA id n19-20020a17090695d300b007c0cbdfba04sm4784984ejy.70.2022.12.06.05.18.08 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 05:18:09 -0800 (PST) From: Cengiz Can <cengiz.can@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU Bionic v3 2/2] Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm Date: Tue, 6 Dec 2022 16:17:51 +0300 Message-Id: <20221206131752.153365-3-cengiz.can@canonical.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221206131752.153365-1-cengiz.can@canonical.com> References: <20221206131752.153365-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 066a16785b92..bf972012d215 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -1824,7 +1824,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;