CVE-2024-58058 ubifs: skip dumping tnc tree when zroot is null
A null pointer dereference in the Linux kernel UBIFS filesystem can cause a system crash when dumping the TNC tree after clearing the slab cache.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-58058?
CVE-2024-58058 is a medium-severity vulnerability in Linux kernel, published on 6 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ubifs: skip dumping tnc tree when zroot is null
Clearing slab cache will free all znode in memory and make c->zroot.znode = NULL, then dumping tnc tree will access c->zroot.znode which cause null pointer dereference.
Weakness: CWE-476
Which versions are affected by CVE-2024-58058?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-58058?
Apply the vendor's patch.
Is CVE-2024-58058 being exploited?
There is no known exploitation of CVE-2024-58058 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-59139, BELL-CVE-2024-58058, DEBIAN-CVE-2024-58058, GHSA-wxgw-xr8v-5p75, ROOT-OS-UBUNTU-2404-CVE-2024-58058, UBUNTU-CVE-2024-58058.