CVE-2024-58094
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's JFS (Journaling File System) implementation was identified and tracked as CVE-2024-58094. The issue specifically relates to the jfs_truncate_nolock function, which lacked proper checks for read-only mode before performing truncation operations (NVD CVE, Red Hat CVE).

Technical details

The vulnerability exists in the jfs_truncate_nolock function's handling of read-only filesystem operations. The issue occurs in the following call stack: blockwritebegin() → jfswritefailed() → jfstruncate() → jfstruncate_nolock() → txEnd(). The CVSS v3.1 score is 5.5 (Moderate) with a vector string of CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (Red Hat CVE).

Impact

The vulnerability could potentially lead to errors when attempting to write to a read-only filesystem. The impact is primarily focused on availability (High impact on Availability according to CVSS scoring), with no direct impact on Confidentiality or Integrity (Red Hat CVE).

Mitigation and workarounds

The vulnerability has been resolved by adding a check for read-only mode in the jfs_truncate_nolock function. When the isReadOnly(ip) condition is triggered, the function execution stops, and the xtTruncate function is called with the 'COMMIT_WMAP' flag, preventing modifications in read-only mode (NVD CVE).

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-40258HIGH7
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-devel-matched
NoNoDec 04, 2025
CVE-2025-40259MEDIUM6.2
  • Linux KernelLinux Kernel
  • kernel-rt-64k
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-modules-extra
NoNoDec 04, 2025
CVE-2025-40254MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-devel-matched
NoNoDec 04, 2025
CVE-2025-40253MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-partner
NoNoDec 04, 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