mtd: partitions: Fix refcount leak in parse_redboot_of
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 237960880960863fb41888763d635b384cffb104 · < 9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mtd: partitions: Fix refcount leak in parse_redboot_of
of_get_child_by_name() 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 partition parser fails to release a device-tree node reference in parse_redboot_of, causing a reference-count leak. The input does not establish how an attacker could trigger the leak or whether access, authentication, or user interaction is required.
Engineers running Linux kernels that include the affected MTD partition parser should check their versions; affected versions are not specified.