From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796113391; b=0awFqLCkbPVF0Z8OcSza1LOb5xPliOzaTfRXIKtKKBmpRJAYeHYIT9/TGdKFtD1cEhoz 2SRLi8uDRKiCjqOuFpn1xt1q5tbMKagR6eu2hm6uRKlmymES83HE8An0A6fh1a4gse6Ak zaWRW4jJixX6VoBJ5EpI0u3vUu8793fsrIv1mSwo06k1Q7mqUXWVECxSUsfUEjrXyRkIf ZFmAviURrR7INtK1dFAWfYAWApv1hQZyLGw7oZQCMyJ87UJk8i25kDOTeR9xkjQMOyBBe nbuQNsvEFV9X2c+EsNgsoYaUH0abgENhRQ+cn93Qb3UKFYi9aZ0FFjFzVO/gIcm5UlQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796113391; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=5/6OhwJU9p2B2BOp1h+wZnuq+3GuAwCHLluexnVBVXA=; b=S3qfdjMmzICrFui8LNrrKSh07zUi7g/AY6bzIj9Xy6cFoaZbBeSKPwa+S9vncVPDAYS/ w6wc7c2LVo/2SGiXIDK67I4rhTZM3A172QLzjxZ5JEHZBm5C5uZFdCU9MRIqP9KvGV4t5 IP1Uuai+1yqCWJ2dSnuGrUSY8vuoujQt1d8O+JToghlhZaPsBkJ5lhITyZ0SlK711rIyY LP3nXCLwistXeut27PFDb9B8DS67kWtoLMDeU/QQ6Zoa+FZhaoSFeYqnATYrxY2AaLKWy hjehFefwnWIeCKUyJy6DTH7kdz4J6CxsdQEYypuB/BYDBnv/RVW2zTpoVnE61GQ1aGw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=K1S9yWeU; arc=none smtp.remote-ip=74.125.82.54 Received: from mail-dl1-f54.google.com (mail-dl1-f54.google.com [74.125.82.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 005DE606A31A for ; Tue, 1 Dec 2026 08:23:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 005DE606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=K1S9yWeU Received: by mail-dl1-f54.google.com with SMTP id a92af1059eb24-1a2761c69fbso19244670c88.0 for ; Tue, 01 Dec 2026 00:23:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796113390; x=1796718190; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=5/6OhwJU9p2B2BOp1h+wZnuq+3GuAwCHLluexnVBVXA=; b=K1S9yWeUkSjfQeIFJiX3pkTxjst8G8nyWjBbMhu9sMBXbfJ/GZlX3I1tgmpKcV9Cf/ nM09vB3lqeunsWEmIM/VAz3/MYzf9aPXPbFRvcL3K+Ck/nvBCPklFht+y2xLUIPMe1p/ X9lfw5Jjv2GXc7EHiTEzT0ZnhQpm3DKwdBrnuyKLqH3+qY6n1pg0Wi5enGeqia8CWLdy 4UxnggeUAp5jtSDc4Hg8cgmaelF3RJc/YJK2DZ/QBjXedoDFquUvJpqORChdqciENxlQ uSw3wETOYgWs5YOhq+nSJViVFplYtS2Qr7/g1/zZ4ISVmUmVvF3ZCHThnZFCOQbdJqbL Q1Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796113390; x=1796718190; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=5/6OhwJU9p2B2BOp1h+wZnuq+3GuAwCHLluexnVBVXA=; b=AHf/A57Eohu5vQO7lsZSSYhs8n/9qHOzVx2yVcIvRUkGThNTZE/3LfZq+py1mluNMH wP9NNTAY+NW46O7JxtJVzFRare8At3BGBXdsc3ssmtbRQoPV1Eyun+0StIO+FjjC3u2t 2ZDfKXHDAILXzu1fo3znhcZe5ed4cMuJ3H0hcptL/PsHp5rtaNLsuN2A3xZctFHRDSyn PDkT3W1KE86Zu1pJN3NTuCNx84lwZHp7mULsef1p+kbQXgHFJNIfQIbiE1W19GSHA2O1 YY2ShcS28v1aeDkvwwqzfMHo6DUyROqJAMA8ishywXjq3UHaEmCdSWvKKzQ/9VH4NJfC ZcEA== X-Gm-Message-State: APuU4Z+moJEf2FQY18UWTtNO2zOsBA6n0Hxmyro64VUKYa319GsMmtP1 7tRa0HU4gsO9dqCzAj5dy3UYJsXaL7g725tY71UyCxGzmc2KXUCp18Ds X-Gm-Gg: AZFdTZf56IJPdvJQA/HL1zdQ168q0XeIY04GgUFAF91lxgNbkgGbqjrz0gisv+Lgpqn TB1+gtoJd1WuNLp5QyOUgqnCkhdAiY70+zmeMK6BvAD4uk1nIGz+MZiUWii60kcnHzBVmCIe4+l D6o0qEdo0tNaobDigCtBUwBwGMVmJY/zetl/EbPBrPhQ5p/ZOQoYznNXup7wj5pX/NEb6snOZ/c WWdXqiD0zooC8AEDEudbNG8gkjVUqX8rZiURE0nm8lM9IfrbyqXEVuBJ94eW7YnWrh0Mqkn/uIU gtPa7/HbFrE+4z/WGHPo2VAPZ8b/vyHR4oig2wsutwMv3eWq2bY1wdcc/ol1FYdZd9lXSvebEr1 OETnQyZLy/5JXiXh21A8gHh8J+FTASQB5gzwVlEdCZk9kSyQhAme6rPRmFGBMNCg/GwxbKrI6Yp rAYXjLkznVPaHi0wUJhJErjH+J34zvfx3VTXFzn9E6KZSSSN8RA9p9oYYgk9aqUhsu1LNCAUsR4 jfQMFEk4QqYDH/XPg5duV/HgHRtaGDxJUKA6Vi1m6SpYlPlVqUnn+z1YPL6PRqYkgXonx/9UvjV 8QV1NHwwJiButEl+fQhIt6tBVOCCV6+EAA/QTYVXWzBTg9sCeg== X-Received: by 2002:a05:701b:4593:b0:177:9a5b:a89 with SMTP id a92af1059eb24-1b556906925mr36379739c88.29.1796113389967; Tue, 01 Dec 2026 00:23:09 -0800 (PST) Received: from Mac.lan ([2409:40d2:2011:872e:f431:a5dd:a675:986c]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b556840494sm83751207c88.12.2026.12.01.00.23.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Dec 2026 00:23:09 -0800 (PST) From: Tanuj Sharma To: gregkh@linuxfoundation.org Cc: stable@vger.kernel.org, pkshih@realtek.com, phhuang@realtek.com, kvalo@kernel.org, johan@kernel.org, Tanuj Sharma Subject: Re: [PATCH] wifi: rtw89: fix OOB read in cfg80211_find_ie for 6 GHz scan Date: Tue, 1 Dec 2026 13:53:01 +0530 Message-ID: <20261201082302.92838-1-ertanuj96@gmail.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <2026120121-debrief-grant-677b@gregkh> References: <2026120121-debrief-grant-677b@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Mon, Dec 01, 2026 at 11:22:00AM +0100, Greg KH wrote: > On Tue, Dec 01, 2026 at 01:20:26AM +0530, Tanuj Sharma wrote: > > This backport is for linux-7.3.y and linux-6.12.y. Both still have the > > vulnerable cfg80211_find_ie() call in rtw89_core_cancel_6ghz_probe_tx() > > that the upstream commit removes. > > I have no context here at all, how are you responding to an email > without any quoting at all? What just changed in email clients to do > this so badly? > > remember, some of us get 1000+ emails a day... Apologies for the broken threading. Full context below: This patch is a backport of upstream commit 0788bad5d012b ("wifi: rtw89: modify active scan rule for 6GHz band") to fix an OOB read I reported on the separate thread "[SECURITY] wifi: rtw89: OOB read in beacon/probe-resp IE parsing (OTA, pre-auth)". On that [SECURITY] thread, Johan noted the bug appeared fixed, but I confirmed that the fix 6c17c57d45ef only touched wow.c — the core.c call site in rtw89_core_cancel_6ghz_probe_tx() was missed and still passes skb->len (full frame length) instead of the IE region length to cfg80211_find_ie(). In mainline master, this code path was removed entirely by the refactor in 0788bad5d012b (which switched to pure BSSID matching per IEEE 802.11ax 26.17.2.3.3), but that was not an intentional security fix — just a spec compliance change. That refactor was never backported to stable. You then pointed out the correct process — submit the upstream change as a proper backport to stable@vger. I acknowledged and submitted this patch as that backport. You asked: > On Mon, Nov 30, 2026 at 09:12:00PM +0100, Greg KH wrote: > > What stable tree(s) is this backport for? This backport is for linux-7.3.y and linux-6.12.y. Both trees still have the vulnerable cfg80211_find_ie() call in drivers/net/wireless/realtek/rtw89/core.c at rtw89_core_cancel_6ghz_probe_tx(). The upstream commit removes this call entirely. The patch applies cleanly to both trees (verified with git apply --check on v7.3.6). Thanks, Tanuj