be2net: Fix NULL pointer dereference in be_cmd_get_mac_from_list
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 95046b927a54f461766f83a212c6a93bc5fd2e67 · < 31410a01a86bcb98c798d01061abf1f789c4f75a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
be2net: Fix NULL pointer dereference in be_cmd_get_mac_from_list
When the parameter pmac_id_valid argument of be_cmd_get_mac_from_list() is set to false, the driver may request the PMAC_ID from the firmware of the network card, and this function will store that PMAC_ID at the provided address pmac_id. This is the contract of this function.
However, there is a location within the driver where both pmac_id_valid == false and pmac_id == NULL are being passed. This could result in dereferencing a NULL pointer.
To resolve this issue, it is necessary to pass the address of a stub variable to the function.
From the CVE record · Linux
The Linux kernel be2net driver can dereference a NULL pointer when it calls be_cmd_get_mac_from_list() with pmac_id_valid set to false and pmac_id set to NULL. The input does not establish how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Operators running the Linux kernel with the be2net driver should check their versions; affected versions were not provided.