CVE-2026-31512
JSON

5.5medium

Bluetooth: L2CAP: Validate PDU length before reading SDU length in l2cap_ecred_data_rcv()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom aac23bf636593cc2d67144aed373a46a1a5f76b1 before cef09691cfb61f6c91cc27c3d69634f81c8ab949, from aac23bf636593cc2d67144aed373a46a1a5f76b1 before 3340be2bafdcc806f048273ea6d8e82a6597aa1b, from aac23bf636593cc2d67144aed373a46a1a5f76b1 before e47315b84d0eb188772c3ff5cf073cdbdefca6b4, from aac23bf636593cc2d67144aed373a46a1a5f76b1 before 477ad4976072056c348937e94f24583321938df4, from aac23bf636593cc2d67144aed373a46a1a5f76b1 before 40c7f7eea2f4d9cb0b3e924254c8c9053372168f, from aac23bf636593cc2d67144aed373a46a1a5f76b1 before 8c96f3bd4ae0802db90630be8e9851827e9c9209, from aac23bf636593cc2d67144aed373a46a1a5f76b1 before 5ad981249be52f5e4e92e0e97b436b569071cb86, from aac23bf636593cc2d67144aed373a46a1a5f76b1 before c65bd945d1c08c3db756821b6bf9f1c4a77b29c6 and 1 more
Not affected: before 3.14, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.168 up to 6.1.*, from 6.6.131 up to 6.6.*, from 6.12.80 up to 6.12.*
CVE List
linux linux_kernelfrom 3.14.1 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.168, from 6.2 before 6.6.131, from 6.7 before 6.12.80, from 6.13 before 6.18.21, from 6.19 before 6.19.11, 3.14 and 1 moreNVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31512 changed 2026-11-05CVE Terms of Use
NVDCVE-2026-31512 changed 2026-11-11Public domain