Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1093387364 for ; Tue, 22 Sep 2026 15:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790089879; cv=none; b=lpXPRniEdBOwkQXPeKf2JNclvun97MctUDpsRWpnkObXdMJAD4eF3xKB5oJCFmQLL64+6Kp8SgUouEJZdSgW5P/csnWFa9diAYuRlQGco0FqPtwtShVqiSlqXPK0pUmyAHY7cwBZP27NG4ZnXNbEfC2T05sHx2WUD3hpa1bTpzc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790089879; c=relaxed/simple; bh=+lNiUOJlOMAa3rV4T19U/3dak5wSE2iTY4d83dheRAU=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=DH8fgr/Gnkwpb/LjsiHXSfhNSoIDFa8y1+NBdCq53JnuAsS5F1CIHhrZ8XFgm7Bv3ofkkDZ5GbeOzcu8r8qlAJfokYbCwXFGAECDfQ3OS9NJazlYJmsbPaNrzQjJ/+bAMRQo3GSnSwnMGqmvAFMCjlLoYGEq7BeCvSwSJKJ01yY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Rj/cj8lN; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Rj/cj8lN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B92F71F00893; Tue, 22 Sep 2026 15:11:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790089878; bh=ag+TkLWvWU6gV1DhL+4aR/7SJ9fOrCt+SyZAhnRdx8Y=; h=Subject:To:Cc:From:Date; b=Rj/cj8lNL5XDMkx6HHl8HnNle2R/iG7wingQaJ/aeD8fEntoxCHhuPIpZxGykMETO mXbrz2/kfWJn+gydrSosdMNho2Kycm82/pVXNbpi66HRePgRk6EAjpjWFDeUKBaN5G IhLZ3C2/H2jUEoAIVgY0LhTXxNLSdpS0A/Tc93eE= Subject: FAILED: patch "[PATCH] wifi: libipw: reject TKIP frames without a full MIC" failed to apply to 6.6-stable tree To: 4ncienth@gmail.com,johannes.berg@intel.com Cc: From: Date: Tue, 22 Sep 2026 16:58:32 +0200 Message-ID: <2026092232-duckbill-durably-dc23@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 06f42accaf3c6aecab1dcc57f68dde6c06c8b380 # git commit -s git send-email --to '' --in-reply-to '2026092232-duckbill-durably-dc23@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 06f42accaf3c6aecab1dcc57f68dde6c06c8b380 Mon Sep 17 00:00:00 2001 From: Daehyeon Ko <4ncienth@gmail.com> Date: Wed, 9 Sep 2026 15:11:24 +0900 Subject: [PATCH] wifi: libipw: reject TKIP frames without a full MIC libipw_michael_mic_verify() assumes that an skb contains an eight-byte Michael MIC. A short TKIP frame makes the unsigned payload length wrap, causing michael_mic() to read past the skb. Check that the MIC is present before verifying it, and use the existing MICHAEL_MIC_LEN constant for all MIC lengths in the verifier. Fixes: b453872c35cf ("[NET] ieee80211 subsystem") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Daehyeon Ko <4ncienth@gmail.com> Link: https://patch.msgid.link/20260909061124.3802517-1-4ncienth@gmail.com Signed-off-by: Johannes Berg diff --git a/drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c b/drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c index 24bb28ab7a49..2b0cf0ec496a 100644 --- a/drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c +++ b/drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c @@ -474,14 +474,16 @@ static int libipw_michael_mic_verify(struct sk_buff *skb, int keyidx, int hdr_len, void *priv) { struct libipw_tkip_data *tkey = priv; - u8 mic[8]; + u8 mic[MICHAEL_MIC_LEN]; - if (!tkey->key_set) + if (!tkey->key_set || skb->len < hdr_len + MICHAEL_MIC_LEN) return -1; michael_mic(&tkey->key[24], (struct ieee80211_hdr *)skb->data, - skb->data + hdr_len, skb->len - 8 - hdr_len, mic); - if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { + skb->data + hdr_len, + skb->len - MICHAEL_MIC_LEN - hdr_len, mic); + if (memcmp(mic, skb->data + skb->len - MICHAEL_MIC_LEN, + MICHAEL_MIC_LEN) != 0) { struct ieee80211_hdr *hdr; hdr = (struct ieee80211_hdr *)skb->data; printk(KERN_DEBUG "%s: Michael MIC verification failed for " @@ -499,7 +501,7 @@ static int libipw_michael_mic_verify(struct sk_buff *skb, int keyidx, tkey->rx_iv32 = tkey->rx_iv32_new; tkey->rx_iv16 = tkey->rx_iv16_new; - skb_trim(skb, skb->len - 8); + skb_trim(skb, skb->len - MICHAEL_MIC_LEN); return 0; }