CVE-2024-42084
MEDIUMLinux Kernel 3.9-6.9.8 - Unauthenticated File Truncation via ftruncate
Title source: llmDescription
In the Linux kernel, the following vulnerability has been resolved: ftruncate: pass a signed offset The old ftruncate() syscall, using the 32-bit off_t misses a sign extension when called in compat mode on 64-bit architectures. As a result, passing a negative length accidentally succeeds in truncating to file size between 2GiB and 4GiB. Changing the type of the compat syscall to the signed compat_off_t changes the behavior so it instead returns -EINVAL. The native entry point, the truncate() syscall and the corresponding loff_t based variants are all correct already and do not suffer from this mistake.
References (9)
Core 9
Core References
Scores
CVSS v3
5.5
EPSS
0.0023
EPSS Percentile
13.8%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
Status
published
Products (27)
linux/Kernel
3.9.0 - 4.19.317linux
linux/Kernel
4.20.0 - 5.4.279linux
linux/Kernel
5.11.0 - 5.15.162linux
linux/Kernel
5.16.0 - 6.1.97linux
linux/Kernel
5.5.0 - 5.10.221linux
linux/Kernel
6.2.0 - 6.6.37linux
linux/Kernel
6.7.0 - 6.9.8linux
Linux/Linux
< 3.9
Linux/Linux
3.9
Linux/Linux
3f6d078d4accfff8b114f968259a060bfdc7c682 - 4b8e88e563b5f666446d002ad0dc1e6e8e7102b0
... and 17 more
Published
Jul 29, 2024
Tracked Since
Feb 18, 2026