fbdev: of: display_timing: fix refcount leak in of_get_display_timings()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cc3f414cf2e404130584b63d373161ba6fd24bc2 · < 69290f2d3999c5fa1a7f5d5593cfc5461fa3ee64| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fbdev: of: display_timing: fix refcount leak in of_get_display_timings()
of_parse_phandle() returns a device_node with refcount incremented, which is stored in 'entry' and then copied to 'native_mode'. When the error paths at lines 184 or 192 jump to 'entryfail', native_mode's refcount is not decremented, causing a refcount leak.
Fix this by changing the goto target from 'entryfail' to 'timingfail', which properly calls of_node_put(native_mode) before cleanup.
From the CVE record · Linux
The Linux kernel's of_get_display_timings() can leak a device-node reference when certain error paths skip cleanup. The input does not specify how an attacker could trigger the issue or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified in the input.