CVE-2022-49968
ieee802154/adf7242: defer destroy_workqueue call
Check your servers for CVE-2022-49968
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-49968 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
ieee802154/adf7242: defer destroy_workqueue call
There is a possible race condition (use-after-free) like below
(FREE) | (USE) adf7242_remove | adf7242_channel cancel_delayed_work_sync | destroy_workqueue (1) | adf7242_cmd_rx | mod_delayed_work (2) |
The root cause for this race is that the upper layer (ieee802154) is unaware of this detaching event and the function adf7242_channel can be called without any checks.
To fix this, we can add a flag write at the beginning of adf7242_remove and add flag check in adf7242_channel. Or we can just defer the destructive operation like other commit 3e0588c291d6 ("hamradio: defer ax25 kfree after unregister_netdev") which let the ieee802154_unregister_hw() to handle the synchronization. This patch takes the second option.
runs")
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.6% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 58e9683d14752debc6f22daf6b23e031787df31f, before dede80aaf01f4b6e8657d23726cb4a3da226ec4c affected from 58e9683d14752debc6f22daf6b23e031787df31f, before bed12d7531df1417fc92c691999ff95e03835008 affected from 58e9683d14752debc6f22daf6b23e031787df31f, before 23a29932715ca43bceb2eae1bdb770995afe7271 affected from 58e9683d14752debc6f22daf6b23e031787df31f, before 9f8558c5c642c62c450c98c99b7d18a709fff485 affected from 58e9683d14752debc6f22daf6b23e031787df31f, before 15f3b89bd521d5770d36a61fc04a77c293138ba6 affected from 58e9683d14752debc6f22daf6b23e031787df31f, before afe7116f6d3b888778ed6d95e3cf724767b9aedf affected a2363e2d88bf50022ee643c49ee5d4f7e8c915ea affected from 4.17.19, before 4.18
Other versions: unaffected
|
| Linux |
affected 4.18 unaffected before 4.18 unaffected from 4.19.258 up to and including 4.19.* unaffected from 5.4.213 up to and including 5.4.* unaffected from 5.10.142 up to and including 5.10.* unaffected from 5.15.66 up to and including 5.15.* unaffected from 5.19.8 up to and including 5.19.* unaffected 6.0 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-49968 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49968
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-49968
trivy image --scanners vuln IMAGE | grep CVE-2022-49968
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
- https://git.kernel.org/stable/c/dede80aaf01f4b6e8657d23726cb4a3da226ec4c git.kernel.org
- https://git.kernel.org/stable/c/bed12d7531df1417fc92c691999ff95e03835008 git.kernel.org
- https://git.kernel.org/stable/c/23a29932715ca43bceb2eae1bdb770995afe7271 git.kernel.org
- https://git.kernel.org/stable/c/9f8558c5c642c62c450c98c99b7d18a709fff485 git.kernel.org
- https://git.kernel.org/stable/c/15f3b89bd521d5770d36a61fc04a77c293138ba6 git.kernel.org
- https://git.kernel.org/stable/c/afe7116f6d3b888778ed6d95e3cf724767b9aedf git.kernel.org
Source: the record CVE-2022-49968 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse