cbcvebase.
CVE-2024-42084
published 2024-07-29

CVE-2024-42084: 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…

PriorityP422medium5.5CVSS 3.1
AVLACLPRLUINSUCNIHAN
EPSS
0.23%
13.8th percentile
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

26 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.98-1 (bookworm)linux 6.1.98-1 (bookworm)
debianlinux-6.1< linux 6.1.98-1 (bookworm)linux 6.1.98-1 (bookworm)
linuxlinux
linuxlinux>= 3f6d078d4accfff8b114f968259a060bfdc7c682 < c329760749b5419769e57cb2be80955d2805f9c9c329760749b5419769e57cb2be80955d2805f9c9
linuxlinux>= 3f6d078d4accfff8b114f968259a060bfdc7c682 < f531d4bc6c5588d713359e42ed65e46816d841d8f531d4bc6c5588d713359e42ed65e46816d841d8
linuxlinux>= 3f6d078d4accfff8b114f968259a060bfdc7c682 < 84bf6b64a1a0dfc6de7e1b1c776d58d608e7865a84bf6b64a1a0dfc6de7e1b1c776d58d608e7865a
linuxlinux>= 3f6d078d4accfff8b114f968259a060bfdc7c682 < dbb226d81cd02cee140139c2369791e6f61f2007dbb226d81cd02cee140139c2369791e6f61f2007
linuxlinux>= 3f6d078d4accfff8b114f968259a060bfdc7c682 < 5ae6af68410bdad6181ec82104bb9985a7a6a0fa5ae6af68410bdad6181ec82104bb9985a7a6a0fa
linuxlinux>= 3f6d078d4accfff8b114f968259a060bfdc7c682 < 836359247b0403e0634bfbc83e5bb8063fad287a836359247b0403e0634bfbc83e5bb8063fad287a
linuxlinux>= 3f6d078d4accfff8b114f968259a060bfdc7c682 < 930a4c369f74da26816eaaa71b5888d29b759c27930a4c369f74da26816eaaa71b5888d29b759c27
linuxlinux>= 3f6d078d4accfff8b114f968259a060bfdc7c682 < 4b8e88e563b5f666446d002ad0dc1e6e8e7102b04b8e88e563b5f666446d002ad0dc1e6e8e7102b0
linuxlinux_kernel
linuxlinux_kernel>= 0 < 5.10.221-15.10.221-1
linuxlinux_kernel>= 0 < 6.1.98-16.1.98-1
linuxlinux_kernel>= 0 < 6.9.8-16.9.8-1
linuxlinux_kernel>= 0 < 6.9.8-16.9.8-1
linuxlinux_kernel>= 0 < 5.4.0-195.2155.4.0-195.215
linuxlinux_kernel>= 0 < 5.15.0-121.1315.15.0-121.131
linuxlinux_kernel>= 0 < 6.8.0-48.486.8.0-48.48
linuxlinux_kernel>= 3.9 < 4.19.3174.19.317
linuxlinux_kernel>= 4.20 < 5.4.2795.4.279
linuxlinux_kernel>= 5.11 < 5.15.1625.15.162
linuxlinux_kernel>= 5.16 < 6.1.976.1.97
linuxlinux_kernel>= 5.5 < 5.10.2215.10.221
linuxlinux_kernel>= 6.2 < 6.6.376.6.37

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
osv7.8HIGH
vendor_ubuntu7.8HIGH
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.