CVE-2026-89636: smb: client: clear ce->tgthint in free_tgts()

Published Sep 11, 2026
·
Updated

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

smb: client: clear ce->tgthint in freetgts()

When freetgts() frees all structures in ce->tlist, ce->tgthint is left pointing to one of the freed cachedfstgt structures.

If ce->tgthint is not reset before it is used later, it results in a use-after-free.

Set ce->tgthint to NULL in freetgts() after the elements are freed to reflect that no elements remain.

Affected Software

1 affected component
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In free_tgts(), set ce->tgthint to NULL after free_tgts() frees all structures in ce->tlist, so ce->tgthint does not point to a freed cache_dfs_tgt element.

    Linux kernel SMB client ce->tgthint = NULL

Event History

Sep 11, 2026
CVE Published
via MITRE·07:45 PM
Data Sourced
via MITRE·07:45 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel SMB client are potentially exposed when the affected DFS target-cache cleanup path is exercised. The issue is in client-side SMB handling, not described as affecting SMB servers.

2

What condition triggers the use-after-free?

The condition occurs after free_tgts() frees the entries in ce->tlist but leaves ce->tgthint pointing to a freed cache_dfs_tgt structure. A later use of that stale hint can dereference freed memory.

3

How is the issue fixed?

The fix resets ce->tgthint to NULL after free_tgts() releases the target-list entries. This ensures the hint reflects that no cached target structures remain.

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