Commit 3695251
committed
Bluetooth: L2CAP: Fix use-after-free in l2cap_disconnect_{req,rsp}
jira VULN-154997
cve-pre CVE-2023-53297
commit-author Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
commit a2a9339
Similar to commit d0be834 ("Bluetooth: L2CAP: Fix use-after-free
caused by l2cap_chan_put"), just use l2cap_chan_hold_unless_zero to
prevent referencing a channel that is about to be destroyed.
Cc: stable@kernel.org
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Min Li <lm0963hack@gmail.com>
(cherry picked from commit a2a9339)
Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>1 parent 2c8e534 commit 3695251
1 file changed
+6
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4631 | 4631 | | |
4632 | 4632 | | |
4633 | 4633 | | |
4634 | | - | |
4635 | | - | |
4636 | | - | |
| 4634 | + | |
4637 | 4635 | | |
4638 | | - | |
4639 | 4636 | | |
4640 | 4637 | | |
4641 | 4638 | | |
4642 | 4639 | | |
4643 | | - | |
4644 | | - | |
4645 | | - | |
4646 | 4640 | | |
4647 | 4641 | | |
4648 | 4642 | | |
4649 | 4643 | | |
4650 | 4644 | | |
4651 | 4645 | | |
| 4646 | + | |
4652 | 4647 | | |
| 4648 | + | |
4653 | 4649 | | |
4654 | 4650 | | |
4655 | 4651 | | |
4656 | 4652 | | |
4657 | 4653 | | |
4658 | 4654 | | |
4659 | | - | |
4660 | | - | |
4661 | 4655 | | |
4662 | 4656 | | |
4663 | 4657 | | |
| |||
4677 | 4671 | | |
4678 | 4672 | | |
4679 | 4673 | | |
4680 | | - | |
4681 | | - | |
4682 | | - | |
| 4674 | + | |
4683 | 4675 | | |
4684 | 4676 | | |
4685 | 4677 | | |
4686 | 4678 | | |
4687 | 4679 | | |
4688 | | - | |
4689 | | - | |
4690 | | - | |
4691 | 4680 | | |
4692 | 4681 | | |
4693 | 4682 | | |
4694 | | - | |
4695 | 4683 | | |
4696 | 4684 | | |
4697 | 4685 | | |
| 4686 | + | |
4698 | 4687 | | |
| 4688 | + | |
4699 | 4689 | | |
4700 | 4690 | | |
4701 | 4691 | | |
4702 | 4692 | | |
4703 | 4693 | | |
4704 | 4694 | | |
4705 | | - | |
4706 | | - | |
4707 | 4695 | | |
4708 | 4696 | | |
4709 | 4697 | | |
| |||
0 commit comments