CVE-2024-38582
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-38582 is a vulnerability in the Linux kernel's NILFS2 filesystem that can cause a potential hang in nilfsdetachlog_writer() during filesystem unmount. The issue was discovered by Syzbot and reported on June 19, 2024. The vulnerability affects the Linux kernel's NILFS2 filesystem implementation (Kernel Git).

Technical details

The vulnerability occurs when nilfssegctorsync() attempts to synchronize with the log writer thread after nilfssegctordestroy() has already terminated that thread. This creates a race condition during the unmount process where nilfssegctorsync() can be called from delayed iput() via nilfsevictinode() after the log writer thread termination, leading to a deadlock. The CVSS v3.1 base score for this vulnerability is 5.3 (Medium) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (CISA-ADP).

Impact

The vulnerability can result in a system hang during the unmount process of NILFS2 filesystems, potentially affecting system availability and proper cleanup of filesystem resources (NVD).

Mitigation and workarounds

The issue has been fixed by modifying nilfssegctorsync() to return normally without synchronizing after the log writer thread terminates, and by forcing tasks that are already waiting to complete once after the thread terminates. The skipped inode metadata flushout is processed together in the subsequent cleanup work in nilfssegctordestroy(). Fixed versions are available in various Linux distributions including Ubuntu 24.04 LTS (6.8.0-40.40), Ubuntu 22.04 LTS (5.15.0-121.131), and Ubuntu 20.04 LTS (5.4.0-192.212) (Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt-addons
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • rtla
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management