Input: sparcspkr - fix refcount leak in bbc_beep_probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9c1a5077fdca99356c891af37931e537dea874f5 · < 418b6a3e12f75638abc5673eb76cb32127d0ab13| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Input: sparcspkr - fix refcount leak in bbc_beep_probe
of_find_node_by_path() calls of_find_node_opts_by_path(), which returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak.
From the CVE record · Linux
The Linux kernel's sparcspkr driver leaks a node reference in bbc_beep_probe because it does not release a pointer returned by of_find_node_by_path(). The input does not specify what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their builds include the affected sparcspkr code; affected versions are not specified.