Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected cc3f414cf2e404130584b63d373161ba6fd24bc2 before 20881ad42e651c69d89eb38a2042838187900fd6; affected cc3f414cf2e404130584b63d373161ba6fd24bc2 before b5bdcc5afbff845834d04d651773cb6b47db5dd3; affected cc3f414cf2e404130584b63d373161ba6fd24bc2 before 2b22e4fe1273c24f405ed7903349c4bbd82b6368; affected cc3f414cf2e404130584b63d373161ba6fd24bc2 before 3ed019654234edb8625c05d05e15d40f74e64f70; affected cc3f414cf2e404130584b63d373161ba6fd24bc2 before d6f34bbff07476c6abb8672c89d217824871c5ed; affected cc3f414cf2e404130584b63d373161ba6fd24bc2 before 69290f2d3999c5fa1a7f5d5593cfc5461fa3ee64; affected cc3f414cf2e404130584b63d373161ba6fd24bc2 before c5734f9030a8b1e13868d1641b5163d8e659306e; affected cc3f414cf2e404130584b63d373161ba6fd24bc2 before eacf9840ae1285a1ef47eb0ce16d786e542bd4d7 |
| Linux / Linux | affected 3.9; unaffected 0 before 3.9; unaffected 5.10.252 through 5.10.*; unaffected 5.15.202 through 5.15.*; unaffected 6.1.165 through 6.1.*; unaffected 6.6.128 through 6.6.*; unaffected 6.12.75 through 6.12.*; unaffected 6.18.16 through 6.18.*; unaffected 6.19.6 through 6.19.*; unaffected 7.0 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/20881ad42e651c69d89eb38a2042838187900fd6
- https://git.kernel.org/stable/c/b5bdcc5afbff845834d04d651773cb6b47db5dd3
- https://git.kernel.org/stable/c/2b22e4fe1273c24f405ed7903349c4bbd82b6368
- https://git.kernel.org/stable/c/3ed019654234edb8625c05d05e15d40f74e64f70
- https://git.kernel.org/stable/c/d6f34bbff07476c6abb8672c89d217824871c5ed
- https://git.kernel.org/stable/c/69290f2d3999c5fa1a7f5d5593cfc5461fa3ee64
- https://git.kernel.org/stable/c/c5734f9030a8b1e13868d1641b5163d8e659306e
- https://git.kernel.org/stable/c/eacf9840ae1285a1ef47eb0ce16d786e542bd4d7