Bug 218810
Summary: | UBSAN: array-index-out-of-bounds in net/wireless/nl80211.c and net/mac80211/scan.c | ||
---|---|---|---|
Product: | Networking | Reporter: | Jannik Glückert (jannik.glueckert) |
Component: | Wireless | Assignee: | networking_wireless (networking_wireless) |
Status: | NEW --- | ||
Severity: | normal | CC: | bagasdotme, sam |
Priority: | P3 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: |
Description
Jannik Glückert
2024-05-05 11:27:26 UTC
(In reply to Jannik Glückert from comment #0) > I am seeing multiple array-index-out-of-bounds related to > `ieee80211_channel[]` iteration. > > This is with a Mediatek MT7921 chipset. > I have only tested with kernel 6.8.9, but I don't see any channel index > related fixes in master. > > This was discovered as part of Gentoo Hardened enabling > CONFIG_UBSAN_ARRAY_BOUNDS > > > [ 106.194465] UBSAN: array-index-out-of-bounds in > /var/tmp/portage/sys-kernel/gentoo-kernel-6.8.9/work/linux-6.8/net/wireless/ > nl80211.c:9203:29 Can you reproduce on vanilla v6.8.9 or v6.9-rc7 (current mainline)? This is a vanilla kernel, we don't ship any backports or patches outside of build fixes. (In reply to Jannik Glückert from comment #0) > [ 106.200924] UBSAN: array-index-out-of-bounds in > /var/tmp/portage/sys-kernel/gentoo-kernel-6.8.9/work/linux-6.8/net/wireless/ > nl80211.c:9252:5 Should have been fixed by https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless.git/commit/?id=838c7b8f1f278404d9d684c34a8cb26dc41aaaa1 > [ 106.201036] UBSAN: array-index-out-of-bounds in > /var/tmp/portage/sys-kernel/gentoo-kernel-6.8.9/work/linux-6.8/net/mac80211/ > scan.c:364:4 Do you have any patches to fix above case? |