Overview
About vulnerability
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.
Details
- Affected product:
- AlmaLinux 9.2 ESU , CentOS 7 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , CloudLinux 7 ELS , Oracle Linux 7 ELS , RHEL 7 ELS , TuxCare 9.6 ESU , Ubuntu 16.04 ELS , Ubuntu 18.04 ELS , Ubuntu 20.04 ELS
- Affected packages:
- kernel @ 4.18.0 (+13 more)
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.