CVE-2024-38582

nilfs2: fix potential hang in nilfs_detach_log_writer()

5.3 medium EPSS 0.86%

Published 19 Jun 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2024-38582

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-38582 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

nilfs2: fix potential hang in nilfs_detach_log_writer()

Syzbot has reported a potential hang in nilfs_detach_log_writer() called during nilfs2 unmount.

Analysis revealed that this is because nilfs_segctor_sync(), which synchronizes with the log writer thread, can be called after nilfs_segctor_destroy() terminates that thread, as shown in the call trace below:

nilfs_detach_log_writer nilfs_segctor_destroy nilfs_segctor_kill_thread --> Shut down log writer thread flush_work nilfs_iput_work_func nilfs_dispose_list iput nilfs_evict_inode nilfs_transaction_commit nilfs_construct_segment (if inode needs sync) nilfs_segctor_sync --> Attempt to synchronize with log writer thread *** DEADLOCK ***

Fix this issue by changing nilfs_segctor_sync() so that the log writer thread returns normally without synchronizing after it terminates, and by forcing tasks that are already waiting to complete once after the thread terminates.

The skipped inode metadata flushout will then be processed together in the subsequent cleanup work in nilfs_segctor_destroy().

Severity (CVSS)

5.3 medium CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.86%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 59.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 20 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before 911d38be151921a5d152bb55e81fd752384c6830
affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before bc9cee50a4a4ca23bdc49f75ea8242d8a2193b3b
affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before eff7cdf890b02596b8d73e910bdbdd489175dbdb
affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before 06afce714d87c7cd1dcfccbcd800c5c5d2cf1cfd
affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before 1c3844c5f4eac043954ebf6403fa9fd1f0e9c1c0
affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before a8799662fed1f8747edae87a1937549288baca6a
affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before 6e5c8e8e024e147b834f56f2115aad241433679b
affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before c516db6ab9eabbedbc430b4f93b0d8728e9b427f
affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before eb85dace897c5986bc2f36b3c783c6abb8a4292e
affected c23f3a9fa7826af0465b9408b186f6b555991890
affected 28cd54f27d309bd65db8ff4b8e6275345287484c
affected ec7cae16b37ab478d6d7e33e8563b24ca189e6cf
affected d26f2dfa556323787ee1ebd5d03aeaa8650c7404
affected 52e87609d9d3ea34cadb5676e8ea85d025ac9632
affected 7bb9e4a06e12583f1418b669dc45bb3ee84496c6
affected from 3.2.68, before 3.3
affected from 3.4.107, before 3.5
affected from 3.10.69, before 3.11
affected from 3.12.38, before 3.13
affected from 3.14.33, before 3.15
affected from 3.18.7, before 3.19
Other versions: unaffected
Linux
affected 3.19
unaffected before 3.19
unaffected from 4.19.316 up to and including 4.19.*
unaffected from 5.4.278 up to and including 5.4.*
unaffected from 5.10.219 up to and including 5.10.*
unaffected from 5.15.161 up to and including 5.15.*
unaffected from 6.1.93 up to and including 6.1.*
unaffected from 6.6.33 up to and including 6.6.*
unaffected from 6.8.12 up to and including 6.8.*
unaffected from 6.9.3 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-38582 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38582

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-38582
trivy image --scanners vuln IMAGE | grep CVE-2024-38582

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-38582 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.