Bluetooth: L2CAP: Fix type confusion in l2cap_ecred_reconf_rsp()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.15.203, Kernel 6.1.167, Kernel 5.10.253 and 12 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.11 <5.15.203, >=5.16 <6.1.167, >=5.7 <5.10.253, >=6.13 <6.18.20, >=6.19 <6.19.10, >=6.2 <6.6.130, >=6.7 <6.12.78, =7.0, >=15f02b91056253e8cdc592888f431da0731337b8 <15145675690cab2de1056e7ed68e59cbd0452529, >=15f02b91056253e8cdc592888f431da0731337b8 <21d3ba696918d6373233aac0b9d51fcabdedddc0, >=15f02b91056253e8cdc592888f431da0731337b8 <3b94e62caa1dc1198d0d55d97bd710da1dee15d7, >=15f02b91056253e8cdc592888f431da0731337b8 <5a1ea296f8589ce8f1e3141b2b123b34ad010e19, >=15f02b91056253e8cdc592888f431da0731337b8 <d90150c72d2e6a8a3079e88755dafcfbe91c746d, >=15f02b91056253e8cdc592888f431da0731337b8 <dd3b221e21079ade8263fbb7176f3d55ad75d3b6, >=15f02b91056253e8cdc592888f431da0731337b8 <f110b8f58b254bf997cec1bd60701b7798e9bb82, =5.7, >=15f02b91056253e8cdc592888f431da0731337b8 <111f74547eee8cfedfb854284e80f35c8a491186 | 5.15.203, 6.1.167, 5.10.253, 6.18.20, 6.19.10, 6.6.130, 6.12.78, 15145675690cab2de1056e7ed68e59cbd0452529, 21d3ba696918d6373233aac0b9d51fcabdedddc0, 3b94e62caa1dc1198d0d55d97bd710da1dee15d7, 5a1ea296f8589ce8f1e3141b2b123b34ad010e19, d90150c72d2e6a8a3079e88755dafcfbe91c746d, dd3b221e21079ade8263fbb7176f3d55ad75d3b6, f110b8f58b254bf997cec1bd60701b7798e9bb82, 111f74547eee8cfedfb854284e80f35c8a491186 |
| linux-kernel: Kernel | >=5.11.0 <5.15.203, >=5.16.0 <6.1.167, >=5.7.0 <5.10.253, >=6.13.0 <6.18.20, >=6.19.0 <6.19.10, >=6.2.0 <6.6.130, >=6.7.0 <6.12.78 | 5.15.203, 6.1.167, 5.10.253, 6.18.20, 6.19.10, 6.6.130, 6.12.78 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket