Commit b255531
Bluetooth: hci_event: fix potential UAF in hci_le_remote_conn_param_req_evt
hci_conn lookup and field access must be covered by hdev lock in
hci_le_remote_conn_param_req_evt, otherwise it's possible it is freed
concurrently.
Extend the hci_dev_lock critical section to cover all conn usage.
Fixes: 95118dd ("Bluetooth: hci_event: Use of a function table to handle LE subevents")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>1 parent a2639a7 commit b255531
1 file changed
Lines changed: 20 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6784 | 6784 | | |
6785 | 6785 | | |
6786 | 6786 | | |
| 6787 | + | |
| 6788 | + | |
6787 | 6789 | | |
6788 | | - | |
6789 | | - | |
6790 | | - | |
| 6790 | + | |
| 6791 | + | |
| 6792 | + | |
| 6793 | + | |
| 6794 | + | |
6791 | 6795 | | |
6792 | | - | |
6793 | | - | |
6794 | | - | |
| 6796 | + | |
| 6797 | + | |
| 6798 | + | |
| 6799 | + | |
| 6800 | + | |
6795 | 6801 | | |
6796 | | - | |
6797 | | - | |
6798 | | - | |
| 6802 | + | |
| 6803 | + | |
| 6804 | + | |
| 6805 | + | |
| 6806 | + | |
6799 | 6807 | | |
6800 | 6808 | | |
6801 | 6809 | | |
6802 | 6810 | | |
6803 | 6811 | | |
6804 | | - | |
6805 | | - | |
6806 | 6812 | | |
6807 | 6813 | | |
6808 | 6814 | | |
| |||
6815 | 6821 | | |
6816 | 6822 | | |
6817 | 6823 | | |
6818 | | - | |
6819 | | - | |
6820 | 6824 | | |
6821 | 6825 | | |
6822 | 6826 | | |
| |||
6830 | 6834 | | |
6831 | 6835 | | |
6832 | 6836 | | |
| 6837 | + | |
| 6838 | + | |
| 6839 | + | |
6833 | 6840 | | |
6834 | 6841 | | |
6835 | 6842 | | |
| |||
0 commit comments