Use After Free Affecting torvalds/linux package, versions [,5.15)[6.0-rc1,6.12.28)[6.13-rc1,6.14.6)[6.15-rc1,6.15-rc5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (5th 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-10245851
  • published26 May 2025
  • disclosed20 May 2025
  • creditSean Heelan

Introduced: 20 May 2025

NewCVE-2025-37899  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade torvalds/linux to version 5.15, 6.12.28, 6.14.6, 6.15-rc5 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the handler for the SMB ‘logoff’ command due to the sess->user object that can currently be in use by another thread. For example if another connection has sent a session setup request to bind to the session being freed, the handler for that connection could be in the smb2_sess_setup function which makes use of sess->user. Depending on the exact timing, an attacker could cause either a use‑after‑free or a NULL pointer dereference, both leading to denial of service.

CVSS Base Scores

version 4.0
version 3.1