{"id":"CVE-2024-58034","published":"2025-02-27T20:00:52Z","modified":"2026-08-05T11:47:28Z","title":"memory: tegra20-emc: fix an OF node reference bug in tegra_emc_find_node_by_ram_code()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmemory: tegra20-emc: fix an OF node reference bug in tegra_emc_find_node_by_ram_code()\n\nAs of_find_node_by_name() release the reference of the argument device\nnode, tegra_emc_find_node_by_ram_code() releases some device nodes while\nstill in use, resulting in possible UAFs. According to the bindings and\nthe in-tree DTS files, the \"emc-tables\" node is always device's child\nnode with the property \"nvidia,use-ram-code\", and the \"lpddr2\" node is a\nchild of the \"emc-tables\" node. Thus utilize the\nfor_each_child_of_node() macro and of_get_child_by_name() instead of\nof_find_node_by_name() to simplify the code.\n\nThis bug was found by an experimental verification tool that I am\ndeveloping.\n\n[krzysztof: applied v1, adjust the commit msg to incorporate v2 parts]","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.00312,"percentile":0.16488,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/c3def10c610ae046aaa61d00528e7bd15e4ad8d3","tags":[]},{"url":"https://git.kernel.org/stable/c/e9d07e91de140679eeaf275f47ad154467cb9e05","tags":[]},{"url":"https://git.kernel.org/stable/c/c144423cb07e4e227a8572d5742ca2b36ada770d","tags":[]},{"url":"https://git.kernel.org/stable/c/3b02273446e23961d910b50cc12528faec649fb2","tags":[]},{"url":"https://git.kernel.org/stable/c/755e44538c190c31de9090d8e8821d228fcfd416","tags":[]},{"url":"https://git.kernel.org/stable/c/b9784e5cde1f9fb83661a70e580e381ae1264d12","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":3.3},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 96e5da7c842424bcf64afe1082b960b42b96190b, < c3def10c610ae046aaa61d00528e7bd15e4ad8d3",">= 96e5da7c842424bcf64afe1082b960b42b96190b, < e9d07e91de140679eeaf275f47ad154467cb9e05",">= 96e5da7c842424bcf64afe1082b960b42b96190b, < c144423cb07e4e227a8572d5742ca2b36ada770d",">= 96e5da7c842424bcf64afe1082b960b42b96190b, < 3b02273446e23961d910b50cc12528faec649fb2",">= 96e5da7c842424bcf64afe1082b960b42b96190b, < 755e44538c190c31de9090d8e8821d228fcfd416",">= 96e5da7c842424bcf64afe1082b960b42b96190b, < b9784e5cde1f9fb83661a70e580e381ae1264d12"]},{"vendor":"Linux","product":"Linux","versions":["5.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-03-04T17:59:56.831079Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-5992","exploited":false,"provenance":"source"}}