Linux
Bluetooth: L2CAP: Fix possible crash on l2cap_ecred_conn_rsp
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: Fix possible crash on l2cap_ecred_conn_rsp If dcid is received for an already-assigned destination CID the spec requires that both channels to be discarded, but calling l2cap_chan_del may invalidate the tmp cursor created by list_for_each_entry_safe and in fact it is the wrong procedure as the chan->dcid may be assigned previously it really needs to be disconnected. Calling l2cap_chan_clone directly may still lead to l2cap_chan_del so instead schedule l2cap_chan_timeout with delay 0 to close the channel asynchronously.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 15f02b91056253e8cdc592888f431da0731337b8, < 3c8eaa91eb433c450426539290be4ffe282e9f00
- >= 15f02b91056253e8cdc592888f431da0731337b8, < ecfed1e0d8efecad6737a0d83e21d2fd021d8c48
- >= 15f02b91056253e8cdc592888f431da0731337b8, < e6833e737a51db1e5ea0401322acf5e22abd8be6
- >= 15f02b91056253e8cdc592888f431da0731337b8, < 6319b38fe69f56ed95680ade485b957a53fff642
- >= 15f02b91056253e8cdc592888f431da0731337b8, < 291eec1041c918c460dc9702e44edd17794b4a4b
- >= 15f02b91056253e8cdc592888f431da0731337b8, < 41e29548b5e8b5e5fcf708786b3bea67cab107fa
- >= 15f02b91056253e8cdc592888f431da0731337b8, < d153b8898c0051eb8b6a083b35cbe304a5886bd5
- >= 15f02b91056253e8cdc592888f431da0731337b8, < 41c2713b204e6cb6a94587bc6bf6935107df5479
Fixed in 3c8eaa91eb433c450426539290be4ffe282e9f00, ecfed1e0d8efecad6737a0d83e21d2fd021d8c48, e6833e737a51db1e5ea0401322acf5e22abd8be6, 6319b38fe69f56ed95680ade485b957a53fff642, 291eec1041c918c460dc9702e44edd17794b4a4b, 41e29548b5e8b5e5fcf708786b3bea67cab107fa, d153b8898c0051eb8b6a083b35cbe304a5886bd5, 41c2713b204e6cb6a94587bc6bf6935107df5479
- 5.7
Fixed in 0, 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.93, 6.18.35, 7.0.12, 7.1
Mitigation
Upgrade Linux to 3c8eaa91eb433c450426539290be4ffe282e9f00 or ecfed1e0d8efecad6737a0d83e21d2fd021d8c48 or e6833e737a51db1e5ea0401322acf5e22abd8be6 or 6319b38fe69f56ed95680ade485b957a53fff642 or 291eec1041c918c460dc9702e44edd17794b4a4b or 41e29548b5e8b5e5fcf708786b3bea67cab107fa or d153b8898c0051eb8b6a083b35cbe304a5886bd5 or 41c2713b204e6cb6a94587bc6bf6935107df5479 or later.
Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.93 or 6.18.35 or 7.0.12 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.