misc: tps6594-pfsm: Add NULL pointer check in tps6594_pfsm_probe()
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
misc: tps6594-pfsm: Add NULL pointer check in tps6594_pfsm_probe()
The returned value, pfsm->miscdev.name, from devm_kasprintf() could be NULL. A pointer check is added to prevent potential NULL pointer dereference. This is similar to the fix in commit 3027e7b15b02 ("ice: Fix some null pointer dereference issues in ice_ptp.c").
This issue is found by our static analysis tool.
From the CVE record · Linux
In the Linux kernel's tps6594-pfsm component, devm_kasprintf() can return NULL for pfsm->miscdev.name, potentially causing a NULL pointer dereference during probing. The input does not establish an attack path, access requirements, or whether user interaction is needed.
Engineers running the Linux kernel should check whether their build includes the tps6594-pfsm component; affected versions are not specified.