#VU95052 Improper neutralization of directives in statically saved code (\'static code injection\') in Linux kernel - CVE-2024-42084

 

#VU95052 Improper neutralization of directives in statically saved code (\'static code injection\') in Linux kernel - CVE-2024-42084

Published: July 31, 2024 / Updated: May 12, 2025


Vulnerability identifier: #VU95052
Vulnerability risk: Low
CVSSv4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2024-42084
CWE-ID: CWE-96
Exploitation vector: Local access
Exploit availability: No public exploit available
Vulnerable software:
Linux kernel
Software vendor:
Linux Foundation

Description

The vulnerability allows a local user to perform a denial of service (DoS) attack.

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.


Remediation

Install update from vendor's repository.

External links