mtd: parsers: ofpart: Fix refcount leak in bcm4908_partitions_fw_offset
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:
mtd: parsers: ofpart: Fix refcount leak in bcm4908_partitions_fw_offset
of_find_node_by_path() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak.
From the CVE record · Linux
The Linux kernel’s MTD ofpart parser leaks a device-tree node reference in bcm4908_partitions_fw_offset because it does not call of_node_put() after of_find_node_by_path(). The input does not describe an attacker action or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels that use the bcm4908_partitions_fw_offset parser should check their versions; affected versions are not specified.