Read the docs

Session reference leak in Linux kernel ksmbd SESSION_SETUP

Priority LOW 22Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from CNA.

Summary

The ksmbd SMB server in the Linux kernel is affected in versions from 5.15.171 before 5.15.226, from 6.1.114 before 6.1.193, from 6.6.58 before 6.6.163, from 6.11.5 before 6.12, and from 6.12. When a compound request places SESSION_SETUP after another command, the session reference inherited from that command is overwritten and never released. A client that sends such compound requests leaks a session with its setup connection and socket, and each repeat leaks another.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

Description from the CNA

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix session reference leak on compounded SESSION_SETUP A compound request can place SESSION_SETUP after another command. That earlier command leaves a reference to its session in work->sess. smb2_sess_setup() then overwrites work->sess with the session it looks up or creates, and the dispatcher later puts work->sess only once. The inherited reference is never dropped. That leaks the session, together with its setup connection and socket, and every repeat of the compound leaks another. unreferenced object (size 512): __kmalloc_cache_noprof+0x32c/0x3a0 ksmbd_smb2_session_create+0xf6/0x9c0 [ksmbd] smb2_sess_setup+0xda4/0x6280 [ksmbd] handle_ksmbd_work+0x88c/0x1cb0 [ksmbd] Save the inherited session on entry. After the request has been processed, release it once, but only when smb2_sess_setup() has replaced work->sess with its own session or cleared it. Do this after ksmbd_conn_unlock() so the put does not run under srv_mutex. An error path may instead leave the inherited session in work->sess. Keep it there, so the dispatcher still puts it and the error response is still signed or encrypted with it as before.

Why it matters now

EPSS 0.00215 6th percentileScored 2026-11-30
Fix Fixed Linux (Linux): 5.15.226, 6.1.193, 6.6.163 +5

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
LinuxLinux5.15.171 to before 5.15.226; 6.1.114 to before 6.1.193; 6.6.58 to before 6.6.163; 6.11.5 to before 6.125.15.226, 6.1.193, 6.6.163, 6.12Patch availableCNA
LinuxLinux6.12 and later5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1Patch availableCNA
  • Linux VendorLinux Affected 5.15.171 to before 5.15.226; 6.1.114 to before 6.1.193; 6.6.58 to before 6.6.163; 6.11.5 to before 6.12 Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12 Patch available CNA
  • Linux VendorLinux Affected 6.12 and later Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*——Linux
  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions — — ·Linux

Remediation

Update the Linux kernel to a fixed version: 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

  • Fix · CNA Linux (Linux) Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12
  • Fix · CNA Linux (Linux) Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

Not affected: 7 products
  • Red Hat Enterprise Linux 10
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat OpenShift Container Platform 4
  • Red Hat OpenShift Container Platform 5

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-99539
  2. 2026-11-19 Alias added: GHSA-42jx-q75f-j6j5
  3. 2026-11-20 Affected versions changed · Red Hat
  4. 2026-11-20 CVSS score added · Red Hat
  5. 2026-11-23 Fix available: Linux/[email protected], Linux/[email protected], Linux/[email protected] +3 · CNA
  6. 2026-11-23 3 new references · CNA

References

  • TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
  • TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
  • TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
  • TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
  • TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
See all 23530 →

Sources