wifi: iwlwifi: fix double-free bug
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.6.186.7.66.8In the Linux kernel, the following vulnerability has been resolved:
wifi: iwlwifi: fix double-free bug
The storage for the TLV PC register data wasn't done like all the other storage in the drv->fw area, which is cleared at the end of deallocation. Therefore, the freeing must also be done differently, explicitly NULL'ing it out after the free, since otherwise there's a nasty double-free bug here if a file fails to load after this has been parsed, and we get another free later (e.g. because no other file exists.) Fix that by adding the missing NULL assignment.
From the CVE record · Linux
The Linux kernel's iwlwifi driver has a double-free bug in its firmware-data cleanup. It can occur if a file fails to load after TLV PC register data has been parsed and the data is freed again later. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the iwlwifi driver should check their affected versions; none are specified in the input.