staging: media: tegra-video: fix of_node_put() on VIP parse errors
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's tegra-video VIP parser can underflow a device-tree node reference count when endpoint parsing fails on a malformed device tree. The input does not establish an attacker-controlled path, authentication requirement, or user-interaction requirement.
Engineers running Linux kernels with the staging tegra-video VIP component should check their kernel's status; affected versions are not specified.