wifi: ipw2100: fix potential memory leak in ipw2100_pci_init_one()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2c86c275015c880e810830304a3a4ab94803b38b · < f442e581a88937671a22ceb3806c186265ef6254| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: ipw2100: fix potential memory leak in ipw2100_pci_init_one()
The memory allocated in the ipw2100_alloc_device() function is not freed in some of the error paths in ipw2100_pci_init_one(). Fix that by converting the direct return into a goto to the error path return.
The error path when pci_enable_device() fails cannot jump to fail, since at this point priv is not set, so perform error handling inline.
From the CVE record · Linux
The Linux kernel’s ipw2100 driver can leak memory allocated during device initialization if certain PCI initialization steps fail. The input does not describe an attacker-controlled trigger, authentication requirements, or user interaction.
Engineers running Linux kernels with the ipw2100 Wi-Fi driver should check their deployments; affected versions are not specified.