staging: media: tegra-video: fix of_node_put() on VIP parse errors
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.157, 6.12.109, 6.18.50, 7.2.4
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From e740d199cf0ff1e53ddc2ab067c0a09b55845d68 · fixed in a3783800c9475fa58b8db0885893f96a23f949da; From e740d199cf0ff1e53ddc2ab067c0a09b55845d68 · fixed in 1295ba29ac590bbb5c4a586afd408018168af10b; From e740d199cf0ff1e53ddc2ab067c0a09b55845d68 · fixed in 656d047dc0c29c0964d840217a0593f16aa9bc5e; From e740d199cf0ff1e53ddc2ab067c0a09b55845d68 · fixed in fc9937019cf7e2fe4e29f9341e6400bcd2cde721; From e740d199cf0ff1e53ddc2ab067c0a09b55845d68 · fixed in 7393372f79db940acff206b43e2905685a0c57ad
- Linux Linux
6.5
- KernelLinux
From 6.5.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.109; From 6.13.0 · fixed in 6.18.50; From 6.19.0 · fixed in 7.2.4