Commit cadafab
committed
Bluetooth: L2CAP: Fix use-after-free in l2cap_disconnect_{req,rsp}
jira VULN-155000
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: Jonathan Maple <jmaple@ciq.com>1 parent bebef07 commit cadafab
1 file changed
+6
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4597 | 4597 | | |
4598 | 4598 | | |
4599 | 4599 | | |
4600 | | - | |
4601 | | - | |
4602 | | - | |
| 4600 | + | |
4603 | 4601 | | |
4604 | | - | |
4605 | 4602 | | |
4606 | 4603 | | |
4607 | 4604 | | |
4608 | 4605 | | |
4609 | | - | |
4610 | | - | |
4611 | | - | |
4612 | 4606 | | |
4613 | 4607 | | |
4614 | 4608 | | |
4615 | 4609 | | |
4616 | 4610 | | |
4617 | 4611 | | |
| 4612 | + | |
4618 | 4613 | | |
| 4614 | + | |
4619 | 4615 | | |
4620 | 4616 | | |
4621 | 4617 | | |
4622 | 4618 | | |
4623 | 4619 | | |
4624 | 4620 | | |
4625 | | - | |
4626 | | - | |
4627 | 4621 | | |
4628 | 4622 | | |
4629 | 4623 | | |
| |||
4643 | 4637 | | |
4644 | 4638 | | |
4645 | 4639 | | |
4646 | | - | |
4647 | | - | |
4648 | | - | |
| 4640 | + | |
4649 | 4641 | | |
4650 | 4642 | | |
4651 | 4643 | | |
4652 | 4644 | | |
4653 | 4645 | | |
4654 | | - | |
4655 | | - | |
4656 | | - | |
4657 | 4646 | | |
4658 | 4647 | | |
4659 | 4648 | | |
4660 | | - | |
4661 | 4649 | | |
4662 | 4650 | | |
4663 | 4651 | | |
| 4652 | + | |
4664 | 4653 | | |
| 4654 | + | |
4665 | 4655 | | |
4666 | 4656 | | |
4667 | 4657 | | |
4668 | 4658 | | |
4669 | 4659 | | |
4670 | 4660 | | |
4671 | | - | |
4672 | | - | |
4673 | 4661 | | |
4674 | 4662 | | |
4675 | 4663 | | |
| |||
0 commit comments