CVE-2024-50086

ksmbd: fix user-after-free from session log off

HIGH
7
CVSS Score
Published: October 29, 2024 at 12:50 AM UTC
Updated: August 5, 2026 at 12:05 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix user-after-free from session log off There is racy issue between smb2 session log off and smb2 session setup. It will cause user-after-free from session log off. This add session_lock when setting SMB2_SESSION_EXPIRED and referece count to session struct not to free session while it is being used.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.1.1145.15 ≤ v < 5.15.1715.15 ≤ v < 6.1.1145.15 ≤ v < 6.11.55.15 ≤ v < 6.125.15 ≤ v < 6.6.586.2 ≤ v < 6.6.586.7 ≤ v < 6.11.56.12 rc16.12 rc26.12 rc3626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 0f62358ce85b2d4c949ef1b648be01b29cec667a (fixed)
Vendor states this is fixed in 5511999e9615e4318e9142d23b29bd1597befc08 (fixed)
Vendor states this is fixed in 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 (fixed)
Vendor states this is fixed in a9839c37fd813b432988f58a9d9dd59253d3eb2c (fixed)
Vendor states this is fixed in ee371898b53a9b9b51c02d22a8c31bfb86d45f0d (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.171 (unaffected)
Vendor states this is fixed in 6.1.114 (unaffected)
Vendor states this is fixed in 6.11.5 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.6.58 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5511999e9615e4318e9142d23b29bd1597befc08
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7aa8804c0b67b3cb263a472d17f2cb50d7f1a930
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a9839c37fd813b432988f58a9d9dd59253d3eb2c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ee371898b53a9b9b51c02d22a8c31bfb86d45f0d
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card