CVE-2024-38583: nilfs2: fix use-after-free of timer for log writer thread

Published Jun 19, 2024
·
Updated

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

nilfs2: fix use-after-free of timer for log writer thread

Patch series "nilfs2: fix log writer related issues".

This bug fix series covers three nilfs2 log writer-related issues, including a timer use-after-free issue and potential deadlock issue on unmount, and a potential freeze issue in event synchronization found during their analysis. Details are described in each commit log.

This patch (of 3):

A use-after-free issue has been reported regarding the timer sctimer on the nilfsscinfo structure.

The problem is that even though it is used to wake up a sleeping log writer thread, sctimer is not shut down until the nilfsscinfo structure is about to be freed, and is used regardless of the thread's lifetime.

Fix this issue by limiting the use of sctimer only while the log writer thread is alive.

Affected Software

9 affected componentsFixes available
Linux Linux kernel>=2.6.35<4.19.316
Linux Linux kernel>=4.20<5.4.278
Linux Linux kernel>=5.5<5.10.219
Linux Linux kernel>=5.11<5.15.161
Linux Linux kernel>=5.16<6.1.94
Linux Linux kernel>=6.2<6.6.33
Linux Linux kernel>=6.7<6.8.12
Linux Linux kernel>=6.9<6.9.3
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.27-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade Linux kernel (nilfs2) to a version that resolves this vulnerability.

    Patch nilfs2: fix use-after-free of timer for log writer thread

Event History

Jun 19, 2024
CVE Published
via MITRE·01:37 PM
Data Sourced
via MITRE·01:37 PM
DescriptionSeverity
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 8, 2024
Data Sourced
via Launchpad·11:29 PM
Description
Apr 27, 2025
Data Sourced
via Ubuntu·12:29 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-38583?

CVE-2024-38583 has a medium severity rating due to its potential use-after-free vulnerability.

2

How do I fix CVE-2024-38583?

To address CVE-2024-38583, update your Linux kernel to the fixed versions such as 5.10.223-1 or 6.12.12-1.

3

What systems are affected by CVE-2024-38583?

CVE-2024-38583 affects multiple versions of the Linux kernel from version 2.6.35 up to 6.9.3.

4

What type of vulnerability is identified in CVE-2024-38583?

CVE-2024-38583 is identified as a use-after-free vulnerability in the nilfs2 log writer functionality.

5

Are there any known exploits for CVE-2024-38583?

As of now, there are no publicly known exploits specifically targeting CVE-2024-38583.

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