CVE-2024-38582

nilfs2: fix potential hang in nilfs_detach_log_writer()

MEDIUM
5.3
CVSS Score
Published: June 19, 2024 at 01:37 PM UTC
Updated: June 17, 2026 at 07:40 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.9%
SSVC
No known exploit

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().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 3.10.69v ≥ 3.12.38v ≥ 3.14.33v ≥ 3.18.7v ≥ 3.2.68v ≥ 3.4.107v < 4.19.3163.10.69 ≤ v < 3.113.12.38 ≤ v < 3.133.14.33 ≤ v < 3.153.18.7 ≤ v < 3.193.19 ≤ v < 4.19.3163.19 ≤ v < 5.10.2193.19 ≤ v < 5.15.1613.19 ≤ v < 5.4.2783.19 ≤ v < 6.1.933.19 ≤ v < 6.103.19 ≤ v < 6.6.333.19 ≤ v < 6.8.123.19 ≤ v < 6.9.33.2.68 ≤ v < 3.33.4.107 ≤ v < 3.54.20 ≤ v < 5.4.2785.11 ≤ v < 5.15.1615.16 ≤ v < 6.1.935.5 ≤ v < 5.10.2196.2 ≤ v < 6.6.336.7 ≤ v < 6.8.126.9 ≤ v < 6.9.328cd54f27d309bd65db8ff4b8e6275345287484c3.10.693.12.383.14.333.18.73.193.2.683.4.10752e87609d9d3ea34cadb5676e8ea85d025ac96327bb9e4a06e12583f1418b669dc45bb3ee84496c67ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52c23f3a9fa7826af0465b9408b186f6b555991890d26f2dfa556323787ee1ebd5d03aeaa8650c7404ec7cae16b37ab478d6d7e33e8563b24ca189e6cf
Vendor states this is fixed in 06afce714d87c7cd1dcfccbcd800c5c5d2cf1cfd (fixed)
Vendor states this is fixed in 1c3844c5f4eac043954ebf6403fa9fd1f0e9c1c0 (fixed)
Vendor states this is fixed in 6e5c8e8e024e147b834f56f2115aad241433679b (fixed)
Vendor states this is fixed in 911d38be151921a5d152bb55e81fd752384c6830 (fixed)
Vendor states this is fixed in a8799662fed1f8747edae87a1937549288baca6a (fixed)
Vendor states this is fixed in bc9cee50a4a4ca23bdc49f75ea8242d8a2193b3b (fixed)
Vendor states this is fixed in c516db6ab9eabbedbc430b4f93b0d8728e9b427f (fixed)
Vendor states this is fixed in eb85dace897c5986bc2f36b3c783c6abb8a4292e (fixed)
Vendor states this is fixed in eff7cdf890b02596b8d73e910bdbdd489175dbdb (fixed)
Affected range stops below 3.11, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.13, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.15, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 3.19 (unaffected)
Affected range stops below 3.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.19.316 (unaffected)
Vendor states this is fixed in 5.10.219 (unaffected)
Vendor states this is fixed in 5.15.161 (unaffected)
Vendor states this is fixed in 5.4.278 (unaffected)
Vendor states this is fixed in 6.1.93 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.33 (unaffected)
Vendor states this is fixed in 6.8.12 (unaffected)
Vendor states this is fixed in 6.9.3 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/06afce714d87c7cd1dcfccbcd800c5c5d2cf1cfd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1c3844c5f4eac043954ebf6403fa9fd1f0e9c1c0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6e5c8e8e024e147b834f56f2115aad241433679b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/911d38be151921a5d152bb55e81fd752384c6830
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a8799662fed1f8747edae87a1937549288baca6a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bc9cee50a4a4ca23bdc49f75ea8242d8a2193b3b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c516db6ab9eabbedbc430b4f93b0d8728e9b427f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/eb85dace897c5986bc2f36b3c783c6abb8a4292e

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.3MEDIUMCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-667

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card