summaryrefslogtreecommitdiff
path: root/arch/ppc/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorYochai Eisenrich <echelonh@gmail.com>2026-03-29 00:14:36 +0300
committerJakub Kicinski <kuba@kernel.org>2026-03-30 17:56:40 -0700
commite6e3eb5ee89ac4c163d46429391c889a1bb5e404 (patch)
treee57452ede86c59b587be70dd6ef39962a8267baa /arch/ppc/git@git.tavy.me:linux.git
parentddc748a391dd8642ba6b2e4fe22e7f2ddf84b7f0 (diff)
net: sched: cls_api: fix tc_chain_fill_node to initialize tcm_info to zero to prevent an info-leak
When building netlink messages, tc_chain_fill_node() never initializes the tcm_info field of struct tcmsg. Since the allocation is not zeroed, kernel heap memory is leaked to userspace through this 4-byte field. The fix simply zeroes tcm_info alongside the other fields that are already initialized. Fixes: 32a4f5ecd738 ("net: sched: introduce chain object to uapi") Signed-off-by: Yochai Eisenrich <echelonh@gmail.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Link: https://patch.msgid.link/20260328211436.1010152-1-echelonh@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'arch/ppc/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions