CVE-2022-49685

iio: trigger: sysfs: fix use-after-free on remove

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 02:24 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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 ==================================================================

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.7 ≤ v < 4.14.2863.7 ≤ v < 4.19.2503.7 ≤ v < 4.9.3213.7 ≤ v < 5.10.1273.7 ≤ v < 5.15.513.7 ≤ v < 5.18.83.7 ≤ v < 5.193.7 ≤ v < 5.4.2024.10 ≤ v < 4.14.2864.15 ≤ v < 4.19.2504.20 ≤ v < 5.4.2025.11 ≤ v < 5.15.515.16 ≤ v < 5.18.85.5 ≤ v < 5.10.1275.19 rc15.19 rc25.19 rc3f38bc926d022ebd67baad6ac7fc22c95fbc6238c
Vendor states this is fixed in 31ff3309b47d98313c61b8301bf595820cc3cc33 (fixed)
Vendor states this is fixed in 4687c3f955240ca2a576bdc3f742d4d915b6272d (fixed)
Vendor states this is fixed in 4ef1e521be610b720daeb7cf899fedc7db0274c4 (fixed)
Vendor states this is fixed in 5e39397d60dacc7f5d81d442c1c958eaaaf31128 (fixed)
Vendor states this is fixed in 78601726d4a59a291acc5a52da1d3a0a6831e4e8 (fixed)
Vendor states this is fixed in b07a30a774b3c3e584a68dc91779c68ea2da4813 (fixed)
Vendor states this is fixed in d6111e7bdb8ec27eb43d01c4cd4ff1620a75f7f2 (fixed)
Vendor states this is fixed in fd5d8fb298a2866c337da635c79d63c3afabcaf7 (fixed)
Vendor states this is fixed in 3.7 (unaffected)
Vendor states this is fixed in 4.14.286 (unaffected)
Vendor states this is fixed in 4.19.250 (unaffected)
Vendor states this is fixed in 4.9.321 (unaffected)
Vendor states this is fixed in 5.10.127 (unaffected)
Vendor states this is fixed in 5.15.51 (unaffected)
Vendor states this is fixed in 5.18.8 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.202 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/31ff3309b47d98313c61b8301bf595820cc3cc33
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4687c3f955240ca2a576bdc3f742d4d915b6272d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4ef1e521be610b720daeb7cf899fedc7db0274c4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5e39397d60dacc7f5d81d442c1c958eaaaf31128
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/78601726d4a59a291acc5a52da1d3a0a6831e4e8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b07a30a774b3c3e584a68dc91779c68ea2da4813
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d6111e7bdb8ec27eb43d01c4cd4ff1620a75f7f2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fd5d8fb298a2866c337da635c79d63c3afabcaf7

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card