]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: cfg80211: validate HE operation element parsing
authorJohannes Berg <johannes.berg@intel.com>
Thu, 23 May 2024 10:05:33 +0000 (12:05 +0200)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Fri, 2 Aug 2024 14:27:07 +0000 (16:27 +0200)
commit79cf06b74cbbd6969f28ea559e646eedd7fe701d
treec360ca7cec93eb965cb5af2115c951ef5c29fd34
parentcd4e254e1e3c82bca92d22a7004b48f99713031d
wifi: cfg80211: validate HE operation element parsing

BugLink: https://bugs.launchpad.net/bugs/2074091
commit 4dc3a3893dae5a7f73e5809273aca0f1f3548d55 upstream.

Validate that the HE operation element has the correct
length before parsing it.

Cc: stable@vger.kernel.org
Fixes: 645f3d85129d ("wifi: cfg80211: handle UHB AP and STA power type")
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240523120533.677025eb4a92.I44c091029ef113c294e8fe8b9bf871bf5dbeeb27@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Portia Stephens <portia.stephens@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
net/wireless/scan.c