CVE-2024-42084
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-42084 is a vulnerability discovered in the Linux kernel's ftruncate() syscall implementation. The issue was identified on July 29, 2024, affecting the old ftruncate() syscall when using the 32-bit off_t in compat mode on 64-bit architectures (NVD, Ubuntu).

Technical details

The vulnerability stems from a missing sign extension in the ftruncate() syscall when called in compat mode on 64-bit architectures. When passing a negative length, the syscall accidentally succeeds in truncating files to sizes between 2GiB and 4GiB, instead of returning an error as expected. The native entry point, the truncate() syscall, and the corresponding loff_t based variants are not affected by this issue (Kernel Commit).

Impact

The vulnerability allows an attacker to successfully truncate files to sizes between 2GiB and 4GiB when passing negative length values, which should normally be rejected with an -EINVAL error. This could potentially lead to unintended file size modifications in affected systems (NVD).

Exploitability

The vulnerability requires local access to the system and the ability to make syscalls. It specifically affects systems running in compat mode on 64-bit architectures. No known exploits in the wild have been reported (NVD).

Mitigation and workarounds

The issue has been fixed by changing the type of the compat syscall to the signed compat_off_t, which properly handles negative values by returning -EINVAL. Updates have been released for various Linux distributions, including Ubuntu 24.04 LTS, 22.04 LTS, and 20.04 LTS (Ubuntu). Systems should be updated to the patched versions to mitigate this vulnerability.

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74576HIGH7.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-6.17
NoYesAug 15, 2026
CVE-2026-74578HIGH7.1
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.8
NoYesAug 16, 2026
CVE-2026-74579LOW3.4
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency-hwe-5.15
NoYesAug 17, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • perf
NoNoAug 21, 2026
CVE-2026-74577NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management