]> www.infradead.org Git - users/dwmw2/linux.git/commit
net_sched: hfsc: Fix a potential UAF in hfsc_dequeue() too
authorCong Wang <xiyou.wangcong@gmail.com>
Thu, 17 Apr 2025 18:47:31 +0000 (11:47 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Apr 2025 00:16:50 +0000 (17:16 -0700)
commit6ccbda44e2cc3d26fd22af54c650d6d5d801addf
tree99bbfe170a36b3f6fddeb6479fcad59fdc8a4d65
parent3df275ef0a6ae181e8428a6589ef5d5231e58b5c
net_sched: hfsc: Fix a potential UAF in hfsc_dequeue() too

Similarly to the previous patch, we need to safe guard hfsc_dequeue()
too. But for this one, we don't have a reliable reproducer.

Fixes: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ("Linux-2.6.12-rc2")
Reported-by: Gerrard Tai <gerrard.tai@starlabs.sg>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://patch.msgid.link/20250417184732.943057-3-xiyou.wangcong@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_hfsc.c