Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-50086

published critical CVSS 3.1 · 9.8

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

Published
29 Oct 2024, 00:50:29 UTC
Updated
05 Aug 2026, 11:41:31 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < 0f62358ce85b2d4c949ef1b648be01b29cec667a · 0626e6641f6b467447c81dd7678a69c66f7746cf to < a9839c37fd813b432988f58a9d9dd59253d3eb2c · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 5511999e9615e4318e9142d23b29bd1597befc08 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < ee371898b53a9b9b51c02d22a8c31bfb86d45f0d · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.171 through 5.15.* (unaffected · semver) · 6.1.114 through 6.1.* (unaffected · semver) · 6.6.58 through 6.6.* (unaffected · semver) · 6.11.5 through 6.11.* (unaffected · semver) · 6.12 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bullseye linux-6.1 Advisory build 6.1.119-1~deb11u1 DLA-4008-1
Oracle Linux 8 bpftoolaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
Ubuntu focal linux-aws-5.15 Advisory build 5.15.0-1080.87~20.04.1 USN-7388-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 8 bpftoolx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-containeraarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-coreaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-corex86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 8 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-303.171.5.2.el8uek ELSA-2024-12887
Oracle Linux 9 bpftoolaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 bpftoolx86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-containeraarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-containerx86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-docaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-303.171.5.2.el9uek ELSA-2024-12887
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longtermaarch64 Advisory build 6.12.11-1.1 OPENSUSE-SU-2025:14705-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longtermppc64le Advisory build 6.12.11-1.1 OPENSUSE-SU-2025:14705-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longterms390x Advisory build 6.12.11-1.1 OPENSUSE-SU-2025:14705-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devel-longtermx86_64 Advisory build 6.12.11-1.1 OPENSUSE-SU-2025:14705-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longtermaarch64 Advisory build 6.12.11-1.1 OPENSUSE-SU-2025:14705-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longtermppc64le Advisory build 6.12.11-1.1 OPENSUSE-SU-2025:14705-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longterms390x Advisory build 6.12.11-1.1 OPENSUSE-SU-2025:14705-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-longtermx86_64 Advisory build 6.12.11-1.1 OPENSUSE-SU-2025:14705-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 6.11.8-1.1 OPENSUSE-SU-2024:14500-1
Ubuntu focal linux-aws-5.15-cloud-tools-5.15.0-1080 Advisory build 5.15.0-1080.87~20.04.1 USN-7388-1
Ubuntu focal linux-aws-5.15-headers-5.15.0-1080 Advisory build 5.15.0-1080.87~20.04.1 USN-7388-1
Ubuntu focal linux-aws-5.15-tools-5.15.0-1080 Advisory build 5.15.0-1080.87~20.04.1 USN-7388-1
Ubuntu focal linux-azure-5.15 Advisory build 5.15.0-1081.90~20.04.1 USN-7289-2
Ubuntu focal linux-azure-5.15-cloud-tools-5.15.0-1081 Advisory build 5.15.0-1081.90~20.04.1 USN-7289-2
Ubuntu focal linux-azure-5.15-headers-5.15.0-1081 Advisory build 5.15.0-1081.90~20.04.1 USN-7289-2
Ubuntu focal linux-azure-5.15-tools-5.15.0-1081 Advisory build 5.15.0-1081.90~20.04.1 USN-7289-2
Ubuntu focal linux-azure-fde-5.15 Advisory build 5.15.0-1081.90~20.04.1.1 USN-7289-2
Ubuntu focal linux-buildinfo-5.15.0-1073-intel-iotg Advisory build 5.15.0-1073.79~20.04.2 USN-7289-4
Ubuntu focal linux-buildinfo-5.15.0-1074-ibm Advisory build 5.15.0-1074.77~20.04.1 USN-7458-1
Ubuntu focal linux-buildinfo-5.15.0-1075-oracle Advisory build 5.15.0-1075.81~20.04.1 USN-7289-2
Ubuntu focal linux-buildinfo-5.15.0-1077-gcp Advisory build 5.15.0-1077.86~20.04.1 USN-7291-1
Ubuntu focal linux-buildinfo-5.15.0-1080-aws Advisory build 5.15.0-1080.87~20.04.1 USN-7388-1
Ubuntu focal linux-buildinfo-5.15.0-1081-azure Advisory build 5.15.0-1081.90~20.04.1 USN-7289-2
Ubuntu focal linux-buildinfo-5.15.0-133-lowlatency Advisory build 5.15.0-133.143~20.04.1 USN-7288-2
Ubuntu focal linux-buildinfo-5.15.0-133-lowlatency-64k Advisory build 5.15.0-133.143~20.04.1 USN-7288-2
Ubuntu focal linux-buildinfo-5.15.0-134-generic Advisory build 5.15.0-134.145~20.04.1 USN-7331-1
Ubuntu focal linux-buildinfo-5.15.0-134-generic-64k Advisory build 5.15.0-134.145~20.04.1 USN-7331-1

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

