Message ID | 20221210031510.109358-2-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=DbrYvppe; 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 4NTY1m0s37z23np for <incoming@patchwork.ozlabs.org>; Sat, 10 Dec 2022 14:15: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 <kernel-team-bounces@lists.ubuntu.com>) id 1p3qL4-0004ao-Bf; Sat, 10 Dec 2022 03:15:46 +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 1p3qL0-0004aN-NH for kernel-team@lists.ubuntu.com; Sat, 10 Dec 2022 03:15:42 +0000 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (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 C18EC41544 for <kernel-team@lists.ubuntu.com>; Sat, 10 Dec 2022 03:15:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1670642141; bh=r1me7HqxDkiNcS+DAM/SuOmKsW9lKDtCjMHtEpwL8LY=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DbrYvppewGfoc12vYamewNmqy9dF8EOs5Yv0FDJVmhKQZ/qbD4rTakKaeyPBGXY9h PQiBqd4wVJDrbquy7mg+HbdXpH74aAXLQ9QALHzVcsgsbcaZVhtVagS8VhLgZt86G6 O5lr7zGe2A8a9OrIVM/DeMxWcLgwFIyVD2FJHwURSpFGodEoOIzR7uB8xVFY4K6bIX Fuh0A+EwaqVCn6SXv6Jt0bRHQq1QKgmMjgVZhL+NRjQUOITkUpZlG8+Cca+fc/aLld Q5/LswSIGEc82UlLbwEJ1Fk4ymWfzvwXTuJ2No1n/GYCusCvpcSl1OQuqfmIkEuqqv g5nFYzqodhflw== Received: by mail-ej1-f71.google.com with SMTP id nc4-20020a1709071c0400b0078a5ceb571bso4045027ejc.4 for <kernel-team@lists.ubuntu.com>; Fri, 09 Dec 2022 19:15:41 -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=r1me7HqxDkiNcS+DAM/SuOmKsW9lKDtCjMHtEpwL8LY=; b=zu823h4S5IhHQ3pH7gapXurcT/YBWxLX9Gw7c6kkxLA5pFbJU4TyP8NZRDrOYX+25V Lwn05wUrnoe7P2vRXdJYy5a9EZPSF4IVGTQ2tbnbg1bKHdzV/2NnHlTpxoY8liavEQgt SW1dEUhrn+WxmAqOo4Bi98V8slzogFDRXNWTbWE20Guns/ZNi2qzGkxY5y0HLIsr2Uxf 2hh7t2uNuwVFraODn4wVSy2sy50BR6fdVhlvVXqZcknNTUaijJ15m1kNBedIfYVuUVTo gUwrIL2Zm9H5etrO5GlPhOfRzHtSqGMRwdVoQngBzOa50OQtOd1xtjQecGrZbg15jYND ltGg== X-Gm-Message-State: ANoB5plN/WLeSoTeMVZGD8I3BDPOII8o1mFq/hJJXzyaCuL5jXm3Y/eP Ou1wvNBE/tMQ8JIGi+huCV91g1fbG+joe4CPFYHllOrfCK+d/zb8xhFYFwrroDqeTeP4ZsvNF1d 64wnHz3RKNx+1ItuexHaw6ESNCOFu0IFDVLmM/Vc7+A== X-Received: by 2002:a17:906:3ec6:b0:7b2:73b0:4a0b with SMTP id d6-20020a1709063ec600b007b273b04a0bmr9588798ejj.20.1670642140771; Fri, 09 Dec 2022 19:15:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf65LqwvuCGjf9npptkV4fGrmlAyj3F5PYOiMoLDY/IUQ1YPbnSS/mM0CVLG/UFxez9bTw3vhw== X-Received: by 2002:a17:906:3ec6:b0:7b2:73b0:4a0b with SMTP id d6-20020a1709063ec600b007b273b04a0bmr9588787ejj.20.1670642140500; Fri, 09 Dec 2022 19:15:40 -0800 (PST) Received: from localhost ([92.44.145.54]) by smtp.gmail.com with ESMTPSA id d17-20020a170906305100b007c0b28b85c5sm551487ejd.138.2022.12.09.19.15.39 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 19:15:40 -0800 (PST) From: Cengiz Can <cengiz.can@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU Focal/OEM-5.14/Jammy/HWE-5.17/Kinetic 1/1] Bluetooth: L2CAP: Fix u8 overflow Date: Sat, 10 Dec 2022 06:15:12 +0300 Message-Id: <20221210031510.109358-2-cengiz.can@canonical.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221210031510.109358-1-cengiz.can@canonical.com> References: <20221210031510.109358-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-45934
|
expand
|
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 0fc30664249b..2d50cc9ab9b0 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -4451,7 +4451,8 @@ static inline int l2cap_config_req(struct l2cap_conn *conn, chan->ident = cmd->ident; l2cap_send_cmd(conn, cmd->ident, L2CAP_CONF_RSP, len, rsp); - chan->num_conf_rsp++; + if (chan->num_conf_rsp < L2CAP_CONF_MAX_CONF_RSP) + chan->num_conf_rsp++; /* Reset config buffer. */ chan->conf_len = 0;