CVE-2024-42084: ftruncate: pass a signed offset

Published Jul 29, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ftruncate: pass a signed offset

The old ftruncate() syscall, using the 32-bit offt 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 compatofft changes the behavior so it instead returns -EINVAL.

The native entry point, the truncate() syscall and the corresponding lofft based variants are all correct already and do not suffer from this mistake.

Affected Software

22 affected componentsFixes available
redhat/kernel<4.19.317
4.19.317
redhat/kernel<5.4.279
5.4.279
redhat/kernel<5.10.221
5.10.221
redhat/kernel<5.15.162
5.15.162
redhat/kernel<6.1.97
6.1.97
redhat/kernel<6.6.37
6.6.37
redhat/kernel<6.9.8
6.9.8
redhat/kernel<6.10
6.10
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1
Linux Linux kernel>=3.9<4.19.317
Linux Linux kernel>=4.20<5.4.279
Linux Linux kernel>=5.5<5.10.221
Linux Linux kernel>=5.11<5.15.162
Linux Linux kernel>=5.16<6.1.97
Linux Linux kernel>=6.2<6.6.37
Linux Linux kernel>=6.7<6.9.8
Linux Linux kernel=6.10-rc1
Linux Linux kernel=6.10-rc2
Linux Linux kernel=6.10-rc3
Linux Linux kernel=6.10-rc4
Linux Linux kernel=6.10-rc5

Event History

Jul 29, 2024
CVE Published
via MITRE·04:26 PM
Data Sourced
via MITRE·04:26 PM
Description
Data Sourced
via NVD·05:15 PM
Description
Data Sourced
via NVD·05:15 PM
RemedySeverityAffected Software
Data Sourced
via Red Hat·05:20 PM
DescriptionSeverityAffected Software
May 3, 2025
Data Sourced
via Ubuntu·06:22 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-42084?

The severity of CVE-2024-42084 is classified as moderate.

2

How do I fix CVE-2024-42084?

To fix CVE-2024-42084, upgrade to the latest kernel versions provided by your distribution, such as 4.19.317 or later.

3

Which versions are affected by CVE-2024-42084?

Versions of the Linux kernel prior to 4.19.317, 5.4.279, 5.10.221, 5.15.162, 6.1.97, and others are affected by CVE-2024-42084.

4

Is CVE-2024-42084 specific to any architecture?

Yes, CVE-2024-42084 specifically impacts 64-bit architectures when operating in compatibility mode.

5

What impact does CVE-2024-42084 have on systems?

CVE-2024-42084 can lead to unintended behaviors when a negative length is passed to the ftruncate() syscall, potentially causing data corruption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203