In the Linux kernel, the following vulnerability has been resolved:
wifi: iwlwifi: mvm: fix 6 GHz scan construction
If more than 255 colocated APs exist for the set of all APs found during 2.4/5 GHz scanning, then the 6 GHz scan construction will loop forever since the loop variable has type u8, which can never reach the number found when that's bigger than 255, and is stored in a u32 variable. Also move it into the loops to have a smaller scope.
Using a u32 there is fine, we limit the number of APs in the scan list and each has a limit on the number of RNR entries due to the frame size. With a limit of 1000 scan results, a frame size upper bound of 4096 (really it's more like ~2300) and a TBTT entry size of at least 11, we get an upper bound for the number of ~372k, well in the bounds of a u32.
[
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 2277.0,
"function_hash": "129463659828974116119222022744797747662"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ac15e5a8f42fed5d90ed9e1197600913678c50f",
"target": {
"file": "drivers/net/wireless/intel/iwlwifi/mvm/scan.c",
"function": "iwl_mvm_umac_scan_cfg_channels_v6_6g"
},
"id": "CVE-2024-53055-0929c080"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 2976.0,
"function_hash": "263212049609338763267514405577249362333"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ccd5badadab2d586e91546bf5af3deda07fef1f",
"target": {
"file": "drivers/net/wireless/intel/iwlwifi/mvm/scan.c",
"function": "iwl_mvm_umac_scan_cfg_channels_v7_6g"
},
"id": "CVE-2024-53055-1d795625"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 2532.0,
"function_hash": "257696455366314242240066002896700087034"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cde8a7eb5c6762264ff0f4433358e0a0d250c875",
"target": {
"file": "drivers/net/wireless/intel/iwlwifi/mvm/scan.c",
"function": "iwl_mvm_umac_scan_cfg_channels_v6_6g"
},
"id": "CVE-2024-53055-7c7c6aae"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"186727272409286808152342883983810042377",
"129902871085014588869825544839735088541",
"27453304538392877761910167832396598872",
"264569257645986194240205703526655244709"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cde8a7eb5c6762264ff0f4433358e0a0d250c875",
"target": {
"file": "drivers/net/wireless/intel/iwlwifi/mvm/scan.c"
},
"id": "CVE-2024-53055-8d24d308"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"186727272409286808152342883983810042377",
"129902871085014588869825544839735088541",
"27453304538392877761910167832396598872",
"310717153236401799211964564330113161124"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fc621e7a043de346c33bd7ae7e2e0c651d6152ef",
"target": {
"file": "drivers/net/wireless/intel/iwlwifi/mvm/scan.c"
},
"id": "CVE-2024-53055-9893c3a3"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 2914.0,
"function_hash": "2308613560059804599318078422507649771"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fc621e7a043de346c33bd7ae7e2e0c651d6152ef",
"target": {
"file": "drivers/net/wireless/intel/iwlwifi/mvm/scan.c",
"function": "iwl_mvm_umac_scan_cfg_channels_v7_6g"
},
"id": "CVE-2024-53055-98995281"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"330226779394941857588146380313839412484",
"304805345192098903801999133981602602500",
"27453304538392877761910167832396598872",
"105945062597386135354527072467079677896"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ac15e5a8f42fed5d90ed9e1197600913678c50f",
"target": {
"file": "drivers/net/wireless/intel/iwlwifi/mvm/scan.c"
},
"id": "CVE-2024-53055-d658ae79"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"253276067169979971672490164510586545040",
"93699945704222041045543551868772023971",
"209498479564790570392103572699220613293",
"237345823866954852844315247513986073253",
"51756696852585917345432101666937275540",
"43210004263017465421772000745719706307",
"279632993865240945230293209953675123110",
"122347171428812326421162811682624668058",
"10332641839769790774216743441656946086",
"192652600538477275071694204548298525557",
"138649203705826695117585169357828705846",
"189784951179498620871918424843683246964"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2ccd5badadab2d586e91546bf5af3deda07fef1f",
"target": {
"file": "drivers/net/wireless/intel/iwlwifi/mvm/scan.c"
},
"id": "CVE-2024-53055-fca02812"
}
]