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-35870

published critical CVSS 3.1 · 9.8

smb: client: fix UAF in smb2_reconnect_server()

Published
19 May 2024, 08:34:28 UTC
Updated
05 Aug 2026, 11:30:32 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxb327a717e506980399464e304e363f94f95eb7a1 to < 755fe68cd4b59e1d2a2dd3286177fd4404f57fed · b327a717e506980399464e304e363f94f95eb7a1 to < 6202996a1c1887e83d0b3b0fcd86d0e5e6910ea0 · b327a717e506980399464e304e363f94f95eb7a1 to < 45f2beda1f1bc3d962ec07db1ccc3197c25499a5 · b327a717e506980399464e304e363f94f95eb7a1 to < 24a9799aa8efecd0eb55a75e35f9d8e6400063aa · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.16 (affected) · 0 to < 4.16 (unaffected · semver) · 6.1.121 through 6.1.* (unaffected · semver) · 6.6.29 through 6.6.* (unaffected · semver) · 6.8.5 through 6.8.* (unaffected · semver) · 6.9 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluationALAS2-2025-2800 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2025-087 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2025-088 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2025-091 Fixed Not stated Amazon Linux assessment
AlmaLinux 9 bpftool Advisory build 7.3.0-427.24.1.el9_4 ALSA-2024:4349
Debian bullseye linux-6.1 Advisory build 6.1.128-1~deb11u1 DLA-4076-1
Show 102 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2025-067 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2025-096 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2025-097 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2024-731 Fixed Not stated Amazon Linux assessment
Oracle Linux 9 bpftoolaarch64 Advisory build 0:7.3.0-427.24.1.el9_4 ELSA-2024-4349
AlmaLinux 9 kernel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-doc Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-headers Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-tools Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 libperf Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 perf Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 python3-perf Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 rtla Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 rv Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
Oracle Linux 9 bpftoolx86_64 Advisory build 0:7.3.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernelx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-abi-stablelistsx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-corex86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-cross-headersaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-cross-headersx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debugx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-corex86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-develx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-devel-matchedx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-modulesx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-modules-corex86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-modules-extrax86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-uki-virtx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-develx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-devel-matchedx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-docx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-headersaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-headersx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-modulesx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-modules-corex86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-modules-extrax86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-toolsaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-toolsx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-tools-libsaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-tools-libsx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-tools-libs-develaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-tools-libs-develx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-uki-virtx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 libperfx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 perfaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 perfx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 python3-perfaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 python3-perfx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 rtlax86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 rvx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349

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

Description

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix UAF in smb2_reconnect_server() The UAF bug is due to smb2_reconnect_server() accessing a session that is already being teared down by another thread that is executing __cifs_put_smb_ses(). This can happen when (a) the client has connection to the server but no session or (b) another thread ends up setting @ses->ses_status again to something different than SES_EXITING. To fix this, we need to make sure to unconditionally set @ses->ses_status to SES_EXITING and prevent any other threads from setting a new status while we're still tearing it down. The following can be reproduced by adding some delay to right after the ipc is freed in __cifs_put_smb_ses() - which will give smb2_reconnect_server() worker a chance to run and then accessing @ses->ipc: kinit ... mount.cifs //srv/share /mnt/1 -o sec=krb5,nohandlecache,echo_interval=10 [disconnect srv] ls /mnt/1 &>/dev/null sleep 30 kdestroy [reconnect srv] sleep 10 umount /mnt/1 ... CIFS: VFS: Verify user has a krb5 ticket and keyutils is installed CIFS: VFS: \\srv Send error in SessSetup = -126 CIFS: VFS: Verify user has a krb5 ticket and keyutils is installed CIFS: VFS: \\srv Send error in SessSetup = -126 general protection fault, probably for non-canonical address 0x6b6b6b6b6b6b6b6b: 0000 [#1] PREEMPT SMP NOPTI CPU: 3 PID: 50 Comm: kworker/3:1 Not tainted 6.9.0-rc2 #1 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-1.fc39 04/01/2014 Workqueue: cifsiod smb2_reconnect_server [cifs] RIP: 0010:__list_del_entry_valid_or_report+0x33/0xf0 Code: 4f 08 48 85 d2 74 42 48 85 c9 74 59 48 b8 00 01 00 00 00 00 ad de 48 39 c2 74 61 48 b8 22 01 00 00 00 00 74 69 <48> 8b 01 48 39 f8 75 7b 48 8b 72 08 48 39 c6 0f 85 88 00 00 00 b8 RSP: 0018:ffffc900001bfd70 EFLAGS: 00010a83 RAX: dead000000000122 RBX: ffff88810da53838 RCX: 6b6b6b6b6b6b6b6b RDX: 6b6b6b6b6b6b6b6b RSI: ffffffffc02f6878 RDI: ffff88810da53800 RBP: ffff88810da53800 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88810c064000 R13: 0000000000000001 R14: ffff88810c064000 R15: ffff8881039cc000 FS: 0000000000000000(0000) GS:ffff888157c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3728b1000 CR3: 000000010caa4000 CR4: 0000000000750ef0 PKRU: 55555554 Call Trace: <TASK> ? die_addr+0x36/0x90 ? exc_general_protection+0x1c1/0x3f0 ? asm_exc_general_protection+0x26/0x30 ? __list_del_entry_valid_or_report+0x33/0xf0 __cifs_put_smb_ses+0x1ae/0x500 [cifs] smb2_reconnect_server+0x4ed/0x710 [cifs] process_one_work+0x205/0x6b0 worker_thread+0x191/0x360 ? __pfx_worker_thread+0x10/0x10 kthread+0xe2/0x110 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x34/0x50 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK>

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

