Remote Code Execution (RCE) Affecting torvalds/linux package, versions [2.6.23,4.19.317)[4.20,5.4.279)[5.5,5.10.221)[5.11,5.15.162)[5.16,6.1.95)[6.2,6.6.35)[6.7,6.9.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-TORVALDSLINUX-20696517
  • published9 Oct 2026
  • disclosed12 Jul 2024
  • creditUnknown

Introduced: 12 Jul 2024

CVE-2024-40943  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade torvalds/linux to version 4.19.317, 5.4.279, 5.10.221, 5.15.162, 6.1.95, 6.6.35, 6.9.6 or higher.

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE) in the ocfs2 process. An attacker can achieve arbitrary code execution, data corruption, and denial of service by racing asynchronous direct I/O writes with hole punching operations on the same file. This can result in persistent write aliases, unauthorized access to other users' data, and forced read-only states for the entire shared volume. This is only exploitable if the attacker has local write access to a file on an ocfs2 volume and can perform concurrent direct I/O and fallocate operations.

Note: The Linux kernel project assigns a CVE to every bug fix it ships, whether or not the bug has been shown to be exploitable. This advisory was generated from that process and has not been individually assessed for exploitability. See the kernel's CVE process documentation: https://github.com/torvalds/linux/blob/master/Documentation/process/cve.rst

CVSS Base Scores

version 4.0
version 3.1