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>
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 4.16 | 6.1.121 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 6.8.9-1 | — |
| Debian 13 | linux | 6.8.9-1 | — |
| Debian 12 | linux | 6.1.123-1 | — |
| Debian 11 | linux-6.1 | 6.1.128-1~deb11u1 | DLA-4076-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 24.04 LTS | linux | 6.8.0-38.38 | USN-6893-1 |
| Ubuntu 24.04 LTS | linux-aws | 6.8.0-1011.12 | USN-6893-3 |
| Ubuntu 24.04 LTS | linux-azure | 6.8.0-1010.10 | USN-6893-1 |
| Ubuntu 24.04 LTS | linux-gcp | 6.8.0-1010.11 | USN-6893-1 |
| Ubuntu 24.04 LTS | linux-gke | 6.8.0-1006.9 | USN-6893-2 |
| Ubuntu 24.04 LTS | linux-ibm +2 | 6.8.0-1008.8 | USN-6918-1, USN-6893-1 |
| Ubuntu 24.04 LTS | linux-intel | 6.8.0-1007.14 | USN-6893-1 |
| Ubuntu 24.04 LTS | linux-nvidia | 6.8.0-1009.9 | USN-6893-2 |
| Ubuntu 24.04 LTS | linux-raspi | 6.8.0-1007.7 | USN-6893-1 |
| Ubuntu 24.04 LTS | linux-riscv +1 | 6.8.0-38.38.1 | USN-6893-1 |
| Ubuntu 22.04 LTS | linux +49 | No fix yet | — |
| Ubuntu 22.04 LTS | linux-aws-6.8 | 6.8.0-1011.12~22.04.1 | — |
| Ubuntu 22.04 LTS | linux-azure-6.8 | 6.8.0-1010.10~22.04.1 | — |
| Ubuntu 22.04 LTS | linux-nvidia-6.8 | 6.8.0-1009.9~22.04.1 | — |
| Ubuntu 22.04 LTS | linux-oracle-6.8 | 6.8.0-1008.8~22.04.1 | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-raspi-realtime | 6.8.0-2006.6 | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime | 6.8.1-1004.4 | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +1 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux-gcp +4 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux-azure | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | bpftool | 7.3.0-427.24.1.el9_4 | RHSA-2024:4349 |
| RHEL 9 | rv +64 | 5.14.0-427.24.1.el9_4 | RHSA-2024:4349 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9.2 EUS | bpftool | 7.0.0-284.71.1.el9_2 | RHSA-2024:4108 |
| RHEL 9.2 EUS | kernel-rt +14 | 5.14.0-284.71.1.rt14.356.el9_2 | RHSA-2024:4106 |
| RHEL 9.2 EUS | perf +48 | 5.14.0-284.71.1.el9_2 | RHSA-2024:4108 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | bpftool | 7.3.0-427.24.1.el9_4 | ALSA-2024:4349 |
| AlmaLinux 9 | rv +60 | 5.14.0-427.24.1.el9_4 | ALSA-2024:4349 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | kernel | 5.14.0-427.24.1.el9_4 | RXSA-2024:4349, RLSA-2024:4349 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | kernel-64kb +3 | 6.4.0-150600.23.7.3 | SUSE-SU-2024:2203-1 |
| SLES 15 SP6 | kernel-azure +1 | 6.4.0-150600.8.5.4 | SUSE-SU-2024:2135-1 |
| SLES 15 SP6 | kernel-default-base | 6.4.0-150600.23.7.3.150600.12.2.7 | SUSE-SU-2024:2203-1 |
| SLES 15 SP6 | kernel-docs | 6.4.0-150600.23.7.4 | SUSE-SU-2024:2203-1 |
| SLES 15 SP6 | kernel-source | 6.4.0-150600.23.7.2 | SUSE-SU-2024:2203-1 |
| SLES 15 SP6 | kernel-syms | 6.4.0-150600.23.7.1 | SUSE-SU-2024:2203-1 |
| SLES 15 SP6 | kernel-syms-azure | 6.4.0-150600.8.5.1 | SUSE-SU-2024:2135-1 |
| SLES 15 SP5 | kernel-64kb +6 | 5.14.21-150500.55.68.1 | SUSE-SU-2024:2190-1 |
| SLES 15 SP5 | kernel-azure +2 | 5.14.21-150500.33.57.1 | SUSE-SU-2024:2019-1 |
| SLES 15 SP5 | kernel-default-base | 5.14.21-150500.55.68.1.150500.6.31.1 | SUSE-SU-2024:2190-1 |
| SLES 12 SP5 | kernel-azure +2 | 4.12.14-16.191.1 | SUSE-SU-2024:2360-1 |
| SLES 12 SP5 | kernel-docs +4 | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | kernel-azure +2 | 4.12.14-16.191.1 | SUSE-SU-2024:2360-1 |
| SLES for SAP 12 SP5 | kernel-syms +2 | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SLE Real Time 12 SP5 | kernel-rt +3 | 4.12.14-10.191.1 | SUSE-SU-2024:2381-1 |
| SLE Micro 6.0 | kernel-default-base | 6.4.0-17.1.1.51 | SUSE-SU-2025:20008-1 |
| SLE Micro 6.0 | kernel-rt +1 | 6.4.0-9.1 | SUSE-SU-2025:20028-1 |
| SLE Micro 6.0 | kernel-source +2 | 6.4.0-18.1 | SUSE-SU-2025:20008-1 |
| SLE Micro 5.5 | kernel-default | 5.14.21-150500.55.68.1 | SUSE-SU-2024:2190-1 |
| SLE Micro 5.5 | kernel-default-base | 5.14.21-150500.55.68.1.150500.6.31.1 | SUSE-SU-2024:2190-1 |
| SLE Micro 5.5 | kernel-rt +1 | 5.14.21-150500.13.58.1 | SUSE-SU-2024:2008-1 |
| SLE Live Patching 15 SP6 | kernel-default | 6.4.0-150600.23.7.3 | SUSE-SU-2024:2203-1 |
| SLE Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6_Update_1 | 1-150600.13.3.7 | SUSE-SU-2024:2203-1 |
| SLE Live Patching 15 SP5 | kernel-default | 5.14.21-150500.55.68.1 | SUSE-SU-2024:2190-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_15 +1 | 1-150500.11.3.1 | SUSE-SU-2024:2190-1, SUSE-SU-2024:2008-1 |
| SLE Live Patching 12 SP5 | kernel-default | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SLE Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_58 | 1-8.3.1 | SUSE-SU-2024:2561-1 |
| SUSE Real Time Module 15 SP5 | kernel-rt +3 | 5.14.21-150500.13.58.1 | SUSE-SU-2024:2008-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.6 | dtb-aarch64 +2 | 6.4.0-150600.23.7.1 | SUSE-SU-2024:2203-1 |
| openSUSE Leap 15.6 | kernel-64kb +5 | 6.4.0-150600.23.7.3 | SUSE-SU-2024:2203-1 |
| openSUSE Leap 15.6 | kernel-azure +1 | 6.4.0-150600.8.5.4 | SUSE-SU-2024:2135-1 |
| openSUSE Leap 15.6 | kernel-default-base | 6.4.0-150600.23.7.3.150600.12.2.7 | SUSE-SU-2024:2203-1 |
| openSUSE Leap 15.6 | kernel-docs | 6.4.0-150600.23.7.4 | SUSE-SU-2024:2203-1 |
| openSUSE Leap 15.6 | kernel-source | 6.4.0-150600.23.7.2 | SUSE-SU-2024:2203-1 |
| openSUSE Leap 15.6 | kernel-syms-azure | 6.4.0-150600.8.5.1 | SUSE-SU-2024:2135-1 |
| openSUSE Leap 15.5 | dtb-aarch64 +10 | 5.14.21-150500.55.68.1 | SUSE-SU-2024:2190-1 |
| openSUSE Leap 15.5 | kernel-azure +2 | 5.14.21-150500.33.57.1 | SUSE-SU-2024:2019-1 |
| openSUSE Leap 15.5 | kernel-default-base | 5.14.21-150500.55.68.1.150500.6.31.1 | SUSE-SU-2024:2190-1 |
| openSUSE Leap 15.5 | kernel-rt +3 | 5.14.21-150500.13.58.1 | SUSE-SU-2024:2008-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | kernel-livepatch-6.1.112-122.189 | 1.0-0.amzn2023 | ALAS2023-2024-731 |
| Amazon Linux 2023 | perf +14 | 6.1.112-122.189.amzn2023 | ALAS2023-2024-731 |
| Amazon Linux 2 | kernel-livepatch-4.14.355-275.603 | 1.0-0.amzn2 | ALAS2-2025-2800 |
| Amazon Linux 2 | perf +8 | 4.14.355-275.603.amzn2 | ALAS2-2025-2800 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | bpftool | 7.3.0-427.24.1.el9_4 | ELSA-2024-4349 |
| Oracle Linux 9 | rv +27 | 5.14.0-427.24.1.el9_4 | ELSA-2024-4349 |
Advisories 25
- WID-SEC-2024-1188 Linux Kernel: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Nov 9, 2026
- ALSA-2024:4349 Moderate: kernel security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- USN-6893-1 linux, linux-azure, linux-gcp, linux-ibm, linux-intel, linux-lowlatency, linux-oem-6.8, linux-raspi vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6893-2 linux-gke, linux-nvidia vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6893-3 linux-aws vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6918-1 linux-oracle vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- RHSA-2024:4349 Red Hat Security Advisory: kernel security and bug fix update Red Hat Security Advisories (RHSA) · Aug 19, 2026
- RHSA-2024:4106 Red Hat Security Advisory: kernel-rt security update Red Hat Security Advisories (RHSA) · Aug 19, 2026
- RHSA-2024:4108 Red Hat Security Advisory: kernel security and bug fix update Red Hat Security Advisories (RHSA) · Aug 19, 2026
- SUSE-SU-2025:20008-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:20028-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- DLA-4076-1 linux-6.1 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RXSA-2024:4349 Moderate: kernel security and bug fix update Rocky Linux Security Advisories · Feb 4, 2026
- RLSA-2024:4349 Moderate: kernel security and bug fix update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2024:2019-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2561-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2360-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2190-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2008-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2381-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2135-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2023-2024-731 Moderate: kernel security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 2, 2025
- SUSE-SU-2024:2203-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
- ALAS2-2025-2800 Important: kernel security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Mar 25, 2025
- ELSA-2024-4349 Moderate: kernel security and bug fix update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jul 8, 2024