CVE-2022-48919 json
cifs: fix double free race when mount fails in cifs_get_root()
published 2024-08-22 2 y ago modified 2026-08-05 3 mo ago also EUVD-2022-53798
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 40%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- Linux Linux 5.15.27, 5.16.13, 5.17
- linux Debian 14, Debian 13, Debian 12 5.16.14-1
debian advisories DEBIAN-CVE-2022-48919
- linux-gkeop Ubuntu 20.04 LTS 5.4.0-1046.48
- linux-intel-iotg-5.15 Ubuntu 20.04 LTS 5.15.0-1008.11~20.04.1
ubuntu advisories UBUNTU-CVE-2022-48919
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt RHEL 8 4.18.0-553.58.1.rt7.399.el8_10
- kernel-rt-kvm RHEL 8 4.18.0-553.58.1.rt7.399.el8_10
- kernel-rt-core RHEL 8 4.18.0-553.58.1.rt7.399.el8_10
- kernel-rt-modules RHEL 8 4.18.0-553.58.1.rt7.399.el8_10
- kernel-rt-debug-kvm RHEL 8 4.18.0-553.58.1.rt7.399.el8_10
- kernel-rt-debug-core RHEL 8 4.18.0-553.58.1.rt7.399.el8_10
- kernel-rt-debug-modules RHEL 8 4.18.0-553.58.1.rt7.399.el8_10
- kernel-rt-modules-extra RHEL 8 4.18.0-553.58.1.rt7.399.el8_10
red hat advisories RHSA-2025:9581RHSA-2025:9580
- kernel-default SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLE Live Patching 15 SP2 +2 more 5.3.18-150200.24.203.1
- dtb-aarch64 openSUSE Leap 15.5 5.14.21-150500.55.80.1
- kernel-64kb SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.80.2
- kernel-syms SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.80.1
- kernel-obs-qa openSUSE Leap 15.5 5.14.21-150500.55.80.1
- kernel-source SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.80.2
- kernel-default SLE Workstation Extension 15 SP5, SLE Module for Legacy 15 SP5, SLE Module for Basesystem 15 SP5 +5 more 5.14.21-150500.55.80.2
- kernel-kvmsmall openSUSE Leap 15.5 5.14.21-150500.55.80.2
suse advisories SUSE-SU-2024:3499-1SUSE-SU-2024:3483-1SUSE-SU-2024:3467-1SUSE-SU-2024:3408-1SUSE-SU-2024:3252-1SUSE-SU-2024:3251-1
- kernel AlmaLinux 8 4.18.0-553.58.1.el8_10
- perf AlmaLinux 8 4.18.0-553.58.1.el8_10
- bpftool AlmaLinux 8 4.18.0-553.58.1.el8_10
- kernel-core AlmaLinux 8 4.18.0-553.58.1.el8_10
- kernel-tools AlmaLinux 8 4.18.0-553.58.1.el8_10
- python3-perf AlmaLinux 8 4.18.0-553.58.1.el8_10
- kernel-modules AlmaLinux 8 4.18.0-553.58.1.el8_10
- kernel-zfcpdump AlmaLinux 8 4.18.0-553.58.1.el8_10
almalinux advisories ALSA-2025:9580ALSA-2025:9581
- kernel-rt Rocky Linux 8 4.18.0-553.58.1.rt7.399.el8_10
- kernel Rocky Linux 8 4.18.0-553.58.1.el8_10
rocky linux advisories RLSA-2025:9581RLSA-2025:9580
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-48919 updated cvss 7.0
kernel: cifs: fix double free race when mount fails in cifs_get_root()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-553.58.1.el8_10, kernel 4.18.0-553.58.1.el8_10, bpftool 4.18.0-553.58.1.el8_10, kernel-core 4.18.0-553.58.1.el8_10, kernel-tools 4.18.0-553.58.1.el8_10, python3-perf 4.18.0-553.58.1.el8_10, +15 more Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-553.58.1.el8_10, kernel-debuginfo-common-aarch64 4.18.0-553.58.1.el8_10, kernel-debuginfo-common-ppc64le 4.18.0-553.58.1.el8_10fixed: vendor fix RHSA-2025:9580
-
Red Hat Enterprise Linux NFV (v. 8) kernel-rt 4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-kvm 4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-core 4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-modules 4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-debug-kvm 4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-debug-core 4.18.0-553.58.1.rt7.399.el8_10, +4 more Red Hat Enterprise Linux RT (v. 8) kernel-rt 4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-core 4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-modules 4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-debug-core 4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-debug-modules 4.18.0-553.58.1.rt7.399.el8_10, kernel-rt-modules-extra 4.18.0-553.58.1.rt7.399.el8_10, +2 morefixed: vendor fix RHSA-2025:9581
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.47% chance of exploitation in the next 30 days, higher than 40% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-415 Double Free
- Technology feeds
References
Sources
- CVE List CVE-2022-48919
- NVD CVE-2022-48919
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.