Commit f0ad73c
committed
net: sched: sch_multiq: fix possible OOB write in multiq_tune()
jira VULN-8977
cve CVE-2024-36978
commit-author Hangyu Hua <hbh25y@gmail.com>
commit affc18f
q->bands will be assigned to qopt->bands to execute subsequent code logic
after kmalloc. So the old q->bands should not be used in kmalloc.
Otherwise, an out-of-bounds write will occur.
Fixes: c2999f7 ("net: sched: multiq: don't call qdisc_put() while holding tree lock")
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Acked-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit affc18f)
Signed-off-by: Shreeya Patel <spatel@ciq.com>1 parent 5845538 commit f0ad73c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
0 commit comments