35

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 - The race is driven entirely by remote SMB server behavior — TCP disconnects, malformed/short responses, decryption failures, or withheld replies all reach `cifs_reconnect()` → `cifs_mark_tcp_ses_conns_for_reconnect()` from the demultiplex thread, and the freed tcon's contents are transmitted back over the network. A malicious/compromised SMB server or an on-path attacker against an existing CIFS mount exploits this remotely. AC:L - The attacker controls both sides: it triggers reconnect at will (RST/close/malformed frame) and observes the SMB2 LOGOFF request that `__cifs_put_smb_ses()` sends before blocking, giving an explicit on-wire marker for the teardown window, and the reconnect worker self-requeues every 2 s so the race can be retried indefinitely. In scenario (a) — server accepts TCP but fails SESSION_SETUP — `SES_EXITING` is never set at all, so no timing win is even required. PR:N - The attacker is the remote peer and needs no privileges or account on the victim client; valid SMB credentials are not required, since failed session setup is precisely what drives the vulnerable state. UI:N - The attack targets an already-established CIFS mount (fstab/autofs/Kubernetes-mounted shares on servers, NAS-backed embedded and industrial systems); reconnect and session teardown are triggered by the attacker and by background workers with no user action at attack time. S:U - Corruption is confined to kernel heap objects within the same security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The freed IPC `cifs_tcon` is re-read and `tcon->tree_name` is sent to the attacker-controlled server in the TREE_CONNECT, leaking reclaimed kernel heap contents directly to the attacker, and the freed `cifs_ses` holds session keys and `auth_key.response`; the UAF read primitive is unbounded. I:H - `cifs_smb_ses_inc_refcount()` writes to freed memory and `list_del_init(&ses->smb_ses_list)` performs a `prev->next = next` write through pointers read from a freed, sprayable kmalloc object — a write-what-where primitive suitable for control-flow hijack. A:H - The bug reproducibly causes a general protection fault in the cifsiod kworker (`__list_del_entry_valid_or_report` on 0x6b6b6b6b poison), killing the worker and panicking the system on `panic_on_oops` configurations.

Additional Assessments

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

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux b327a717e506980399464e304e363f94f95eb7a1 to < 755fe68cd4b59e1d2a2dd3286177fd4404f57fed (affected · git)b327a717e506980399464e304e363f94f95eb7a1 to < 6202996a1c1887e83d0b3b0fcd86d0e5e6910ea0 (affected · git)b327a717e506980399464e304e363f94f95eb7a1 to < 45f2beda1f1bc3d962ec07db1ccc3197c25499a5 (affected · git)b327a717e506980399464e304e363f94f95eb7a1 to < 24a9799aa8efecd0eb55a75e35f9d8e6400063aa (affected · git)Default: unaffected Linux · cna
Linux Linux 4.16 (affected)0 to < 4.16 (unaffected · semver)6.1.121 through 6.1.* (unaffected · semver)6.6.29 through 6.6.* (unaffected · semver)6.8.5 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

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

References

5

Provider assertions

3

Linux · cna

smb: client: fix UAF in smb2_reconnect_server()

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
71e41ec610a01a17cd62779a8141535f797c5beadfdb01b3781df05d0d4ed301
Ingested
23 Sep 2026, 08:23:51 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