CVE-2022-50745

staging: media: tegra-video: fix device_node use after free

HIGH
7.8
CVSS Score
Published: December 24, 2025 at 01:05 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: staging: media: tegra-video: fix device_node use after free At probe time this code path is followed: * tegra_csi_init * tegra_csi_channels_alloc * for_each_child_of_node(node, channel) -- iterates over channels * automatically gets 'channel' * tegra_csi_channel_alloc() * saves into chan->of_node a pointer to the channel OF node * automatically gets and puts 'channel' * now the node saved in chan->of_node has refcount 0, can disappear * tegra_csi_channels_init * iterates over channels * tegra_csi_channel_init -- uses chan->of_node After that, chan->of_node keeps storing the node until the device is removed. of_node_get() the node and of_node_put() it during teardown to avoid any risk.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.10 ≤ v < 5.10.1635.10 ≤ v < 5.15.875.10 ≤ v < 6.0.185.10 ≤ v < 6.1.45.10 ≤ v < 6.21ebaeb09830f36c1111b72a95420814225bd761c5.10
Vendor states this is fixed in 0fd003d3c708c80350a815eaf37b8e1114b976cf (fixed)
Vendor states this is fixed in 5451efb2ca30f3c42b9efb8327ce35b62870dbd3 (fixed)
Vendor states this is fixed in 6512c9498fcb97e7c760e3ef86b2272f2c0f765f (fixed)
Vendor states this is fixed in c4d344163c3a7f90712525f931a6c016bbb35e18 (fixed)
Vendor states this is fixed in ce50c612458091d926ccb05d7db11d9f93532db2 (fixed)
Vendor states this is fixed in 5.10 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.87 (unaffected)
Vendor states this is fixed in 6.0.18 (unaffected)
Vendor states this is fixed in 6.1.4 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card