PT-2024-29739 · Linux+8 · Linux Kernel+8
Published
2024-06-19
·
Updated
2025-10-07
·
CVE-2024-42084
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
The issue arises from the old ftruncate() syscall using a 32-bit off t, which 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.
Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Almalinux
Astra Linux
Centos
Linuxmint
Linux Kernel
Red Hat
Red Os
Rocky Linux
Ubuntu