CVE-2026-43062 PUBLISHED

Bluetooth: L2CAP: Fix type confusion in l2cap_ecred_reconf_rsp()

Assigner: Linux
Reserved: 01.05.2026 Published: 05.05.2026 Updated: 05.05.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 15f02b91056253e8cdc592888f431da0731337b8 to 21d3ba696918d6373233aac0b9d51fcabdedddc0 (excl.)
  • affected from 15f02b91056253e8cdc592888f431da0731337b8 to 3b94e62caa1dc1198d0d55d97bd710da1dee15d7 (excl.)
  • affected from 15f02b91056253e8cdc592888f431da0731337b8 to 111f74547eee8cfedfb854284e80f35c8a491186 (excl.)
  • affected from 15f02b91056253e8cdc592888f431da0731337b8 to dd3b221e21079ade8263fbb7176f3d55ad75d3b6 (excl.)
  • affected from 15f02b91056253e8cdc592888f431da0731337b8 to d90150c72d2e6a8a3079e88755dafcfbe91c746d (excl.)
  • affected from 15f02b91056253e8cdc592888f431da0731337b8 to 5a1ea296f8589ce8f1e3141b2b123b34ad010e19 (excl.)
  • affected from 15f02b91056253e8cdc592888f431da0731337b8 to f110b8f58b254bf997cec1bd60701b7798e9bb82 (excl.)
  • affected from 15f02b91056253e8cdc592888f431da0731337b8 to 15145675690cab2de1056e7ed68e59cbd0452529 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.7 is affected
  • unaffected from 0 to 5.7 (excl.)
  • unaffected from 5.10.253 to 5.10.* (incl.)
  • unaffected from 5.15.203 to 5.15.* (incl.)
  • unaffected from 6.1.167 to 6.1.* (incl.)
  • unaffected from 6.6.130 to 6.6.* (incl.)
  • unaffected from 6.12.78 to 6.12.* (incl.)
  • unaffected from 6.18.20 to 6.18.* (incl.)
  • unaffected from 6.19.10 to 6.19.* (incl.)
  • unaffected from 7.0 to * (incl.)

References