Junglewise Threat Intelligence

CVE-2024-58058: Linux Kernel NULL pointer dereference in UBIFS TNC dumping

CVE-2024-58058 · Severity: medium · CVSS 5.5 · Published 2025-03-06

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's UBIFS file system could allow a local user to crash the system. UBIFS is a file system designed for unmanaged flash memory devices. By triggering a specific sequence of memory management actions followed by a file system debug operation, an attacker can cause a system-wide denial of service.

Technical details

A NULL pointer dereference exists in fs/ubifs/debug.c within the ubifs_dump_tnc function. The vulnerability is triggered when the slab cache is cleared, which frees all znodes in memory and sets the root znode (c->zroot.znode) to NULL. Subsequent calls to ubifs_dump_tnc attempt to access this NULL pointer without validation, leading to a kernel panic. This is a local attack vector requiring low privileges to trigger the crash. Patches have been released across multiple stable kernel branches to add a check for the NULL zroot before proceeding with the TNC dump.

Affected products

  • Linux Linux Kernel 2.6.27 to 5.4.291, 5.5 to 5.10.235, 5.11 to 5.15.179, 5.16 to 6.1.129, 6.2 to 6.6.76, 6.7 to 6.12.13, 6.13 to 6.13.2

Timeline

  • 2024-12-24: other: Initial patch authored
  • 2025-03-06: advisory: NVD publication date
  • 2025-03-13: patched: Final stable branch patches committed

References

Related threats