CVE-2022-48931 json
configfs: fix a race in configfs_{,un}register_subsystem()
published 2024-08-22 2 y ago modified 2026-06-17 4 mo ago also EUVD-2022-53810
- cvss
- 4.7
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
configfs: fix a race in configfs_{,un}register_subsystem()
When configfs_register_subsystem() or configfs_unregister_subsystem() is executing link_group() or unlink_group(), it is possible that two processes add or delete list concurrently. Some unfortunate interleavings of them can cause kernel panic.
One of cases is: A --> B --> C --> D A <-- B <-- C <-- D
delete list_head *B | delete list_head *C --------------------------------|----------------------------------- configfs_unregister_subsystem | configfs_unregister_subsystem unlink_group | unlink_group unlink_obj | unlink_obj list_del_init | list_del_init __list_del_entry | __list_del_entry __list_del | __list_del // next == C | next->prev = prev | | next->prev = prev prev->next = next | | // prev == B | prev->next = next
Fix this by adding mutex when calling link_group() or unlink_group(), but parent configfs_subsystem is NULL when config_item is root. So I create a mutex configfs_subsystem_mutex.
Patch / fix
- Linux Linux 4.9.304, 4.14.269, 4.19.232, 5.4.182, 5.10.103, 5.15.26, 5.16.12, 5.17
- linux Debian 14, Debian 13, Debian 12 5.16.12-1
debian advisories DEBIAN-CVE-2022-48931
- linux Ubuntu 18.04 LTS 4.15.0-177.186
- linux Ubuntu 20.04 LTS 5.4.0-117.132
- linux-aws Ubuntu 18.04 LTS 4.15.0-1128.137
- linux-aws Ubuntu 20.04 LTS 5.4.0-1078.84
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1078.84
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1026.29
- linux-iot Ubuntu 20.04 LTS 5.4.0-1004.6
- linux-kvm Ubuntu 18.04 LTS 4.15.0-1114.117
ubuntu advisories UBUNTU-CVE-2022-48931
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
- 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
- kernel-zfcpdump SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.80.2
suse advisories SUSE-SU-2024:3483-1SUSE-SU-2024:3408-1SUSE-SU-2024:3252-1SUSE-SU-2024:3251-1SUSE-SU-2024:3227-1SUSE-SU-2024:3209-1
- git.kernel.org/stable/c/40805099af11f68c5ca7dbcfacf455da8f99f622 commit
- git.kernel.org/stable/c/d1654de19d42f513b6cfe955cc77e7f427e05a77 commit
- git.kernel.org/stable/c/a37024f7757c25550accdebf49e497ad6ae239fe commit
- git.kernel.org/stable/c/b7e2b91fcb5c78c414e33dc8d50642e307ca0c5a commit
- git.kernel.org/stable/c/a7ab53d3c27dfe83bb594456b9f38a37796ec39b commit
- git.kernel.org/stable/c/e7a66dd2687758718eddd79b542a95cf3aa488cc commit
- git.kernel.org/stable/c/3aadfd46858b1f64d4d6a0654b863e21aabff975 commit
- git.kernel.org/stable/c/84ec758fb2daa236026506868c8796b0500c047d commit
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-48931 updated cvss 4.7
kernel: configfs: fix a race in configfs_{,un}register_subsystem()
-
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: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: workaround, no fix planned “Will not fix”
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.17% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
- Technology feeds
References
-
git.kernel.org
/stable/c/40805099af11f68c5ca7dbcfacf455da8f99f622
patch
-
git.kernel.org
/stable/c/d1654de19d42f513b6cfe955cc77e7f427e05a77
patch
-
git.kernel.org
/stable/c/a37024f7757c25550accdebf49e497ad6ae239fe
patch
-
git.kernel.org
/stable/c/b7e2b91fcb5c78c414e33dc8d50642e307ca0c5a
patch
-
git.kernel.org
/stable/c/a7ab53d3c27dfe83bb594456b9f38a37796ec39b
patch
-
git.kernel.org
/stable/c/e7a66dd2687758718eddd79b542a95cf3aa488cc
patch
-
git.kernel.org
/stable/c/3aadfd46858b1f64d4d6a0654b863e21aabff975
patch
-
git.kernel.org
/stable/c/84ec758fb2daa236026506868c8796b0500c047d
patch
Sources
- CVE List CVE-2022-48931
- NVD CVE-2022-48931
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.