Linux: staging: media: tegra-video: fix of_node_put() on VIP parse errors
What fixes it
- 1295ba29ac590bbb5c4a586afd408018168af10bLinuxCVE List
- 656d047dc0c29c0964d840217a0593f16aa9bc5eLinuxCVE List
- 7393372f79db940acff206b43e2905685a0c57adLinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
staging: media: tegra-video: fix of_node_put() on VIP parse errors
tegra_vip_channel_of_parse() initializes np from dev->of_node without taking a reference, but its error paths drop one through the err_node_put label. This underflows the refcount of the VIP device's OF node when endpoint parsing fails on a malformed device tree.
The only reference the function takes on np is the success-path of_node_get() stored in vip->chan.of_node, and that one is already released by the tegra_vip_init() error path and by tegra_vip_exit().
Return errors directly instead of jumping to the bogus cleanup label.
Text from CVE List
Affected versions 12
- Linuxaffected: e740d199cf0ff1e53ddc2ab067c0a09b55845d68 before a3783800c9475fa58b8db0885893f96a23f949daCVE List
- Linuxaffected: e740d199cf0ff1e53ddc2ab067c0a09b55845d68 before 1295ba29ac590bbb5c4a586afd408018168af10bCVE List
- Linuxaffected: e740d199cf0ff1e53ddc2ab067c0a09b55845d68 before 656d047dc0c29c0964d840217a0593f16aa9bc5eCVE List
- Linuxaffected: e740d199cf0ff1e53ddc2ab067c0a09b55845d68 before fc9937019cf7e2fe4e29f9341e6400bcd2cde721CVE List
- Linuxaffected: e740d199cf0ff1e53ddc2ab067c0a09b55845d68 before 7393372f79db940acff206b43e2905685a0c57adCVE List
- Linuxaffected: 6.5CVE List
- Linuxunaffected: all versions before 6.5CVE List
- Linuxunaffected: 6.6.157 through 6.6.*CVE List
- Linuxunaffected: 6.12.109 through 6.12.*CVE List
- Linuxunaffected: 6.18.50 through 6.18.*CVE List
- Linuxunaffected: 7.2.4 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 5
- git.kernel.org/stable/c/a3783800c9475fa58b8db0885893f96a23f949daReferencevia CVE List
- git.kernel.org/stable/c/1295ba29ac590bbb5c4a586afd408018168af10bReferencevia CVE List
- git.kernel.org/stable/c/656d047dc0c29c0964d840217a0593f16aa9bc5eReferencevia CVE List
- git.kernel.org/stable/c/fc9937019cf7e2fe4e29f9341e6400bcd2cde721Referencevia CVE List
- git.kernel.org/stable/c/7393372f79db940acff206b43e2905685a0c57adReferencevia CVE List