Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6D423A9D80 for ; Tue, 5 May 2026 15:17:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777994272; cv=none; b=j2eoR/eAdJq7SxgeMDNTADsSyL2r6rwjsdwED0yMj6JEQYb6ey/sWvta1XnnZVc5vOH3iPl8p5SmoWlBVwjSGYzBn7lGGq4eEoJNn1Z5+PiEiUg0HkKbOhje07C1HBLWkm8c0aibp7l+Y2q77SvMZ/Eyh06EJDe8/2y8LdH0Yhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777994272; c=relaxed/simple; bh=oYCKMvey+g2VUlrpJYtBnPp1/vylgU8QXu58krehyuM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SStBnoTVvMsnfsdGxNuONoKmVcOoM/7APQPbrChkntdzseYF9aCaXkodwDRFJbzTi+tnSg5k77JD57WAvtP1u0X4hNvcSmDHqydunaylarOn5K9GpzI2nbq/qLUujXSPkDUQCnrF7J6O7JYNhCEnH/czLERm/4yI7n8cZZVRDO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lOEhgJXx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lOEhgJXx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D91CFC2BCB4; Tue, 5 May 2026 15:17:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777994272; bh=oYCKMvey+g2VUlrpJYtBnPp1/vylgU8QXu58krehyuM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=lOEhgJXxqBd6GAfHmKlkIi0/Gd2jgfZ/aP5M12FgoDlRY9nTx+nmhy9FOTD0xf9Ai fbwrR9tfOW42/ZjnMVlW0L9zbOkW0hSK7lhJPb7V2bKYL+psBLGgzPvlqAuobUn15D CUr423KaoK9U6UNbnNWmgtGdJcjgaGgWLrhHY0vo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43062: Bluetooth: L2CAP: Fix type confusion in l2cap_ecred_reconf_rsp() Date: Tue, 5 May 2026 17:17:39 +0200 Message-ID: <2026050538-CVE-2026-43062-053e@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3815; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=16kC3tA2BXSC75F9G7ra+R7YPvMUofEE8HHs1r9059o=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/uISEbW8qHLCXLtq0wf5O2i+LG0tnhaYmOjUf9uwQN 9yV+XJiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE6xTDfF/VLkVh5uTCHwwx 4YKT7369L3i8lGG+qxObXNaMJB0x3UDhvOtvGoTyE1QA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: Fix type confusion in l2cap_ecred_reconf_rsp() l2cap_ecred_reconf_rsp() casts the incoming data to struct l2cap_ecred_conn_rsp (the ECRED *connection* response, 8 bytes with result at offset 6) instead of struct l2cap_ecred_reconf_rsp (2 bytes with result at offset 0). This causes two problems: - The sizeof(*rsp) length check requires 8 bytes instead of the correct 2, so valid L2CAP_ECRED_RECONF_RSP packets are rejected with -EPROTO. - rsp->result reads from offset 6 instead of offset 0, returning wrong data when the packet is large enough to pass the check. Fix by using the correct type. Also pass the already byte-swapped result variable to BT_DBG instead of the raw __le16 field. The Linux kernel CVE team has assigned CVE-2026-43062 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 5.10.253 with commit 21d3ba696918d6373233aac0b9d51fcabdedddc0 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 5.15.203 with commit 3b94e62caa1dc1198d0d55d97bd710da1dee15d7 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.1.167 with commit 111f74547eee8cfedfb854284e80f35c8a491186 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.6.130 with commit dd3b221e21079ade8263fbb7176f3d55ad75d3b6 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.12.78 with commit d90150c72d2e6a8a3079e88755dafcfbe91c746d Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.18.20 with commit 5a1ea296f8589ce8f1e3141b2b123b34ad010e19 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.19.10 with commit f110b8f58b254bf997cec1bd60701b7798e9bb82 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 7.0 with commit 15145675690cab2de1056e7ed68e59cbd0452529 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-43062 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/bluetooth/l2cap_core.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/21d3ba696918d6373233aac0b9d51fcabdedddc0 https://git.kernel.org/stable/c/3b94e62caa1dc1198d0d55d97bd710da1dee15d7 https://git.kernel.org/stable/c/111f74547eee8cfedfb854284e80f35c8a491186 https://git.kernel.org/stable/c/dd3b221e21079ade8263fbb7176f3d55ad75d3b6 https://git.kernel.org/stable/c/d90150c72d2e6a8a3079e88755dafcfbe91c746d https://git.kernel.org/stable/c/5a1ea296f8589ce8f1e3141b2b123b34ad010e19 https://git.kernel.org/stable/c/f110b8f58b254bf997cec1bd60701b7798e9bb82 https://git.kernel.org/stable/c/15145675690cab2de1056e7ed68e59cbd0452529