# CVE-2022-48919: cifs: fix double free race when mount fails in cifs\_get\_root()

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; 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.76% (percentile 52, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2024-08-22T01:32:43.390Z
- **Modified:** 2026-08-05T08:52:54.791Z

## Who should check

- Anyone running Linux \>= d17abdf7566566fc402c31899b353044a7ff3cf4, \< 546d60859ecf13380fcabcbeace53a5971493a2b; \>= d17abdf7566566fc402c31899b353044a7ff3cf4, \< 563431c1f3c8f2230e4a9c445fa23758742bc4f0; \>= d17abdf7566566fc402c31899b353044a7ff3cf4, \< 3d6cc9898efdfb062efb74dc18cfc700e082f5d5
- Anyone running Linux 5.11

## Description

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

cifs: fix double free race when mount fails in cifs\_get\_root()

When cifs\_get\_root() fails during cifs\_smb3\_do\_mount() we call
deactivate\_locked\_super() which eventually will call delayed\_free() which
will free the context.
In this situation we should not proceed to enter the out: section in
cifs\_smb3\_do\_mount() and free the same resources a second time.

\[Thu Feb 10 12:59:06 2022\] BUG: KASAN: use-after-free in rcu\_cblist\_dequeue+0x32/0x60
\[Thu Feb 10 12:59:06 2022\] Read of size 8 at addr ffff888364f4d110 by task swapper/1/0

\[Thu Feb 10 12:59:06 2022\] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G           OE     5.17.0-rc3+ \#4
\[Thu Feb 10 12:59:06 2022\] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.0 12/17/2019
\[Thu Feb 10 12:59:06 2022\] Call Trace:
\[Thu Feb 10 12:59:06 2022\]  \<IRQ\>
\[Thu Feb 10 12:59:06 2022\]  dump\_stack\_lvl+0x5d/0x78
\[Thu Feb 10 12:59:06 2022\]  print\_address\_description.constprop.0+0x24/0x150
\[Thu Feb 10 12:59:06 2022\]  ? rcu\_cblist\_dequeue+0x32/0x60
\[Thu Feb 10 12:59:06 2022\]  kasan\_report.cold+0x7d/0x117
\[Thu Feb 10 12:59:06 2022\]  ? rcu\_cblist\_dequeue+0x32/0x60
\[Thu Feb 10 12:59:06 2022\]  \_\_asan\_load8+0x86/0xa0
\[Thu Feb 10 12:59:06 2022\]  rcu\_cblist\_dequeue+0x32/0x60
\[Thu Feb 10 12:59:06 2022\]  rcu\_core+0x547/0xca0
\[Thu Feb 10 12:59:06 2022\]  ? call\_rcu+0x3c0/0x3c0
\[Thu Feb 10 12:59:06 2022\]  ? \_\_this\_cpu\_preempt\_check+0x13/0x20
\[Thu Feb 10 12:59:06 2022\]  ? lock\_is\_held\_type+0xea/0x140
\[Thu Feb 10 12:59:06 2022\]  rcu\_core\_si+0xe/0x10
\[Thu Feb 10 12:59:06 2022\]  \_\_do\_softirq+0x1d4/0x67b
\[Thu Feb 10 12:59:06 2022\]  \_\_irq\_exit\_rcu+0x100/0x150
\[Thu Feb 10 12:59:06 2022\]  irq\_exit\_rcu+0xe/0x30
\[Thu Feb 10 12:59:06 2022\]  sysvec\_hyperv\_stimer0+0x9d/0xc0
...
\[Thu Feb 10 12:59:07 2022\] Freed by task 58179:
\[Thu Feb 10 12:59:07 2022\]  kasan\_save\_stack+0x26/0x50
\[Thu Feb 10 12:59:07 2022\]  kasan\_set\_track+0x25/0x30
\[Thu Feb 10 12:59:07 2022\]  kasan\_set\_free\_info+0x24/0x40
\[Thu Feb 10 12:59:07 2022\]  \_\_\_\_kasan\_slab\_free+0x137/0x170
\[Thu Feb 10 12:59:07 2022\]  \_\_kasan\_slab\_free+0x12/0x20
\[Thu Feb 10 12:59:07 2022\]  slab\_free\_freelist\_hook+0xb3/0x1d0
\[Thu Feb 10 12:59:07 2022\]  kfree+0xcd/0x520
\[Thu Feb 10 12:59:07 2022\]  cifs\_smb3\_do\_mount+0x149/0xbe0 \[cifs\]
\[Thu Feb 10 12:59:07 2022\]  smb3\_get\_tree+0x1a0/0x2e0 \[cifs\]
\[Thu Feb 10 12:59:07 2022\]  vfs\_get\_tree+0x52/0x140
\[Thu Feb 10 12:59:07 2022\]  path\_mount+0x635/0x10c0
\[Thu Feb 10 12:59:07 2022\]  \_\_x64\_sys\_mount+0x1bf/0x210
\[Thu Feb 10 12:59:07 2022\]  do\_syscall\_64+0x5c/0xc0
\[Thu Feb 10 12:59:07 2022\]  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

\[Thu Feb 10 12:59:07 2022\] Last potentially related work creation:
\[Thu Feb 10 12:59:07 2022\]  kasan\_save\_stack+0x26/0x50
\[Thu Feb 10 12:59:07 2022\]  \_\_kasan\_record\_aux\_stack+0xb6/0xc0
\[Thu Feb 10 12:59:07 2022\]  kasan\_record\_aux\_stack\_noalloc+0xb/0x10
\[Thu Feb 10 12:59:07 2022\]  call\_rcu+0x76/0x3c0
\[Thu Feb 10 12:59:07 2022\]  cifs\_umount+0xce/0xe0 \[cifs\]
\[Thu Feb 10 12:59:07 2022\]  cifs\_kill\_sb+0xc8/0xe0 \[cifs\]
\[Thu Feb 10 12:59:07 2022\]  deactivate\_locked\_super+0x5d/0xd0
\[Thu Feb 10 12:59:07 2022\]  cifs\_smb3\_do\_mount+0xab9/0xbe0 \[cifs\]
\[Thu Feb 10 12:59:07 2022\]  smb3\_get\_tree+0x1a0/0x2e0 \[cifs\]
\[Thu Feb 10 12:59:07 2022\]  vfs\_get\_tree+0x52/0x140
\[Thu Feb 10 12:59:07 2022\]  path\_mount+0x635/0x10c0
\[Thu Feb 10 12:59:07 2022\]  \_\_x64\_sys\_mount+0x1bf/0x210
\[Thu Feb 10 12:59:07 2022\]  do\_syscall\_64+0x5c/0xc0
\[Thu Feb 10 12:59:07 2022\]  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

## Affected and fixed versions

- Linux: \>= d17abdf7566566fc402c31899b353044a7ff3cf4, \< 546d60859ecf13380fcabcbeace53a5971493a2b; \>= d17abdf7566566fc402c31899b353044a7ff3cf4, \< 563431c1f3c8f2230e4a9c445fa23758742bc4f0; \>= d17abdf7566566fc402c31899b353044a7ff3cf4, \< 3d6cc9898efdfb062efb74dc18cfc700e082f5d5 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- Upgrade Linux to 3d6cc9898efdfb062efb74dc18cfc700e082f5d5 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-48919.md
Affected: Linux >= d17abdf7566566fc402c31899b353044a7ff3cf4, < 546d60859ecf13380fcabcbeace53a5971493a2b; >= d17abdf7566566fc402c31899b353044a7ff3cf4, < 563431c1f3c8f2230e4a9c445fa23758742bc4f0; >= d17abdf7566566fc402c31899b353044a7ff3cf4, < 3d6cc9898efdfb062efb74dc18cfc700e082f5d5; Linux 5.11
Fixed in: Linux 546d60859ecf13380fcabcbeace53a5971493a2b, Linux 563431c1f3c8f2230e4a9c445fa23758742bc4f0, Linux 3d6cc9898efdfb062efb74dc18cfc700e082f5d5

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-2022-48919 being exploited?

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

### How serious is CVE-2022-48919?

High: CVSS 8.8 (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.

### Which versions are affected by CVE-2022-48919?

Linux \>= d17abdf7566566fc402c31899b353044a7ff3cf4, \< 546d60859ecf13380fcabcbeace53a5971493a2b; \>= d17abdf7566566fc402c31899b353044a7ff3cf4, \< 563431c1f3c8f2230e4a9c445fa23758742bc4f0; \>= d17abdf7566566fc402c31899b353044a7ff3cf4, \< 3d6cc9898efdfb062efb74dc18cfc700e082f5d5; Linux 5.11.

### Is there a fix for CVE-2022-48919?

Yes. Fixed in Linux 546d60859ecf13380fcabcbeace53a5971493a2b, Linux 563431c1f3c8f2230e4a9c445fa23758742bc4f0, Linux 3d6cc9898efdfb062efb74dc18cfc700e082f5d5. Upgrade Linux to 3d6cc9898efdfb062efb74dc18cfc700e082f5d5 or later.

### How do I check if I'm affected by CVE-2022-48919?

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/546d60859ecf13380fcabcbeace53a5971493a2b>
- patch: <https://git.kernel.org/stable/c/563431c1f3c8f2230e4a9c445fa23758742bc4f0>
- patch: <https://git.kernel.org/stable/c/3d6cc9898efdfb062efb74dc18cfc700e082f5d5>

## 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-2022-48919>

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