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 irqworkrun_list Read of size 8 at addr 0000000064702248 by task python3/25
Call Trace: irqworkrunlist irqworktick updateprocesstimes tickschedhandle tickschedtimer _hrtimerrunqueues hrtimer_interrupt
Allocated by task 25: kmemcachealloctrace iiosysfstrigadd devattrstore sysfskfwrite kernfsfopwriteiter newsyncwrite vfswrite ksyswrite syswrite
Freed by task 25: kfree iiosysfstrigremove devattrstore sysfskfwrite kernfsfopwriteiter newsyncwrite vfswrite ksyswrite sys_write
==================================================================
[
    {
        "signature_version": "v1",
        "digest": {
            "length": 480.0,
            "function_hash": "87320638365717100660365417592049172344"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49685-08647633",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c",
            "function": "iio_sysfs_trigger_remove"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@78601726d4a59a291acc5a52da1d3a0a6831e4e8",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 480.0,
            "function_hash": "87320638365717100660365417592049172344"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49685-0a82fa2a",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c",
            "function": "iio_sysfs_trigger_remove"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b07a30a774b3c3e584a68dc91779c68ea2da4813",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "294060272218151955464275508190075368448",
                "86370321311678447523945802627979938792",
                "187209364541263014321257700554352688707",
                "174163103700078505978354041784270157031"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49685-18a76878",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4ef1e521be610b720daeb7cf899fedc7db0274c4",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "294060272218151955464275508190075368448",
                "86370321311678447523945802627979938792",
                "187209364541263014321257700554352688707",
                "174163103700078505978354041784270157031"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49685-2bcfe4bd",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5e39397d60dacc7f5d81d442c1c958eaaaf31128",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 480.0,
            "function_hash": "87320638365717100660365417592049172344"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49685-2d1da6e7",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c",
            "function": "iio_sysfs_trigger_remove"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d6111e7bdb8ec27eb43d01c4cd4ff1620a75f7f2",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "294060272218151955464275508190075368448",
                "86370321311678447523945802627979938792",
                "187209364541263014321257700554352688707",
                "174163103700078505978354041784270157031"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49685-51a93614",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4687c3f955240ca2a576bdc3f742d4d915b6272d",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "294060272218151955464275508190075368448",
                "86370321311678447523945802627979938792",
                "187209364541263014321257700554352688707",
                "174163103700078505978354041784270157031"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49685-589e090f",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@78601726d4a59a291acc5a52da1d3a0a6831e4e8",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 480.0,
            "function_hash": "87320638365717100660365417592049172344"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49685-7cf5507c",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c",
            "function": "iio_sysfs_trigger_remove"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4ef1e521be610b720daeb7cf899fedc7db0274c4",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "294060272218151955464275508190075368448",
                "86370321311678447523945802627979938792",
                "187209364541263014321257700554352688707",
                "174163103700078505978354041784270157031"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49685-815d3939",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31ff3309b47d98313c61b8301bf595820cc3cc33",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 480.0,
            "function_hash": "87320638365717100660365417592049172344"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49685-a17d7e9d",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c",
            "function": "iio_sysfs_trigger_remove"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31ff3309b47d98313c61b8301bf595820cc3cc33",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "294060272218151955464275508190075368448",
                "86370321311678447523945802627979938792",
                "187209364541263014321257700554352688707",
                "174163103700078505978354041784270157031"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49685-a852fc8b",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fd5d8fb298a2866c337da635c79d63c3afabcaf7",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 480.0,
            "function_hash": "87320638365717100660365417592049172344"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49685-afb0edec",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c",
            "function": "iio_sysfs_trigger_remove"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fd5d8fb298a2866c337da635c79d63c3afabcaf7",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "294060272218151955464275508190075368448",
                "86370321311678447523945802627979938792",
                "187209364541263014321257700554352688707",
                "174163103700078505978354041784270157031"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49685-de874a24",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d6111e7bdb8ec27eb43d01c4cd4ff1620a75f7f2",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 480.0,
            "function_hash": "87320638365717100660365417592049172344"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49685-e07d23dd",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c",
            "function": "iio_sysfs_trigger_remove"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4687c3f955240ca2a576bdc3f742d4d915b6272d",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "294060272218151955464275508190075368448",
                "86370321311678447523945802627979938792",
                "187209364541263014321257700554352688707",
                "174163103700078505978354041784270157031"
            ]
        },
        "signature_type": "Line",
        "id": "CVE-2022-49685-f6997904",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b07a30a774b3c3e584a68dc91779c68ea2da4813",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "digest": {
            "length": 480.0,
            "function_hash": "87320638365717100660365417592049172344"
        },
        "signature_type": "Function",
        "id": "CVE-2022-49685-f8672301",
        "target": {
            "file": "drivers/iio/trigger/iio-trig-sysfs.c",
            "function": "iio_sysfs_trigger_remove"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5e39397d60dacc7f5d81d442c1c958eaaaf31128",
        "deprecated": false
    }
]