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 ED54E3E8C6A for ; Wed, 22 Apr 2026 13:57:24 +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=1776866245; cv=none; b=GGpudf9lZoei25OnwAlKJf8vKNVvXevctCn7Dd7YjDPv3+YC5GrT6ayr8qFr4HXBZ/jA//rUwGhnEGmB1cVoNBboEgtk/x43aUdaJVReddgWi/Ng5TRGxbzNXXjN16UIW4faHWnwG2DQwnfv7DPmelcNrLLe3B6IRWTai6v73O8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866245; c=relaxed/simple; bh=zYaVZ288g8KtAYa6mbGsNt400VxvxwtD4gL1TuSWFLM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZyPAgbFutBoQnRBsQz2izM/mqDWSupth60UzxHGZoP0s/VYmnkx+jPp24LvZK3BLoDniX98hdyfYCo+I6CU2GslOlYxuivf6nyMXdXJH5Clux4f7WpWYibQT405oO5EwzrdXO59qfhGrfQUqnwkabsuZaBxrUDijxI08p+s3ezY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BxhgvYQ2; 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="BxhgvYQ2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82202C19425; Wed, 22 Apr 2026 13:57:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866244; bh=zYaVZ288g8KtAYa6mbGsNt400VxvxwtD4gL1TuSWFLM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=BxhgvYQ2dqzIC/lOGauWD3FYwkQXMRAgm2vhBZhtFIYaMg2w6ZxeCLGst70HIFfV3 mR30oXxOxCy5KuCjsAPilm35Ci0sWgElEhdSpoqJxXG1pMA7xKcnhgGd+J+lq4ZZjM lgwlaCN+mScItIhCe552XBJsPDvB6GRjhgUBYJIs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31512: Bluetooth: L2CAP: Validate PDU length before reading SDU length in l2cap_ecred_data_rcv() Date: Wed, 22 Apr 2026 15:54:58 +0200 Message-ID: <2026042209-CVE-2026-31512-b386@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=3639; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=m4DCPnZGMwOorRtlXGCnssIwhmzPiq7f+buAhxk9Z3A=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLjNmhW6LmPKc73bXxkeCwROTn1YmadhNkyu78U9g2 2OhmlaejlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIhiDDgn3eV9iTYv6sCdOa c6KdbdeJske7tBjmh58+1BFycNKpT2XZd64+jdxZ2HxqCQA= 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: Validate PDU length before reading SDU length in l2cap_ecred_data_rcv() l2cap_ecred_data_rcv() reads the SDU length field from skb->data using get_unaligned_le16() without first verifying that skb contains at least L2CAP_SDULEN_SIZE (2) bytes. When skb->len is less than 2, this reads past the valid data in the skb. The ERTM reassembly path correctly calls pskb_may_pull() before reading the SDU length (l2cap_reassemble_sdu, L2CAP_SAR_START case). Apply the same validation to the Enhanced Credit Based Flow Control data path. The Linux kernel CVE team has assigned CVE-2026-31512 to this issue. Affected and fixed versions =========================== Issue introduced in 3.14 with commit aac23bf636593cc2d67144aed373a46a1a5f76b1 and fixed in 5.10.253 with commit cef09691cfb61f6c91cc27c3d69634f81c8ab949 Issue introduced in 3.14 with commit aac23bf636593cc2d67144aed373a46a1a5f76b1 and fixed in 5.15.203 with commit 3340be2bafdcc806f048273ea6d8e82a6597aa1b Issue introduced in 3.14 with commit aac23bf636593cc2d67144aed373a46a1a5f76b1 and fixed in 6.1.168 with commit e47315b84d0eb188772c3ff5cf073cdbdefca6b4 Issue introduced in 3.14 with commit aac23bf636593cc2d67144aed373a46a1a5f76b1 and fixed in 6.6.131 with commit 477ad4976072056c348937e94f24583321938df4 Issue introduced in 3.14 with commit aac23bf636593cc2d67144aed373a46a1a5f76b1 and fixed in 6.12.80 with commit 40c7f7eea2f4d9cb0b3e924254c8c9053372168f Issue introduced in 3.14 with commit aac23bf636593cc2d67144aed373a46a1a5f76b1 and fixed in 6.18.21 with commit 8c96f3bd4ae0802db90630be8e9851827e9c9209 Issue introduced in 3.14 with commit aac23bf636593cc2d67144aed373a46a1a5f76b1 and fixed in 6.19.11 with commit 5ad981249be52f5e4e92e0e97b436b569071cb86 Issue introduced in 3.14 with commit aac23bf636593cc2d67144aed373a46a1a5f76b1 and fixed in 7.0 with commit c65bd945d1c08c3db756821b6bf9f1c4a77b29c6 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-31512 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/cef09691cfb61f6c91cc27c3d69634f81c8ab949 https://git.kernel.org/stable/c/3340be2bafdcc806f048273ea6d8e82a6597aa1b https://git.kernel.org/stable/c/e47315b84d0eb188772c3ff5cf073cdbdefca6b4 https://git.kernel.org/stable/c/477ad4976072056c348937e94f24583321938df4 https://git.kernel.org/stable/c/40c7f7eea2f4d9cb0b3e924254c8c9053372168f https://git.kernel.org/stable/c/8c96f3bd4ae0802db90630be8e9851827e9c9209 https://git.kernel.org/stable/c/5ad981249be52f5e4e92e0e97b436b569071cb86 https://git.kernel.org/stable/c/c65bd945d1c08c3db756821b6bf9f1c4a77b29c6