37

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - ksmbd is the in-kernel SMB server processing attacker-supplied SMB2 PDUs on TCP/445 (or RDMA), so the entire race is driven by remote network traffic. No local access to the target is required. AC:L - The attacker controls both sides of the race — one pipelined SMB2 request holds the raw `work->sess` pointer while a second concurrently issued SMB2_SESSION_SETUP drives `ksmbd_expire_session()` into `kfree(sess)` — and each PDU is dispatched to a separate workqueue item, so the race can be replayed indefinitely and widened with compound/large requests. PR:N - No credentials are needed: `__session_create()` leaves a session `SMB2_SESSION_IN_PROGRESS` and `smb2_sess_setup()`'s error path marks it `SMB2_SESSION_EXPIRED`, both of which `ksmbd_expire_session()` frees, while the concurrent work item still dereferences `work->sess` in `smb3_preauth_hash_rsp()`/`set_sign_rsp()` after `ksmbd_conn_unlock()`. The logoff variant needs only an ordinary (including guest-mapped) SMB session. UI:N - The attacker triggers everything by sending SMB2 requests to the listening ksmbd server; no action by any local user or administrator is involved. S:U - The corruption and its consequences stay within the kernel's own security authority on the SMB server host, with no crossing of a VM, sandbox, or IOMMU boundary. C:H - After the free, `set_sign_rsp()` HMACs the response with `sess->smb3signingkey` read from reclaimed slab memory and returns the result to the attacker, and `sess->file_table`/`sess->tree_conns` lookups on freed xarrays yield attacker-influenced pointers, enabling disclosure of arbitrary kernel memory. I:H - `smb3_preauth_hash_rsp()` writes a 64-byte SHA-512 result through the `Preauth_HashValue` pointer read out of the freed object, giving a controlled kernel write once the slab is sprayed; the freed `file_table`/`tree_conns`/`user` fields additionally allow type confusion and control-flow hijacking. A:H - Even without successful exploitation the use-after-free dereferences freed slab memory and corrupts the allocator, producing kernel oopses and panics that take down the SMB server host, and it can be retriggered at will.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.8 high CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0626e6641f6b467447c81dd7678a69c66f7746cf to < 0f62358ce85b2d4c949ef1b648be01b29cec667a (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < a9839c37fd813b432988f58a9d9dd59253d3eb2c (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 5511999e9615e4318e9142d23b29bd1597befc08 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < ee371898b53a9b9b51c02d22a8c31bfb86d45f0d (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.171 through 5.15.* (unaffected · semver)6.1.114 through 6.1.* (unaffected · semver)6.6.58 through 6.6.* (unaffected · semver)6.11.5 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-416 CWE-416 Use After Free (CISA-ADP · adp)

References

6

Provider assertions

3

Linux · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
593104b17d9ab8d902cadf6e9fa000353f44fc2953438ed53f9963a42c569a80
Ingested
23 Sep 2026, 08:29:52 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected