CVE-2022-49685
iio: trigger: sysfs: fix use-after-free on remove
Check your servers for CVE-2022-49685
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-49685 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:
iio: trigger: sysfs: fix use-after-free on remove
Ensure that the irq_work has completed before the trigger is freed.
================================================================== BUG: KASAN: use-after-free in irq_work_run_list Read of size 8 at addr 0000000064702248 by task python3/25
Call Trace: irq_work_run_list irq_work_tick update_process_times tick_sched_handle tick_sched_timer __hrtimer_run_queues hrtimer_interrupt
Allocated by task 25: kmem_cache_alloc_trace iio_sysfs_trig_add dev_attr_store sysfs_kf_write kernfs_fop_write_iter new_sync_write vfs_write ksys_write sys_write
Freed by task 25: kfree iio_sysfs_trig_remove dev_attr_store sysfs_kf_write kernfs_fop_write_iter new_sync_write vfs_write ksys_write sys_write
==================================================================
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- 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.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 21.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 27 Feb 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-416 Use After Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f38bc926d022ebd67baad6ac7fc22c95fbc6238c, before d6111e7bdb8ec27eb43d01c4cd4ff1620a75f7f2 affected from f38bc926d022ebd67baad6ac7fc22c95fbc6238c, before fd5d8fb298a2866c337da635c79d63c3afabcaf7 affected from f38bc926d022ebd67baad6ac7fc22c95fbc6238c, before 31ff3309b47d98313c61b8301bf595820cc3cc33 affected from f38bc926d022ebd67baad6ac7fc22c95fbc6238c, before 5e39397d60dacc7f5d81d442c1c958eaaaf31128 affected from f38bc926d022ebd67baad6ac7fc22c95fbc6238c, before b07a30a774b3c3e584a68dc91779c68ea2da4813 affected from f38bc926d022ebd67baad6ac7fc22c95fbc6238c, before 4687c3f955240ca2a576bdc3f742d4d915b6272d affected from f38bc926d022ebd67baad6ac7fc22c95fbc6238c, before 4ef1e521be610b720daeb7cf899fedc7db0274c4 affected from f38bc926d022ebd67baad6ac7fc22c95fbc6238c, before 78601726d4a59a291acc5a52da1d3a0a6831e4e8
Other versions: unaffected
|
| Linux |
affected 3.7 unaffected before 3.7 unaffected from 4.9.321 up to and including 4.9.* unaffected from 4.14.286 up to and including 4.14.* unaffected from 4.19.250 up to and including 4.19.* unaffected from 5.4.202 up to and including 5.4.* unaffected from 5.10.127 up to and including 5.10.* unaffected from 5.15.51 up to and including 5.15.* unaffected from 5.18.8 up to and including 5.18.* unaffected 5.19 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-49685 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49685
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-49685
trivy image --scanners vuln IMAGE | grep CVE-2022-49685
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/d6111e7bdb8ec27eb43d01c4cd4ff1620a75f7f2 git.kernel.org
- https://git.kernel.org/stable/c/fd5d8fb298a2866c337da635c79d63c3afabcaf7 git.kernel.org
- https://git.kernel.org/stable/c/31ff3309b47d98313c61b8301bf595820cc3cc33 git.kernel.org
- https://git.kernel.org/stable/c/5e39397d60dacc7f5d81d442c1c958eaaaf31128 git.kernel.org
- https://git.kernel.org/stable/c/b07a30a774b3c3e584a68dc91779c68ea2da4813 git.kernel.org
- https://git.kernel.org/stable/c/4687c3f955240ca2a576bdc3f742d4d915b6272d git.kernel.org
- https://git.kernel.org/stable/c/4ef1e521be610b720daeb7cf899fedc7db0274c4 git.kernel.org
- https://git.kernel.org/stable/c/78601726d4a59a291acc5a52da1d3a0a6831e4e8 git.kernel.org
Source: the record CVE-2022-49685 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse