# CVE-2023-53052: cifs: fix use-after-free bug in refresh\_cache\_worker()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2025-05-02T15:55:07.755Z
- **Modified:** 2026-08-05T09:12:33.775Z

## Who should check

- Anyone running Linux \>= 6916881f443f67f6893b504fa2171468c8aed915, \< 5a89d81c1a3c152837ea204fd29572228e54ce0b; \>= 6916881f443f67f6893b504fa2171468c8aed915, \< 396935de145589c8bfe552fa03a5e38604071829
- Anyone running Linux 6.2

## Description

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

cifs: fix use-after-free bug in refresh\_cache\_worker()

The UAF bug occurred because we were putting DFS root sessions in
cifs\_umount() while DFS cache refresher was being executed.

Make DFS root sessions have same lifetime as DFS tcons so we can avoid
the use-after-free bug is DFS cache refresher and other places that
require IPCs to get new DFS referrals on.  Also, get rid of mount
group handling in DFS cache as we no longer need it.

This fixes below use-after-free bug catched by KASAN

\[ 379.946955\] BUG: KASAN: use-after-free in \_\_refresh\_tcon.isra.0+0x10b/0xc10 \[cifs\]
\[ 379.947642\] Read of size 8 at addr ffff888018f57030 by task kworker/u4:3/56
\[ 379.948096\]
\[ 379.948208\] CPU: 0 PID: 56 Comm: kworker/u4:3 Not tainted 6.2.0-rc7-lku \#23
\[ 379.948661\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS
rel-1.16.0-0-gd239552-rebuilt.opensuse.org 04/01/2014
\[ 379.949368\] Workqueue: cifs-dfscache refresh\_cache\_worker \[cifs\]
\[ 379.949942\] Call Trace:
\[ 379.950113\] \<TASK\>
\[ 379.950260\] dump\_stack\_lvl+0x50/0x67
\[ 379.950510\] print\_report+0x16a/0x48e
\[ 379.950759\] ? \_\_virt\_addr\_valid+0xd8/0x160
\[ 379.951040\] ? \_\_phys\_addr+0x41/0x80
\[ 379.951285\] kasan\_report+0xdb/0x110
\[ 379.951533\] ? \_\_refresh\_tcon.isra.0+0x10b/0xc10 \[cifs\]
\[ 379.952056\] ? \_\_refresh\_tcon.isra.0+0x10b/0xc10 \[cifs\]
\[ 379.952585\] \_\_refresh\_tcon.isra.0+0x10b/0xc10 \[cifs\]
\[ 379.953096\] ? \_\_pfx\_\_\_refresh\_tcon.isra.0+0x10/0x10 \[cifs\]
\[ 379.953637\] ? \_\_pfx\_\_\_mutex\_lock+0x10/0x10
\[ 379.953915\] ? lock\_release+0xb6/0x720
\[ 379.954167\] ? \_\_pfx\_lock\_acquire+0x10/0x10
\[ 379.954443\] ? refresh\_cache\_worker+0x34e/0x6d0 \[cifs\]
\[ 379.954960\] ? \_\_pfx\_wb\_workfn+0x10/0x10
\[ 379.955239\] refresh\_cache\_worker+0x4ad/0x6d0 \[cifs\]
\[ 379.955755\] ? \_\_pfx\_refresh\_cache\_worker+0x10/0x10 \[cifs\]
\[ 379.956323\] ? \_\_pfx\_lock\_acquired+0x10/0x10
\[ 379.956615\] ? read\_word\_at\_a\_time+0xe/0x20
\[ 379.956898\] ? lockdep\_hardirqs\_on\_prepare+0x12/0x220
\[ 379.957235\] process\_one\_work+0x535/0x990
\[ 379.957509\] ? \_\_pfx\_process\_one\_work+0x10/0x10
\[ 379.957812\] ? lock\_acquired+0xb7/0x5f0
\[ 379.958069\] ? \_\_list\_add\_valid+0x37/0xd0
\[ 379.958341\] ? \_\_list\_add\_valid+0x37/0xd0
\[ 379.958611\] worker\_thread+0x8e/0x630
\[ 379.958861\] ? \_\_pfx\_worker\_thread+0x10/0x10
\[ 379.959148\] kthread+0x17d/0x1b0
\[ 379.959369\] ? \_\_pfx\_kthread+0x10/0x10
\[ 379.959630\] ret\_from\_fork+0x2c/0x50
\[ 379.959879\] \</TASK\>

## Affected and fixed versions

- Linux: \>= 6916881f443f67f6893b504fa2171468c8aed915, \< 5a89d81c1a3c152837ea204fd29572228e54ce0b; \>= 6916881f443f67f6893b504fa2171468c8aed915, \< 396935de145589c8bfe552fa03a5e38604071829 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 396935de145589c8bfe552fa03a5e38604071829 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53052.md
Affected: Linux >= 6916881f443f67f6893b504fa2171468c8aed915, < 5a89d81c1a3c152837ea204fd29572228e54ce0b; >= 6916881f443f67f6893b504fa2171468c8aed915, < 396935de145589c8bfe552fa03a5e38604071829; Linux 6.2
Fixed in: Linux 5a89d81c1a3c152837ea204fd29572228e54ce0b, Linux 396935de145589c8bfe552fa03a5e38604071829

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-2023-53052 being exploited?

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

### How serious is CVE-2023-53052?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53052?

Linux \>= 6916881f443f67f6893b504fa2171468c8aed915, \< 5a89d81c1a3c152837ea204fd29572228e54ce0b; \>= 6916881f443f67f6893b504fa2171468c8aed915, \< 396935de145589c8bfe552fa03a5e38604071829; Linux 6.2.

### Is there a fix for CVE-2023-53052?

Yes. Fixed in Linux 5a89d81c1a3c152837ea204fd29572228e54ce0b, Linux 396935de145589c8bfe552fa03a5e38604071829. Upgrade Linux to 396935de145589c8bfe552fa03a5e38604071829 or later.

### How do I check if I'm affected by CVE-2023-53052?

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/5a89d81c1a3c152837ea204fd29572228e54ce0b>
- patch: <https://git.kernel.org/stable/c/396935de145589c8bfe552fa03a5e38604071829>

## 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-2023-53052>

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