Commit 66f5e894 authored by Alexander Aring's avatar Alexander Aring Committed by sanglipeng
Browse files

ca8210: fix mac_len negative array access

stable inclusion
from stable-v5.10.177
commit 7df72bedbdd1d02bb216e1f6eca0a16900238c4e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7df72bedbdd1d02bb216e1f6eca0a16900238c4e



--------------------------------

[ Upstream commit 6c993779 ]

This patch fixes a buffer overflow access of skb->data if
ieee802154_hdr_peek_addrs() fails.

Reported-by: default avatarlianhui tang <bluetlh@gmail.com>
Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20230217042504.3303396-1-aahringo@redhat.com


Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent b6de9b4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment