# CVE-2026-98173: smb: client: fix use-after-free of iface in cifs\_try\_adding\_channels()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.48% (percentile 34, 2026-11-26)
- **Published:** 2026-10-06T08:44:17.567Z
- **Modified:** 2026-10-30T13:21:11.653Z

## Who should check

- Anyone running Linux \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< 93e8a49adb2a575202c5ee766435eff2f9f95f5b; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< ee0d8f83d68f6e6509f092c997ccab3c8c801538; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< c941f1ebfd26f683de81091473f3596a218abff0; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< e99040e5e9c60441e6b4725e1a7b88c3106ae903; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< ec36b38e65596950e6c29bed7dfc90b98707c19c; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< d034e836eefd7ce75e588f7031cffbeec594f5ac
- Anyone running Linux 5.19

## Description

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

smb: client: fix use-after-free of iface in cifs\_try\_adding\_channels()

cifs\_try\_adding\_channels() iterates ses-\>iface\_list with
list\_for\_each\_entry\_safe\_from(), which captures the next entry
(niface) under iface\_lock.  The loop body then drops iface\_lock for
the whole duration of cifs\_ses\_add\_channel().

A concurrent interface refresh (SMB3\_request\_interfaces() -\>
parse\_server\_interfaces()) marks all ifaces inactive and removes and
frees any that are not re-advertised via list\_del() + kref\_put(),
where release\_iface() is a bare kfree().  Since niface typically has
no channel holding a reference, the list reference is its last and it
can be freed inside the unlocked window.  On continue, the iterator
advance step then dereferences niface-\>iface\_head.next, and the loop
body reads iface-\>rdma\_capable/is\_active, both on freed memory.

Fix this by never keeping an unreferenced list pointer across the
unlocked window.  Each channel attempt now re-scans the list from the
head under iface\_lock, takes a kref on the selected candidate, and
passes only that referenced candidate to cifs\_ses\_add\_channel().
weight\_fulfilled still tracks selection progress, so restarting the
scan preserves the original weighted distribution and the
weight\_fulfilled-before-kref\_put ordering on the failure path.

Add a per-pass attempts cap so a flapping interface refresh cannot
keep the inner loop spinning within a single tries increment.

## Affected and fixed versions

- Linux: \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< 93e8a49adb2a575202c5ee766435eff2f9f95f5b; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< ee0d8f83d68f6e6509f092c997ccab3c8c801538; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< c941f1ebfd26f683de81091473f3596a218abff0; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< e99040e5e9c60441e6b4725e1a7b88c3106ae903; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< ec36b38e65596950e6c29bed7dfc90b98707c19c; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< d034e836eefd7ce75e588f7031cffbeec594f5ac (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98173. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98173.md
Affected: Linux >= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, < 93e8a49adb2a575202c5ee766435eff2f9f95f5b; >= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, < ee0d8f83d68f6e6509f092c997ccab3c8c801538; >= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, < c941f1ebfd26f683de81091473f3596a218abff0; >= aa45dadd34e44fcd6a9df4b…
Fixed in: Linux 93e8a49adb2a575202c5ee766435eff2f9f95f5b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98173 being exploited?

There is no confirmed exploitation: CVE-2026-98173 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98173?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-98173?

Linux \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< 93e8a49adb2a575202c5ee766435eff2f9f95f5b; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< ee0d8f83d68f6e6509f092c997ccab3c8c801538; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< c941f1ebfd26f683de81091473f3596a218abff0; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< e99040e5e9c60441e6b4725e1a7b88c3106ae903; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< ec36b38e65596950e6c29bed7dfc90b98707c19c; \>= aa45dadd34e44fcd6a9df4b395bee5b5633b4cec, \< d034e836eefd7ce75e588f7031cffbeec594f5ac; Linux 5.19.

### Is there a fix for CVE-2026-98173?

Yes. Fixed in Linux 93e8a49adb2a575202c5ee766435eff2f9f95f5b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98173?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/93e8a49adb2a575202c5ee766435eff2f9f95f5b>
- other: <https://git.kernel.org/stable/c/ee0d8f83d68f6e6509f092c997ccab3c8c801538>
- other: <https://git.kernel.org/stable/c/c941f1ebfd26f683de81091473f3596a218abff0>
- other: <https://git.kernel.org/stable/c/e99040e5e9c60441e6b4725e1a7b88c3106ae903>
- other: <https://git.kernel.org/stable/c/ec36b38e65596950e6c29bed7dfc90b98707c19c>
- other: <https://git.kernel.org/stable/c/d034e836eefd7ce75e588f7031cffbeec594f5ac>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98173>

HTML: <https://flawdb.com/CVE-2026-98173> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98173>
