]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mt76: connac: fix possible NULL-pointer deref in mt76_connac_mcu_uni_bss_he_tlv()
authorLorenzo Bianconi <lorenzo@kernel.org>
Sun, 21 Jun 2026 13:24:59 +0000 (15:24 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 22 Jul 2026 06:10:47 +0000 (06:10 +0000)
commit2c1fb2335f5e3afb34f91bc07ecb63517c328090
tree6916c4299d417ef92f3f190b4fbb7a4d4f69c638
parent8e9db062654a388d0fa587acbeeae68dd33eba41
wifi: mt76: connac: fix possible NULL-pointer deref in mt76_connac_mcu_uni_bss_he_tlv()

mt76_connac_get_he_phy_cap routine can theoretically return NULL so
check cap pointer before dereferencing it.

Fixes: d0e274af2f2e4 ("mt76: mt76_connac: create mcu library")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260621-mt76_connac_get_he_phy_cap-fix-v1-1-ed4ccf7a0363@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c