High severity · published Jun 25, 2024
CVE-2024-39469
nilfs2: fix nilfs_empty_dir() misjudgment and long loop on I/O errors
7.1
CVSS
0.3%
EPSS
No
On KEV
Description
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix nilfs_empty_dir() misjudgment and long loop on I/O errors
The error handling in nilfs_empty_dir() when a directory folio/page read
fails is incorrect, as in the old ext2 implementation, and if the
folio/page cannot be read or nilfs_check_folio() fails, it will falsely
determine the directory as empty and corrupt the file system.
In addition, since nilfs_empty_dir() does not immediately return on a
failed folio/page read, but continues to loop, this can cause a long loop
with I/O if i_size of the directory's inode is also corrupted, causing the
log writer thread to wait and hang, as reported by syzbot.
Fix these issues by making nilfs_empty_dir() immediately return a false
value (0) if it fails to get a directory folio/page.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 17% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
2.6.30 before 4.19.317; 4.20 before 5.4.279; 5.5 before 5.10.221; 5.11 before 5.15.162; 5.16 before 6.1.95; 6.2 before 6.6.35; +3 more · source: NVD
LI
Linux · Linux
2ba466d74ed74f073257f86e61519cb8f8f46184 before 2ac8a2fe22bdde9eecce2a42cf5cab79333fb428; 2ba466d74ed74f073257f86e61519cb8f8f46184 before 405b71f1251e5ae865f53bd27c45114e6c83bee3; 2ba466d74ed74f073257f86e61519cb8f8f46184 before c77ad608df6c091fe64ecb91f41ef7cb465587f1; 2ba466d74ed74f073257f86e61519cb8f8f46184 before 11a2edb70356a2202dcb7c9c189c8356ab4752cd; 2ba466d74ed74f073257f86e61519cb8f8f46184 before 129dcd3e7d036218db3f59c82d82004b9539ed82; 2ba466d74ed74f073257f86e61519cb8f8f46184 before d18b05eda7fa77f02114f15b02c009f28ee42346; +3 more · source: vendor
SS
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP · Siemens
V3.1.0 before V3.1.5; V3.1.0 before V3.1.5 · source: CISA
SS
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP · Siemens
V3.1.0 before V3.1.5; V3.1.0 before V3.1.5 · source: CISA
SS
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP · Siemens
V3.1.0 before V3.1.5 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-39469
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-39469
Patch
https://git.kernel.org/stable/c/11a2edb70356a2202dcb7c9c189c8356ab4752cd
Patch
https://git.kernel.org/stable/c/129dcd3e7d036218db3f59c82d82004b9539ed82
Patch
https://git.kernel.org/stable/c/2ac8a2fe22bdde9eecce2a42cf5cab79333fb428
Patch
https://git.kernel.org/stable/c/405b71f1251e5ae865f53bd27c45114e6c83bee3
Patch
https://git.kernel.org/stable/c/59f14875a96ef93f05b82ad3c980605f2cb444b5
Patch
https://git.kernel.org/stable/c/7373a51e7998b508af7136530f3a997b286ce81c
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
