In the Linux kernel, the following vulnerability has been resolved:
pdscore: handle unsupported PDSCORECMDFW_CONTROL result
If the FW doesn't support the PDSCORECMDFWCONTROL command the driver might at the least print garbage and at the worst crash when the user runs the "devlink dev info" devlink command.
This happens because the stack variable fwlist is not 0 initialized which results in fwlist.numfwslots being a garbage value from the stack. Then the driver tries to access fwlist.fwnames[i] with i >= ARRAY_SIZE and runs off the end of the array.
Fix this by initializing the fw_list and by not failing completely if the devcmd fails because other useful information is printed via devlink dev info even if the devcmd fails.