CVE-2024-58094: jfs: add check read-only before truncation in jfs_truncate_nolock()

Published Apr 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

jfs: add check read-only before truncation in jfstruncatenolock()

Added a check for "read-only" mode in the jfstruncatenolock function to avoid errors related to writing to a read-only filesystem.

Call stack:

blockwritebegin() { jfswritefailed() { jfstruncate() { jfstruncatenolock() { txEnd() { ... log = JFSSBI(tblk->sb)->log; // (log == NULL)

If the isReadOnly(ip) condition is triggered in jfstruncatenolock, the function execution will stop, and no further data modification will occur. Instead, the xtTruncate function will be called with the "COMMITWMAP" flag, preventing modifications in "read-only" mode.

Affected Software

7 affected components
Linux Kernel
Linux Linux kernel>=2.6.13<6.14.2
Linux Linux kernel=2.6.12
Linux Linux kernel=2.6.12-rc2
Linux Linux kernel=2.6.12-rc3
Linux Linux kernel=2.6.12-rc4
Linux Linux kernel=2.6.12-rc5

Event History

Apr 16, 2025
CVE Published
via MITRE·02:11 PM
Data Sourced
via MITRE·02:11 PM
DescriptionSeverity
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-58094?

CVE-2024-58094 has been classified with a severity level that underscores the importance of addressing the read-only mode issue in the jfs_truncate_nolock function.

2

How do I fix CVE-2024-58094?

To fix CVE-2024-58094, ensure you are using an updated version of the Linux Kernel that includes the recent patch for the jfs_truncate_nolock function.

3

What does CVE-2024-58094 affect?

CVE-2024-58094 specifically affects the Linux Kernel, particularly the jfs file system when it is in read-only mode.

4

What type of vulnerability is CVE-2024-58094?

CVE-2024-58094 is a software vulnerability related to improper handling of file system operations under read-only conditions.

5

Who is impacted by CVE-2024-58094?

Users and administrators running vulnerable versions of the Linux Kernel that utilize the jfs file system are impacted by CVE-2024-58094.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203