Bluetooth: l2cap: Add missing chan lock in l2cap_ecred_reconf_rsp
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: l2cap: Add missing chan lock in l2cap_ecred_reconf_rsp l2cap_ecred_reconf_rsp() calls l2cap_chan_del() without holding l2cap_chan_lock(). Every other l2cap_chan_del() caller in the file acquires the lock first. A remote BLE device can send a crafted L2CAP ECRED reconfiguration response to corrupt the channel list while another thread is iterating it. Add l2cap_chan_hold() and l2cap_chan_lock() before l2cap_chan_del(), and l2cap_chan_unlock() and l2cap_chan_put() after, matching the pattern used in l2cap_ecred_conn_rsp() and l2cap_conn_del().
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 15f02b91056253e8cdc592888f431da0731337b8 · fixed in 96dca51715d86559ed6ed8028e5445cecb80f3ae; From 15f02b91056253e8cdc592888f431da0731337b8 · fixed in 330b20ec97916961ee0e6c29c06bc0fa7c96e64c; From 15f02b91056253e8cdc592888f431da0731337b8 · fixed in 0ccd75c51f620374086f359e906917676e699a1c; From 15f02b91056253e8cdc592888f431da0731337b8 · fixed in 77a853aec710b2fdf41fa298ea3cbc9a4358f917; From 15f02b91056253e8cdc592888f431da0731337b8 · fixed in fe1188abdae9b7a8199dcdfcf9244d5e5d61eb14; From 15f02b91056253e8cdc592888f431da0731337b8 · fixed in dc89961b76f12aff47124c1df4bdb32a080f4d0c; From 15f02b91056253e8cdc592888f431da0731337b8 · fixed in 5501d055a1ce3c747141e3955ba8cf034d193f3e; From 15f02b91056253e8cdc592888f431da0731337b8 · fixed in 42776497cdbc9a665b384a6dcb85f0d4bd927eab
- Linux Linux
5.7
- KernelLinux
From 5.7.0 · fixed in 5.10.258; From 5.11.0 · fixed in 5.15.209; From 5.16.0 · fixed in 6.1.175; From 6.2.0 · fixed in 6.6.141; From 6.7.0 · fixed in 6.12.91; From 6.13.0 · fixed in 6.18.33; From 6.19.0 · fixed in 7.0.10
References 8
git.kernel.org
- stable/c/96dca51715d86559ed6ed8028e5445cecb80f3ae
- stable/c/330b20ec97916961ee0e6c29c06bc0fa7c96e64c
- stable/c/0ccd75c51f620374086f359e906917676e699a1c
- stable/c/77a853aec710b2fdf41fa298ea3cbc9a4358f917
- stable/c/fe1188abdae9b7a8199dcdfcf9244d5e5d61eb14
- stable/c/dc89961b76f12aff47124c1df4bdb32a080f4d0c
- stable/c/5501d055a1ce3c747141e3955ba8cf034d193f3e
- stable/c/42776497cdbc9a665b384a6dcb85f0d4bd927eab