CVE-2026-98162: smb/server: fix tree connection leak in smb2_tree_connect()

Published Sep 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

smb/server: fix tree connection leak in smb2treeconnect()

See the procedure below:

smb2treeconnect ksmbdtreeconnconnect xastore(&sess->treeconns, treeconn->id, treeconn) ksmbdcounterinc(KSMBDCOUNTERTREECONNS) ksmbdsharetreeconninc(sc) ksmbdiovpinrsp // fail status.ret = KSMBDTREECONNSTATUSNOMEM // do not disconnect treeconn

Disconnect the new tree connection if ksmbdiovpinrsp() fails.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Disconnect the newly created tree connection when ksmbd_iov_pin_rsp() fails in smb2_tree_connect().

Event History

Sep 25, 2026
CVE Published
via MITRE·01:06 PM
Data Sourced
via MITRE·01:06 PM
Description

Frequently Asked Questions

1

What condition triggers the leak?

The leak occurs when ksmbd_iov_pin_rsp() fails after a new SMB2 tree connection has been stored and its associated counters have been incremented. The failure path returns an out-of-memory tree-connection status without disconnecting that new tree connection.

2

Which systems are exposed?

Systems using the Linux kernel SMB server code path that handles SMB2 tree connections are affected. The provided data does not identify specific kernel versions, configurations, or distributions.

3

What is the immediate mitigation if the fix cannot be deployed?

No workaround is provided in the available data. The documented corrective action is to disconnect the newly created tree connection when ksmbd_iov_pin_rsp() fails.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203