7.1high
Bluetooth: L2CAP: Fix type confusion in l2cap_ecred_reconf_rsp()
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.22% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 15f02b91056253e8cdc592888f431da0731337b8 before 21d3ba696918d6373233aac0b9d51fcabdedddc0, from 15f02b91056253e8cdc592888f431da0731337b8 before 3b94e62caa1dc1198d0d55d97bd710da1dee15d7, from 15f02b91056253e8cdc592888f431da0731337b8 before 111f74547eee8cfedfb854284e80f35c8a491186, from 15f02b91056253e8cdc592888f431da0731337b8 before dd3b221e21079ade8263fbb7176f3d55ad75d3b6, from 15f02b91056253e8cdc592888f431da0731337b8 before d90150c72d2e6a8a3079e88755dafcfbe91c746d, from 15f02b91056253e8cdc592888f431da0731337b8 before 5a1ea296f8589ce8f1e3141b2b123b34ad010e19, from 15f02b91056253e8cdc592888f431da0731337b8 before f110b8f58b254bf997cec1bd60701b7798e9bb82, from 15f02b91056253e8cdc592888f431da0731337b8 before 15145675690cab2de1056e7ed68e59cbd0452529 and 1 more Not affected: before 5.7, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.167 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.78 up to 6.12.* | CVE List |
| linux linux_kernel | from 5.7 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.167, from 6.2 before 6.6.130, from 6.7 before 6.12.78, from 6.13 before 6.18.20, from 6.19 before 6.19.10, 7.0 | NVD |
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: 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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Bluetooth: L2CAP: Corrección de confusión de tipos en l2cap_ecred_reconf_rsp() l2cap_ecred_reconf_rsp() convierte los datos entrantes a struct l2cap_ecred_conn_rsp (la respuesta ECRED de conexión, 8 bytes con el resultado en el desplazamiento 6) en lugar de struct l2cap_ecred_reconf_rsp (2 bytes con el resultado en el desplazamiento 0). Esto causa dos problemas: - La comprobación de longitud de sizeof(rsp) requiere 8 bytes en lugar de los 2 correctos, por lo que los paquetes L2CAP_ECRED_RECONF_RSP válidos son rechazados con -EPROTO. - rsp -> result lee desde el desplazamiento 6 en lugar del desplazamiento 0, devolviendo datos incorrectos cuando el paquete es lo suficientemente grande como para pasar la comprobación. Corrección mediante el uso del tipo correcto. También se pasa la variable de resultado ya con los bytes intercambiados a BT_DBG en lugar del campo __le16 en bruto.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43062 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-43062 changed 2026-11-11 | Public domain |