CVE-2022-48931

configfs: fix a race in configfs_{,un}register_subsystem()

No CVSS score yet EPSS 0.17%

Published 22 Aug 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-48931

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-48931 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.19% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7063fbf2261194f72ee75afca67b3b38b554b5fa, before 40805099af11f68c5ca7dbcfacf455da8f99f622
affected from 7063fbf2261194f72ee75afca67b3b38b554b5fa, before d1654de19d42f513b6cfe955cc77e7f427e05a77
affected from 7063fbf2261194f72ee75afca67b3b38b554b5fa, before a37024f7757c25550accdebf49e497ad6ae239fe
affected from 7063fbf2261194f72ee75afca67b3b38b554b5fa, before b7e2b91fcb5c78c414e33dc8d50642e307ca0c5a
affected from 7063fbf2261194f72ee75afca67b3b38b554b5fa, before a7ab53d3c27dfe83bb594456b9f38a37796ec39b
affected from 7063fbf2261194f72ee75afca67b3b38b554b5fa, before e7a66dd2687758718eddd79b542a95cf3aa488cc
affected from 7063fbf2261194f72ee75afca67b3b38b554b5fa, before 3aadfd46858b1f64d4d6a0654b863e21aabff975
affected from 7063fbf2261194f72ee75afca67b3b38b554b5fa, before 84ec758fb2daa236026506868c8796b0500c047d
Other versions: unaffected
Linux
affected 2.6.16
unaffected before 2.6.16
unaffected from 4.9.304 up to and including 4.9.*
unaffected from 4.14.269 up to and including 4.14.*
unaffected from 4.19.232 up to and including 4.19.*
unaffected from 5.4.182 up to and including 5.4.*
unaffected from 5.10.103 up to and including 5.10.*
unaffected from 5.15.26 up to and including 5.15.*
unaffected from 5.16.12 up to and including 5.16.*
unaffected 5.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-48931 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-48931

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-48931
trivy image --scanners vuln IMAGE | grep CVE-2022-48931

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-48931 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.