]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: fix CMAC functions not handling errors
authorChien Wong <m@xv97.com>
Thu, 13 Nov 2025 14:05:07 +0000 (22:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:06 +0000 (14:03 +0100)
commita6fb8785b1796c42728cf7498cb045772efd7af6
treeedf6a4f97f340edbcf7980cacee1cb342dc7234f
parent055e892aac1414bd3a17d435361722e2a6b4b2db
wifi: mac80211: fix CMAC functions not handling errors

[ Upstream commit 353cda30d30e5dc7cacf8de5d2546724708ae3bb ]

The called hash functions could fail thus we should check return values.

Fixes: 26717828b75d ("mac80211: aes-cmac: switch to shash CMAC driver")
Signed-off-by: Chien Wong <m@xv97.com>
Link: https://patch.msgid.link/20251113140511.48658-2-m@xv97.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/aes_cmac.c
net/mac80211/aes_cmac.h
net/mac80211/wpa.c