kernel_samsung_a53x/net/wireless
Johannes Berg 2bed938de7 wifi: nl80211: reject iftype change with mesh ID change
commit f78c1375339a291cba492a70eaf12ec501d28a8e upstream.

It's currently possible to change the mesh ID when the
interface isn't yet in mesh mode, at the same time as
changing it into mesh mode. This leads to an overwrite
of data in the wdev->u union for the interface type it
currently has, causing cfg80211_change_iface() to do
wrong things when switching.

We could probably allow setting an interface to mesh
while setting the mesh ID at the same time by doing a
different order of operations here, but realistically
there's no userspace that's going to do this, so just
disallow changes in iftype when setting mesh ID.

Cc: stable@vger.kernel.org
Fixes: 29cbe68c516a ("cfg80211/mac80211: add mesh join/leave commands")
Reported-by: syzbot+dd4779978217b1973180@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 23:18:29 +01:00
..
certs wifi: cfg80211: fix certs build to not depend on file order 2024-11-18 12:12:00 +01:00
ap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibss.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lib80211.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lib80211_crypt_ccmp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lib80211_crypt_tkip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lib80211_crypt_wep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mesh.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlme.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
nl80211.c wifi: nl80211: reject iftype change with mesh ID change 2024-11-18 23:18:29 +01:00
nl80211.h Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
ocb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
of.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmsr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
radiotap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdev-ops.h Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
reg.c net: reg: Unlock all channels 2024-06-15 16:29:21 -03:00
reg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scan.c wifi: cfg80211: fix RCU dereference in __cfg80211_bss_update 2024-11-18 12:13:21 +01:00
sme.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
util.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wext-compat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wext-compat.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wext-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wext-priv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wext-proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wext-sme.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wext-spy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00