CVE-2026-31512
Bluetooth: L2CAP: Validate PDU length before reading SDU length in l2cap_ecred_data_rcv()
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.
INFO
Published Date :
April 22, 2026, 2:16 p.m.
Last Modified :
Nov. 11, 2026, 11:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Apply validation to Enhanced Credit Based Flow Control data path.
- Ensure skb contains at least L2CAP_SDULEN_SIZE bytes.
- Verify PDU length before accessing SDU length field.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-31512.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-31512 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-31512
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-31512 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-31512 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Nov. 11, 2026
Action Type Old Value New Value Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Bluetooth: L2CAP: Validar la longitud de la PDU antes de leer la longitud de la SDU en l2cap_ecred_data_rcv() l2cap_ecred_data_rcv() lee el campo de longitud de la SDU de skb -> data usando get_unaligned_le16() sin verificar primero que skb contenga al menos L2CAP_SDULEN_SIZE (2) bytes. Cuando skb -> len es menor que 2, esto lee más allá de los datos válidos en el skb. La ruta de reensamblaje ERTM llama correctamente a pskb_may_pull() antes de leer la longitud de la SDU (l2cap_reassemble_sdu, caso L2CAP_SAR_START). Aplicar la misma validación a la ruta de datos de Control de Flujo Basado en Crédito Mejorado. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 05, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/3340be2bafdcc806f048273ea6d8e82a6597aa1b Added Reference https://git.kernel.org/stable/c/40c7f7eea2f4d9cb0b3e924254c8c9053372168f Added Reference https://git.kernel.org/stable/c/477ad4976072056c348937e94f24583321938df4 Added Reference https://git.kernel.org/stable/c/5ad981249be52f5e4e92e0e97b436b569071cb86 Added Reference https://git.kernel.org/stable/c/8c96f3bd4ae0802db90630be8e9851827e9c9209 Added Reference https://git.kernel.org/stable/c/c65bd945d1c08c3db756821b6bf9f1c4a77b29c6 Added Reference https://git.kernel.org/stable/c/cef09691cfb61f6c91cc27c3d69634f81c8ab949 Added Reference https://git.kernel.org/stable/c/e47315b84d0eb188772c3ff5cf073cdbdefca6b4 Removed Reference https://git.kernel.org/stable/c/3340be2bafdcc806f048273ea6d8e82a6597aa1b Removed Reference https://git.kernel.org/stable/c/40c7f7eea2f4d9cb0b3e924254c8c9053372168f Removed Reference https://git.kernel.org/stable/c/477ad4976072056c348937e94f24583321938df4 Removed Reference https://git.kernel.org/stable/c/5ad981249be52f5e4e92e0e97b436b569071cb86 Removed Reference https://git.kernel.org/stable/c/8c96f3bd4ae0802db90630be8e9851827e9c9209 Removed Reference https://git.kernel.org/stable/c/c65bd945d1c08c3db756821b6bf9f1c4a77b29c6 Removed Reference https://git.kernel.org/stable/c/cef09691cfb61f6c91cc27c3d69634f81c8ab949 Removed Reference https://git.kernel.org/stable/c/e47315b84d0eb188772c3ff5cf073cdbdefca6b4 Removed Reference Type https://git.kernel.org/stable/c/3340be2bafdcc806f048273ea6d8e82a6597aa1b Types: Patch Removed Reference Type https://git.kernel.org/stable/c/40c7f7eea2f4d9cb0b3e924254c8c9053372168f Types: Patch Removed Reference Type https://git.kernel.org/stable/c/477ad4976072056c348937e94f24583321938df4 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/5ad981249be52f5e4e92e0e97b436b569071cb86 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/8c96f3bd4ae0802db90630be8e9851827e9c9209 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/c65bd945d1c08c3db756821b6bf9f1c4a77b29c6 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/cef09691cfb61f6c91cc27c3d69634f81c8ab949 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/e47315b84d0eb188772c3ff5cf073cdbdefca6b4 Types: Patch -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 05, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-31512', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-11-05T21:36:21.853077Z'} -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'aac23bf636593cc2d67144aed373a46a1a5f76b1', 'lessThan': 'cef09691cfb61f6c91cc27c3d69634f81c8ab949', 'versionType': 'git'}, {'status': 'affected', 'version': 'aac23bf636593cc2d67144aed373a46a1a5f76b1', 'lessThan': '3340be2bafdcc806f048273ea6d8e82a6597aa1b', 'versionType': 'git'}, {'status': 'affected', 'version': 'aac23bf636593cc2d67144aed373a46a1a5f76b1', 'lessThan': 'e47315b84d0eb188772c3ff5cf073cdbdefca6b4', 'versionType': 'git'}, {'status': 'affected', 'version': 'aac23bf636593cc2d67144aed373a46a1a5f76b1', 'lessThan': '477ad4976072056c348937e94f24583321938df4', 'versionType': 'git'}, {'status': 'affected', 'version': 'aac23bf636593cc2d67144aed373a46a1a5f76b1', 'lessThan': '40c7f7eea2f4d9cb0b3e924254c8c9053372168f', 'versionType': 'git'}, {'status': 'affected', 'version': 'aac23bf636593cc2d67144aed373a46a1a5f76b1', 'lessThan': '8c96f3bd4ae0802db90630be8e9851827e9c9209', 'versionType': 'git'}, {'status': 'affected', 'version': 'aac23bf636593cc2d67144aed373a46a1a5f76b1', 'lessThan': '5ad981249be52f5e4e92e0e97b436b569071cb86', 'versionType': 'git'}, {'status': 'affected', 'version': 'aac23bf636593cc2d67144aed373a46a1a5f76b1', 'lessThan': 'c65bd945d1c08c3db756821b6bf9f1c4a77b29c6', 'versionType': 'git'}], 'programFiles': ['net/bluetooth/l2cap_core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3.14'}, {'status': 'unaffected', 'version': '0', 'lessThan': '3.14', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.253', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.203', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.168', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.131', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.80', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.21', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.11', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/bluetooth/l2cap_core.c'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
Apr. 28, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:3.14:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.203 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.14.1 up to (excluding) 5.10.253 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.168 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.21 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.131 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.80 Added Reference Type kernel.org: https://git.kernel.org/stable/c/3340be2bafdcc806f048273ea6d8e82a6597aa1b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/40c7f7eea2f4d9cb0b3e924254c8c9053372168f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/477ad4976072056c348937e94f24583321938df4 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/5ad981249be52f5e4e92e0e97b436b569071cb86 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/8c96f3bd4ae0802db90630be8e9851827e9c9209 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/c65bd945d1c08c3db756821b6bf9f1c4a77b29c6 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/cef09691cfb61f6c91cc27c3d69634f81c8ab949 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/e47315b84d0eb188772c3ff5cf073cdbdefca6b4 Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 22, 2026
Action Type Old Value New Value Added 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. Added Reference https://git.kernel.org/stable/c/3340be2bafdcc806f048273ea6d8e82a6597aa1b Added Reference https://git.kernel.org/stable/c/40c7f7eea2f4d9cb0b3e924254c8c9053372168f Added Reference https://git.kernel.org/stable/c/477ad4976072056c348937e94f24583321938df4 Added Reference https://git.kernel.org/stable/c/5ad981249be52f5e4e92e0e97b436b569071cb86 Added Reference https://git.kernel.org/stable/c/8c96f3bd4ae0802db90630be8e9851827e9c9209 Added Reference https://git.kernel.org/stable/c/c65bd945d1c08c3db756821b6bf9f1c4a77b29c6 Added Reference https://git.kernel.org/stable/c/cef09691cfb61f6c91cc27c3d69634f81c8ab949 Added Reference https://git.kernel.org/stable/c/e47315b84d0eb188772c3ff5cf073cdbdefca6b4