1. Home
  2. Vulnerabilities
  3. CVE-2026-31512

CVE-2026-31512

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

Published 22 Apr 2026 · modified 11 Nov 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Low 23/100

Summary

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 products and versions

Linux (10 line(s))
Linux
ProductVersionsFixed inSource
Linux 3.14 — CNA (vendor or assigner)
Linux kernel from 3.14.1 (included) to 5.10.253 (excluded) — NVD
Linux kernel from 5.11 (included) to 5.15.203 (excluded) — NVD
Linux kernel from 5.16 (included) to 6.1.168 (excluded) — NVD
Linux kernel from 6.2 (included) to 6.6.131 (excluded) — NVD
Linux kernel from 6.7 (included) to 6.12.80 (excluded) — NVD
Linux kernel from 6.13 (included) to 6.18.21 (excluded) — NVD
Linux kernel from 6.19 (included) to 6.19.11 (excluded) — NVD
Linux kernel 3.14 — NVD
Linux kernel 7.0 — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
NVD-CWE-noinfo · Non classé

How this data is obtained and calculated