{"id":"CVE-2022-50745","published":"2025-12-24T13:05:41Z","modified":"2026-08-05T08:59:34Z","title":"staging: media: tegra-video: fix device_node use after free","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: media: tegra-video: fix device_node use after free\n\nAt probe time this code path is followed:\n\n * tegra_csi_init\n   * tegra_csi_channels_alloc\n     * for_each_child_of_node(node, channel) -- iterates over channels\n       * automatically gets 'channel'\n         * tegra_csi_channel_alloc()\n           * saves into chan->of_node a pointer to the channel OF node\n       * automatically gets and puts 'channel'\n       * now the node saved in chan->of_node has refcount 0, can disappear\n   * tegra_csi_channels_init\n     * iterates over channels\n       * tegra_csi_channel_init -- uses chan->of_node\n\nAfter that, chan->of_node keeps storing the node until the device is\nremoved.\n\nof_node_get() the node and of_node_put() it during teardown to avoid any\nrisk.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0019,"percentile":0.08667,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/5451efb2ca30f3c42b9efb8327ce35b62870dbd3","tags":[]},{"url":"https://git.kernel.org/stable/c/ce50c612458091d926ccb05d7db11d9f93532db2","tags":[]},{"url":"https://git.kernel.org/stable/c/6512c9498fcb97e7c760e3ef86b2272f2c0f765f","tags":[]},{"url":"https://git.kernel.org/stable/c/0fd003d3c708c80350a815eaf37b8e1114b976cf","tags":[]},{"url":"https://git.kernel.org/stable/c/c4d344163c3a7f90712525f931a6c016bbb35e18","tags":[]}],"priority":{"score":7.2,"factors":[{"name":"EPSS percentile","points":1.73},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1ebaeb09830f36c1111b72a95420814225bd761c, < 5451efb2ca30f3c42b9efb8327ce35b62870dbd3",">= 1ebaeb09830f36c1111b72a95420814225bd761c, < ce50c612458091d926ccb05d7db11d9f93532db2",">= 1ebaeb09830f36c1111b72a95420814225bd761c, < 6512c9498fcb97e7c760e3ef86b2272f2c0f765f",">= 1ebaeb09830f36c1111b72a95420814225bd761c, < 0fd003d3c708c80350a815eaf37b8e1114b976cf",">= 1ebaeb09830f36c1111b72a95420814225bd761c, < c4d344163c3a7f90712525f931a6c016bbb35e18"]},{"vendor":"Linux","product":"Linux","versions":["5.10"]}],"euvd":{"id":"EUVD-2022-55816","exploited":false,"provenance":"source"}}