wifi: iwlwifi: mld: don't dereference a pointer before NULL checking it
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.18.347.0.117.1In the Linux kernel, the following vulnerability has been resolved:
wifi: iwlwifi: mld: don't dereference a pointer before NULL checking it
In iwl_mld_remove_link, the link->fw_id is saved at the beginning of the function so we have it after we freed the link.
But the link pointer can be NULL, and is not checked when the fw_id is stored.
Fix it by simply freeing the link at the end of the function.
fFixes: 0e66a39f4f0e ("wifi: iwlwifi: fix potential use after free in iwl_mld_remove_link()")
From the CVE record · Linux
The Linux kernel's iwlwifi driver can dereference a NULL link pointer in iwl_mld_remove_link before checking it. This could cause a failure during link removal; the input does not establish whether an attacker can trigger it or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the affected iwlwifi code should check their versions; affected version numbers were not provided.