# CVE-2025-38244: smb: client: fix potential deadlock when reconnecting 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:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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)
- **CWE:** CWE-667
- **Published:** 2025-07-09T10:42:26.622Z
- **Modified:** 2026-10-30T13:18:02.123Z

## Who should check

- Anyone running Linux \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< 35fe966449280bfdf4c1bc0c42e7f4672290515a; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< c82c7041258d96e3286f6790ab700e4edd3cc9e3; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< 7f3ead8ebc0ef65b6c89a13912b4e80218425629; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< fe035dc78aa6ca8f862857d45beaf7a0e03206ca; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< 711741f94ac3cf9f4e3aa73aa171e76d188c0819
- Anyone running Linux 6.0

## Description

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

smb: client: fix potential deadlock when reconnecting channels

Fix cifs\_signal\_cifsd\_for\_reconnect() to take the correct lock order
and prevent the following deadlock from happening

======================================================
WARNING: possible circular locking dependency detected
6.16.0-rc3-build2+ \#1301 Tainted: G S      W
------------------------------------------------------
cifsd/6055 is trying to acquire lock:
ffff88810ad56038 (&tcp\_ses-\>srv\_lock){+.+.}-{3:3}, at: cifs\_signal\_cifsd\_for\_reconnect+0x134/0x200

but task is already holding lock:
ffff888119c64330 (&ret\_buf-\>chan\_lock){+.+.}-{3:3}, at: cifs\_signal\_cifsd\_for\_reconnect+0xcf/0x200

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-\> \#2 (&ret\_buf-\>chan\_lock){+.+.}-{3:3}:
       validate\_chain+0x1cf/0x270
       \_\_lock\_acquire+0x60e/0x780
       lock\_acquire.part.0+0xb4/0x1f0
       \_raw\_spin\_lock+0x2f/0x40
       cifs\_setup\_session+0x81/0x4b0
       cifs\_get\_smb\_ses+0x771/0x900
       cifs\_mount\_get\_session+0x7e/0x170
       cifs\_mount+0x92/0x2d0
       cifs\_smb3\_do\_mount+0x161/0x460
       smb3\_get\_tree+0x55/0x90
       vfs\_get\_tree+0x46/0x180
       do\_new\_mount+0x1b0/0x2e0
       path\_mount+0x6ee/0x740
       do\_mount+0x98/0xe0
       \_\_do\_sys\_mount+0x148/0x180
       do\_syscall\_64+0xa4/0x260
       entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e

-\> \#1 (&ret\_buf-\>ses\_lock){+.+.}-{3:3}:
       validate\_chain+0x1cf/0x270
       \_\_lock\_acquire+0x60e/0x780
       lock\_acquire.part.0+0xb4/0x1f0
       \_raw\_spin\_lock+0x2f/0x40
       cifs\_match\_super+0x101/0x320
       sget+0xab/0x270
       cifs\_smb3\_do\_mount+0x1e0/0x460
       smb3\_get\_tree+0x55/0x90
       vfs\_get\_tree+0x46/0x180
       do\_new\_mount+0x1b0/0x2e0
       path\_mount+0x6ee/0x740
       do\_mount+0x98/0xe0
       \_\_do\_sys\_mount+0x148/0x180
       do\_syscall\_64+0xa4/0x260
       entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e

-\> \#0 (&tcp\_ses-\>srv\_lock){+.+.}-{3:3}:
       check\_noncircular+0x95/0xc0
       check\_prev\_add+0x115/0x2f0
       validate\_chain+0x1cf/0x270
       \_\_lock\_acquire+0x60e/0x780
       lock\_acquire.part.0+0xb4/0x1f0
       \_raw\_spin\_lock+0x2f/0x40
       cifs\_signal\_cifsd\_for\_reconnect+0x134/0x200
       \_\_cifs\_reconnect+0x8f/0x500
       cifs\_handle\_standard+0x112/0x280
       cifs\_demultiplex\_thread+0x64d/0xbc0
       kthread+0x2f7/0x310
       ret\_from\_fork+0x2a/0x230
       ret\_from\_fork\_asm+0x1a/0x30

