From nobody Tue Apr 7 08:06:26 2026 Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEB60A55 for ; Sat, 14 Mar 2026 13:59:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.71 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773496793; cv=none; b=dXLaKD1X72F0SZ/jZQf9nmUGpF0dZLioYN1wZ/PlFIFIJd7Nq+FlyuhuB3JiSFH0PfstRKj/09XFszZf1NbvSuU2arcDq52F14C/yGd03oQ2V4YExttZpzPMd9gyg2JRAiM5IhYJxOEnzho/c/XMN8ndTgi5SDDDQ8Py3di5eQ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773496793; c=relaxed/simple; bh=LBCqaYXlTvvk5Zoew4434eYvZuhQtEViKr+l1GVyU7c=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=QPe58g2ZXPOk8Tp8T9pf9D4WFbgadt6j1oqDy22evToKRnDKDlnYa09IVIec6wyPijY1sUfazg7hhvumBYp+scLnp7u2jMBjBDWp0eC26g5SJHcUr4UuHWcmJhAkib03geCRLGFOmaJFmfUFY8tdnb9DNcidLzMJ0oVGOSyxPFY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.161.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oo1-f71.google.com with SMTP id 006d021491bc7-66308f16ea1so37598562eaf.2 for ; Sat, 14 Mar 2026 06:59:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773496791; x=1774101591; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wpaIkZPD4UDuUHy+jBJHr2kg4Gds/ziy1IrnBhg2UJ0=; b=dd2gqCnztRwwim9zMC68/ubPivRLHlTXjY8hkVSJJ4mzhuTU8LKLO+STwVAre1YRL8 8GzOC4Xs6f5EF1hxSkRrFzPkQJ618NebEnI6D55J8kG2iWUa5FlfCXZaMG69zhlGLcbs HR2YQwvJMm0bCNMpGTx3UVOZcy5k3m3tQJWvI5Z+qYwNP/ghbac8/jaYlfACF29JjTbB 8XC0z9zE/1SQJ7PypjxRocKktidAiJGbymXFQ23AoLh50EDABiMx61VtQQDAVdZc8EO6 1Mr1S41yvUG+Z+5CWCPpCWXVhqRV3BxyWRdzTtXXBFaMHNU42W4xWC4TgP0XH3BUwoF/ G9rQ== X-Gm-Message-State: AOJu0Yy3YzSIqyG49YedK3N8tgYcREssGSXyz9fSQRBfNGE7Dm5B0J6i smuU5/dZSxegvHj6t6o7ttkpkS1zR8o4U9AN8IF9oUHFQMbOERwntorwGYYFwZ9ScaDABYVB9lx QTzXF4fG4/9wdIvCrdEjzOPSPzdKZvMCdUC9fcMZidjOwp3Bboip4fi+JFBw= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a4a:b584:0:b0:67b:dce8:55a6 with SMTP id 006d021491bc7-67bdce85a1amr2840952eaf.5.1773496790934; Sat, 14 Mar 2026 06:59:50 -0700 (PDT) Date: Sat, 14 Mar 2026 06:59:50 -0700 In-Reply-To: <69b4e94f.050a0220.12d28.0146.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69b569d6.a00a0220.3b25d1.0015.GAE@google.com> Subject: Forwarded: [PATCH] Bluetooth: L2CAP: Fix stack-out-of-bounds read in l2cap_ecred_conn_req From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: [PATCH] Bluetooth: L2CAP: Fix stack-out-of-bounds read in l2cap_ec= red_conn_req Author: jacob.park.9436@gmail.com #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.gi= t af98e93c5c39 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -5075,14 +5075,14 @@ static inline int l2cap_ecred_conn_req(struct l2cap= _conn *conn, cmd_len -=3D sizeof(*req); num_scid =3D cmd_len / sizeof(u16); =20 - /* Always respond with the same number of scids as in the request */ - rsp_len =3D cmd_len; - if (num_scid > L2CAP_ECRED_MAX_CID) { result =3D L2CAP_CR_LE_INVALID_PARAMS; goto response; } =20 + /* Always respond with the same number of scids as in the request */ + rsp_len =3D cmd_len; + mtu =3D __le16_to_cpu(req->mtu); mps =3D __le16_to_cpu(req->mps); =20 --=20 2.43.0