Use After Free Affecting torvalds/linux package, versions [4.15,5.4.287)[5.5,5.10.231)[5.11,5.15.174)[5.16,6.1.120)[6.2,6.6.64)[6.7,6.12.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (16th 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 Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-TORVALDSLINUX-20697926
  • published10 Oct 2026
  • disclosed27 Dec 2024
  • creditUnknown

Introduced: 27 Dec 2024

CVE-2024-56581  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade torvalds/linux to version 5.4.287, 5.10.231, 5.15.174, 6.1.120, 6.6.64, 6.12.4 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the btrfs_ref_tree_mod process. An attacker can achieve arbitrary kernel memory read and write, disclose sensitive kernel data, corrupt heap metadata, and potentially hijack control flow by performing file operations such as unlinking files on a specially configured and instrumented filesystem. This is only exploitable if the kernel is built with CONFIG_BTRFS_FS_REF_VERIFY and the filesystem is mounted with the -o ref_verify option.

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