other info that might help us debug this:

Chain exists of:
  &tcp\_ses-\>srv\_lock --\> &ret\_buf-\>ses\_lock --\> &ret\_buf-\>chan\_lock

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&ret\_buf-\>chan\_lock);
                               lock(&ret\_buf-\>ses\_lock);
                               lock(&ret\_buf-\>chan\_lock);
  lock(&tcp\_ses-\>srv\_lock);

 \*\*\* DEADLOCK \*\*\*

3 locks held by cifsd/6055:
 \#0: ffffffff857de398 (&cifs\_tcp\_ses\_lock){+.+.}-{3:3}, at: cifs\_signal\_cifsd\_for\_reconnect+0x7b/0x200
 \#1: ffff888119c64060 (&ret\_buf-\>ses\_lock){+.+.}-{3:3}, at: cifs\_signal\_cifsd\_for\_reconnect+0x9c/0x200
 \#2: ffff888119c64330 (&ret\_buf-\>chan\_lock){+.+.}-{3:3}, at: cifs\_signal\_cifsd\_for\_reconnect+0xcf/0x200

## Affected and fixed versions

- Linux: \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< 35fe966449280bfdf4c1bc0c42e7f4672290515a; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< c82c7041258d96e3286f6790ab700e4edd3cc9e3; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< 7f3ead8ebc0ef65b6c89a13912b4e80218425629; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< fe035dc78aa6ca8f862857d45beaf7a0e03206ca; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< 711741f94ac3cf9f4e3aa73aa171e76d188c0819 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 711741f94ac3cf9f4e3aa73aa171e76d188c0819 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38244.md
Affected: Linux >= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, < 35fe966449280bfdf4c1bc0c42e7f4672290515a; >= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, < c82c7041258d96e3286f6790ab700e4edd3cc9e3; >= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, < 7f3ead8ebc0ef65b6c89a13912b4e80218425629; >= d7d7a66aacd6fd8ca57baf0…
Fixed in: Linux 35fe966449280bfdf4c1bc0c42e7f4672290515a, Linux 7f3ead8ebc0ef65b6c89a13912b4e80218425629, Linux 711741f94ac3cf9f4e3aa73aa171e76d188c0819

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-2025-38244 being exploited?

There is no confirmed exploitation: CVE-2025-38244 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-2025-38244?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-38244?

Linux \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< 35fe966449280bfdf4c1bc0c42e7f4672290515a; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< c82c7041258d96e3286f6790ab700e4edd3cc9e3; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< 7f3ead8ebc0ef65b6c89a13912b4e80218425629; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< fe035dc78aa6ca8f862857d45beaf7a0e03206ca; \>= d7d7a66aacd6fd8ca57baf08a7bac5421282f6f8, \< 711741f94ac3cf9f4e3aa73aa171e76d188c0819; Linux 6.0.

### Is there a fix for CVE-2025-38244?

Yes. Fixed in Linux 35fe966449280bfdf4c1bc0c42e7f4672290515a, Linux 7f3ead8ebc0ef65b6c89a13912b4e80218425629, Linux 711741f94ac3cf9f4e3aa73aa171e76d188c0819. Upgrade Linux to 711741f94ac3cf9f4e3aa73aa171e76d188c0819 or later.

### How do I check if I'm affected by CVE-2025-38244?

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

- patch: <https://git.kernel.org/stable/c/c82c7041258d96e3286f6790ab700e4edd3cc9e3>
- patch: <https://git.kernel.org/stable/c/7f3ead8ebc0ef65b6c89a13912b4e80218425629>
- patch: <https://git.kernel.org/stable/c/fe035dc78aa6ca8f862857d45beaf7a0e03206ca>
- patch: <https://git.kernel.org/stable/c/711741f94ac3cf9f4e3aa73aa171e76d188c0819>
- other: <https://git.kernel.org/stable/c/35fe966449280bfdf4c1bc0c42e7f4672290515a>

## 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-2025-38244>

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