CVE-2024-42084

ftruncate: pass a signed offset

MEDIUM
5.5
CVSS Score
Published: July 29, 2024 at 04:26 PM UTC
Updated: June 17, 2026 at 07:48 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.9 ≤ v < 4.19.3173.9 ≤ v < 5.10.2213.9 ≤ v < 5.15.1623.9 ≤ v < 5.4.2793.9 ≤ v < 6.1.973.9 ≤ v < 6.103.9 ≤ v < 6.6.373.9 ≤ v < 6.9.84.20 ≤ v < 5.4.2795.11 ≤ v < 5.15.1625.16 ≤ v < 6.1.975.5 ≤ v < 5.10.2216.2 ≤ v < 6.6.376.7 ≤ v < 6.9.83.93f6d078d4accfff8b114f968259a060bfdc7c6826.10 rc16.10 rc26.10 rc36.10 rc46.10 rc5
Vendor states this is fixed in 4b8e88e563b5f666446d002ad0dc1e6e8e7102b0 (fixed)
Vendor states this is fixed in 5ae6af68410bdad6181ec82104bb9985a7a6a0fa (fixed)
Vendor states this is fixed in 836359247b0403e0634bfbc83e5bb8063fad287a (fixed)
Vendor states this is fixed in 84bf6b64a1a0dfc6de7e1b1c776d58d608e7865a (fixed)
Vendor states this is fixed in 930a4c369f74da26816eaaa71b5888d29b759c27 (fixed)
Vendor states this is fixed in c329760749b5419769e57cb2be80955d2805f9c9 (fixed)
Vendor states this is fixed in dbb226d81cd02cee140139c2369791e6f61f2007 (fixed)
Vendor states this is fixed in f531d4bc6c5588d713359e42ed65e46816d841d8 (fixed)
Vendor states this is fixed in 3.9 (unaffected)
Vendor states this is fixed in 4.19.317 (unaffected)
Vendor states this is fixed in 5.10.221 (unaffected)
Vendor states this is fixed in 5.15.162 (unaffected)
Vendor states this is fixed in 5.4.279 (unaffected)
Vendor states this is fixed in 6.1.97 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.37 (unaffected)
Vendor states this is fixed in 6.9.8 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4b8e88e563b5f666446d002ad0dc1e6e8e7102b0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5ae6af68410bdad6181ec82104bb9985a7a6a0fa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/836359247b0403e0634bfbc83e5bb8063fad287a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/84bf6b64a1a0dfc6de7e1b1c776d58d608e7865a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/930a4c369f74da26816eaaa71b5888d29b759c27
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c329760749b5419769e57cb2be80955d2805f9c9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dbb226d81cd02cee140139c2369791e6f61f2007
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f531d4bc6c5588d713359e42ed65e46816d841d8

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card