CVE-2024-58034·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: memory: tegra20-emc: fix an OF node reference bug in tegra_emc_find_node_by_ram_code() As of_find_node_by_name() release the reference of the argument device node, tegra_emc_find_node_by_ram_code() releases some device nodes while still in use, resulting in possible UAFs. According to the bindings and the in-tree DTS files, the "emc-tables" node is always device's child node with the property "nvidia,use-ram-code", and the "lpddr2" node is a child of the "emc-tables" node. Thus utilize the for_each_child_of_node() macro and of_get_child_by_name() instead of of_find_node_by_name() to simplify the code. This bug was found by an experimental verification tool that I am developing. [krzysztof: applied v1, adjust the commit msg to incorporate v2 parts]
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.2
- Published
- 2025-02-27
Affected versions
From: 6.13
Until: 6.13.2
Fixed in: 6.13.2
How to fix this CVE
Update your Linux kernel to version 6.13.2 or later to resolve a use-after-free vulnerability in the Tegra20 EMC memory driver. This vulnerability stems from improper device node reference handling during memory table initialization. Kernel updates should be applied promptly to prevent potential system crashes or privilege escalation through the affected memory management subsystem.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and compare against 6.13.2 — versions 6.13 through 6.13.1 are vulnerable
- Step 2: Verify if Tegra20 EMC driver is loaded on your system using `lsmod | grep tegra_emc`
- Step 3: Search system logs for UAF-related crashes: `sudo journalctl -xe | grep -i 'use-after-free\|use after free\|double free'`
- Step 4: After patching, reboot your system and confirm the new kernel version with `uname -r` to verify the fix is active
FAQ
What is CVE-2024-58034?
CVE-2024-58034 is a use-after-free vulnerability in the Linux kernel's Tegra20 EMC (external memory controller) driver where device node references are incorrectly released during memory table enumeration, potentially allowing local privilege escalation.
Is CVE-2024-58034 being actively exploited?
No, there is no evidence of active exploitation in the wild, and no public exploit code is currently available. This is a local kernel vulnerability requiring prior system access.
What versions of Kernel are affected by CVE-2024-58034?
Linux kernel versions 6.13, 6.13.1, and earlier 6.13.x releases prior to 6.13.2 are affected. Systems running kernel 6.13.2 or later are not vulnerable.
How do I check if my server is vulnerable to CVE-2024-58034?
Run `uname -r` to display your kernel version. If it shows 6.13.0 or 6.13.1, your system is vulnerable. Additionally, check if the Tegra20 EMC driver is present with `grep -r tegra_emc /lib/modules/$(uname -r)/`.
Does Defensia detect CVE-2024-58034?
Yes — Defensia's CVE advisory scanner compares installed kernel package versions against the NVD database. If a vulnerable kernel version is detected on a monitored server, CVE-2024-58034 will appear in your dashboard with remediation steps and patch availability.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/3b02273446e23961d910b50cc12528faec649fb2
- https://git.kernel.org/stable/c/755e44538c190c31de9090d8e8821d228fcfd416
- https://git.kernel.org/stable/c/b9784e5cde1f9fb83661a70e580e381ae1264d12
- https://git.kernel.org/stable/c/c144423cb07e4e227a8572d5742ca2b36ada770d
- https://git.kernel.org/stable/c/c3def10c610ae046aaa61d00528e7bd15e4ad8d3
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-58034. Free for 1 server.
Get started free