From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84E76208D0 for ; Mon, 13 Jul 2026 01:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783905741; cv=none; b=otAVbi+ZMIpWNgDn7lDNB/4Mt1vx43C6Kiu2ULQIuUrplyqavc9rUn3hSpm1djsA68DxFSY0G8cYZolgGVsuE//mJLZghjLySHPLbYCzntmNm2EGKepJgiS6gEB9Hps2VkokUpXiXRjUfA6ieDRmwK4TpwY1k06XypChdBszLXw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783905741; c=relaxed/simple; bh=BNsK+AUpeWVPjgsWosi+Jph7O5fvmCuF3Ddd9Dk4pcM=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=p83Liwl/XrPg6MA6cfNLOCAUNXgYiQjV8QYg9mMMrH+OsqhUyu+b8lyRTHcpB82ZAmOAwO9Fw563mm1gSVoR98gx+rhpg1ZpLWV5VjQKesB97Q7n8sW3TVl5g2g1rbvyfkVTikMarfOF1xX0RAYFsMrBKaS5DtGGrOutDOucsPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.167.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-4a441e90050so1409280b6e.1 for ; Sun, 12 Jul 2026 18:22:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783905739; x=1784510539; h=content-type:to:from:subject:message-id:in-reply-to:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=iOZuUjp4P0CrQYn6F6eUnANtImYvZZbS3mRouz3/Bhc=; b=ijxJMt5YRylF4me4FPR0w17QdG3lrxImJwBjarcXzH/NpnbzvL+BTBw9kqt9saYVka rgIH+cJkEfWoisIczoJZtzvSYqC5a8EMiGlE+qQut5FrzAA1GWnLPDxCAncgbVOmZZIy QJwjkjfNoTZOSP+agDf/9+bS9Jksa/wMskONbf7n887jrxx2b2k+J3TEMFMfsBgKrXFf SOLkweC9NdTAzgkLqzSNPcgJgQCFtz1cXt20N6cNCnB6iB1sLzFDO4JD5h72iFItJTE7 N2N20vLD4e3zTIrrTGOggDqCKPgObSBU8u9Ho2ApGW/IKXXNlUgzKlSQ9b3S9c5Fj+LO fuXg== X-Gm-Message-State: AOJu0YzlNQBaVK0B3vFDuGykcRpAfJI1H/S5/ga7c41lIg3bqW7HdRn7 5AP0VLxVcTjCUNnoJdkUY8pk8x3nT+sQkFBPdg2Ic9w/DfRbj/K/NEHOgfJy0roO0yFgAiWdJ3h g+ErXwFe8d38a77WC5cTyH8CNYsdUiWNnLjwlAydTRGqmF1EJVNCna0HFi3s= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6808:11c4:b0:496:1111:d7a8 with SMTP id 5614622812f47-4a40ed2ca9amr7135356b6e.8.1783905739553; Sun, 12 Jul 2026 18:22:19 -0700 (PDT) Date: Sun, 12 Jul 2026 18:22:19 -0700 In-Reply-To: <6a54082c.574492cf.19a3b.0015.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a543dcb.574492cf.19a3b.0019.GAE@google.com> Subject: Forwarded: [PATCH] mac80211: don't encrypt pre-auth (ETH_P_PREAUTH) frames From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: [PATCH] mac80211: don't encrypt pre-auth (ETH_P_PREAUTH) frames Author: kartikey406@gmail.com #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master Pre-authentication frames (ETH_P_PREAUTH, 0x88C7) are sent before the authentication handshake completes with the target AP, so no encryption key exists for them yet. Unlike normal EAPOL frames (ETH_P_8021X, 0x888E) which are registered as the control port protocol, pre-auth frames are not recognized as control port frames, causing the kernel to incorrectly assign the current AP's key and attempt encryption, resulting in a WARN_ON in ieee80211_encrypt_tx_skb when the cipher is not handled. Fix this by setting IEEE80211_TX_INTFL_DONT_ENCRYPT for pre-auth frames in ieee80211_tx_h_check_control_port_protocol(), so that key selection skips them and they are sent unencrypted as intended. Reported-by: syzbot+b6ce23950fd636e6efb6@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=b6ce23950fd636e6efb6 Signed-off-by: Deepanshu Kartikey --- net/mac80211/tx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index c13b209fad47..b3acfd69380f 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -557,6 +557,9 @@ ieee80211_tx_h_check_control_port_protocol(struct ieee80211_tx_data *tx) info->flags |= IEEE80211_TX_CTL_USE_MINRATE; } + if (tx->skb->protocol == htons(ETH_P_PREAUTH)) + info->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; + return TX_CONTINUE; } -- 2.43.0