wifi: iwlwifi: fix counter type in iwl_fwrt_dump_error_logs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
ff800b0c4797c6e97f09fcd93ca8b83040d77fb4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: iwlwifi: fix counter type in iwl_fwrt_dump_error_logs
The loop counter 'count' was declared as u8 while num_pc is u32. If firmware advertises more than 255 PC entries the counter wraps back to zero and the loop never terminates potentially causing an infinite loop or reading past the allocated pc_data array.
Change the declaration to u32 to match num_pc.
From the CVE record · Linux
The Linux kernel’s iwlwifi error-log routine uses an 8-bit counter for a loop whose entry count is 32-bit. If firmware advertises more than 255 PC entries, the counter can wrap, potentially causing an infinite loop or a read past the allocated array. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with iwlwifi should check whether their kernel includes this fix; affected versions are not specified.