summaryrefslogtreecommitdiff
path: root/include/uapi/linux/errqueue.h
diff options
context:
space:
mode:
authorWayen Yan <win847@gmail.com>2026-06-16 19:52:36 +0800
committerJakub Kicinski <kuba@kernel.org>2026-06-18 18:03:12 -0700
commit5c121ee635680c93d7074becf14cfbaac140f80d (patch)
tree93ed99fabfce8563c932a281279ba299a5b2d461 /include/uapi/linux/errqueue.h
parent440a9744928a26be71f7eb49c0489e509473c587 (diff)
net: airoha: fix foe_check_time allocation size
foe_check_time is declared as u16 pointer but was allocated with only ppe_num_entries bytes instead of ppe_num_entries * sizeof(u16). When airoha_ppe_foe_verify_entry() is called with hash >= ppe_num_entries/2, it writes beyond the allocated buffer, causing heap buffer overflow and potential kernel crash. Fixes: 6d5b601d52a2 ("net: airoha: ppe: Dynamically allocate foe_check_time array in airoha_ppe struct") Signed-off-by: Wayen Yan <win847@gmail.com> Acked-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://patch.msgid.link/178161119471.2163752.14373384830691569758@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions