CVE-2022-50745

Source
https://cve.org/CVERecord?id=CVE-2022-50745
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50745.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50745
Downstream
Related
Published
2025-12-24T13:05:41.858Z
Modified
2026-03-20T12:22:37.797173Z
Summary
staging: media: tegra-video: fix device_node use after free
Details

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:

  • tegracsiinit
    • tegracsichannelsalloc
      • foreachchildofnode(node, channel) -- iterates over channels
        • automatically gets 'channel'
          • tegracsichannelalloc()
            • saves into chan->ofnode a pointer to the channel OF node
        • automatically gets and puts 'channel'
        • now the node saved in chan->ofnode has refcount 0, can disappear
    • tegracsichannels_init
      • iterates over channels
        • tegracsichannelinit -- uses chan->ofnode

After that, chan->of_node keeps storing the node until the device is removed.

ofnodeget() the node and ofnodeput() it during teardown to avoid any risk.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50745.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1ebaeb09830f36c1111b72a95420814225bd761c
Fixed
5451efb2ca30f3c42b9efb8327ce35b62870dbd3
Fixed
ce50c612458091d926ccb05d7db11d9f93532db2
Fixed
6512c9498fcb97e7c760e3ef86b2272f2c0f765f
Fixed
0fd003d3c708c80350a815eaf37b8e1114b976cf
Fixed
c4d344163c3a7f90712525f931a6c016bbb35e18

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50745.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.87
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.18
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50745.json"