CVE-2024-42084
MediumIn 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.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
References
The following references provide additional information about CVE-2024-42084 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/4b8e88e563b5f666446d002ad0dc1e6e8e7102b0
-
PatchKernel patch commithttps://git.kernel.org/stable/c/5ae6af68410bdad6181ec82104bb9985a7a6a0fa
-
PatchKernel patch commithttps://git.kernel.org/stable/c/836359247b0403e0634bfbc83e5bb8063fad287a
Frequently asked questions
-
What is CVE-2024-42084?
CVE-2024-42084 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . CVE-2024-42084 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-42084?
CVE-2024-42084 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N. -
Is there a patch available for CVE-2024-42084?
No patch is currently available for CVE-2024-42084. Monitor the NIST NVD and your Linux distribution's security advisories for updates.
-
Is CVE-2024-42084 actively exploited?
No — CVE-2024-42084 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.