In the Linux kernel, the following vulnerability has been resolved:
media: cx25821: Fix the warning when removing the module
When removing the module, we will get the following warning:
[ 14.746697] removeprocentry: removing non-empty directory 'irq/21', leaking at least 'cx25821[1]' [ 14.747449] WARNING: CPU: 4 PID: 368 at fs/proc/generic.c:717 removeprocentry+0x389/0x3f0 [ 14.751611] RIP: 0010:removeprocentry+0x389/0x3f0 [ 14.759589] Call Trace: [ 14.759792] <TASK> [ 14.759975] unregisterirqproc+0x14c/0x170 [ 14.760340] irqfreedescs+0x94/0xe0 [ 14.760640] mpunmapirq+0xb6/0x100 [ 14.760937] acpiunregistergsiioapic+0x27/0x40 [ 14.761334] acpipciirqdisable+0x1d3/0x320 [ 14.761688] pcidisabledevice+0x1ad/0x380 [ 14.762027] ? rawspinunlockirqrestore+0x2d/0x60 [ 14.762442] ? cx25821shutdown+0x20/0x9f0 [cx25821] [ 14.762848] cx25821finidev+0x48/0xc0 [cx25821] [ 14.763242] pcideviceremove+0x92/0x240
Fix this by freeing the irq before call pcidisabledevice().
[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3f94169affa33c9db4a439d88f09cb2ed3a33332",
        "id": "CVE-2022-49525-1560b792",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "cx25821_finidev",
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "length": 262.0,
            "function_hash": "213692881148422968444853429640832601980"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2203436a4d24302871617373a7eb21bc17e38762",
        "id": "CVE-2022-49525-1b6b63d1",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "cx25821_finidev",
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "length": 262.0,
            "function_hash": "213692881148422968444853429640832601980"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5beb85ff7d005ddb7bf604a4f2dc76f01b84b318",
        "id": "CVE-2022-49525-203749b7",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "cx25821_finidev",
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "length": 262.0,
            "function_hash": "213692881148422968444853429640832601980"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4d6295b6d986476232332fffd08575b185f90d81",
        "id": "CVE-2022-49525-288d4952",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "cx25821_finidev",
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "length": 262.0,
            "function_hash": "213692881148422968444853429640832601980"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@258639bc55a586ee6df92d89786ccf1c71546d70",
        "id": "CVE-2022-49525-2b09de15",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "cx25821_finidev",
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "length": 262.0,
            "function_hash": "213692881148422968444853429640832601980"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@258639bc55a586ee6df92d89786ccf1c71546d70",
        "id": "CVE-2022-49525-3486f5da",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "131061517403976146318861474874161417307",
                "110020013222187011113053741601864277451",
                "53331359109488786572568627160875906586",
                "3179215023893181086496153172747838537",
                "333936758773572765568177753505337086350",
                "57342072364364906050195654933326457560"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@005fd553f5f10fe8618d92f94ad10f9051eac331",
        "id": "CVE-2022-49525-69c9da72",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "131061517403976146318861474874161417307",
                "110020013222187011113053741601864277451",
                "53331359109488786572568627160875906586",
                "3179215023893181086496153172747838537",
                "333936758773572765568177753505337086350",
                "57342072364364906050195654933326457560"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3f94169affa33c9db4a439d88f09cb2ed3a33332",
        "id": "CVE-2022-49525-8752826b",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "131061517403976146318861474874161417307",
                "110020013222187011113053741601864277451",
                "53331359109488786572568627160875906586",
                "3179215023893181086496153172747838537",
                "333936758773572765568177753505337086350",
                "57342072364364906050195654933326457560"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1f0fc1dfb5fdd456657519a97fab83691b96c6a0",
        "id": "CVE-2022-49525-8ab3b082",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "cx25821_finidev",
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "length": 262.0,
            "function_hash": "213692881148422968444853429640832601980"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9d92291698e5cc35a2b8a1106a01ddd7d60ade2d",
        "id": "CVE-2022-49525-958f9a4d",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "cx25821_finidev",
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "length": 262.0,
            "function_hash": "213692881148422968444853429640832601980"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@005fd553f5f10fe8618d92f94ad10f9051eac331",
        "id": "CVE-2022-49525-a62faf08",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "cx25821_finidev",
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "length": 262.0,
            "function_hash": "213692881148422968444853429640832601980"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4d6295b6d986476232332fffd08575b185f90d81",
        "id": "CVE-2022-49525-a98fdc77",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "131061517403976146318861474874161417307",
                "110020013222187011113053741601864277451",
                "53331359109488786572568627160875906586",
                "3179215023893181086496153172747838537",
                "333936758773572765568177753505337086350",
                "57342072364364906050195654933326457560"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1f0fc1dfb5fdd456657519a97fab83691b96c6a0",
        "id": "CVE-2022-49525-c86ff6b0",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "131061517403976146318861474874161417307",
                "110020013222187011113053741601864277451",
                "53331359109488786572568627160875906586",
                "3179215023893181086496153172747838537",
                "333936758773572765568177753505337086350",
                "57342072364364906050195654933326457560"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@222292930c8ecc3516e03ec1f9fa8448be7ff496",
        "id": "CVE-2022-49525-d1f3ce33",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "131061517403976146318861474874161417307",
                "110020013222187011113053741601864277451",
                "53331359109488786572568627160875906586",
                "3179215023893181086496153172747838537",
                "333936758773572765568177753505337086350",
                "57342072364364906050195654933326457560"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9d92291698e5cc35a2b8a1106a01ddd7d60ade2d",
        "id": "CVE-2022-49525-d91a7644",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "131061517403976146318861474874161417307",
                "110020013222187011113053741601864277451",
                "53331359109488786572568627160875906586",
                "3179215023893181086496153172747838537",
                "333936758773572765568177753505337086350",
                "57342072364364906050195654933326457560"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2203436a4d24302871617373a7eb21bc17e38762",
        "id": "CVE-2022-49525-f92d2a5e",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "131061517403976146318861474874161417307",
                "110020013222187011113053741601864277451",
                "53331359109488786572568627160875906586",
                "3179215023893181086496153172747838537",
                "333936758773572765568177753505337086350",
                "57342072364364906050195654933326457560"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@222292930c8ecc3516e03ec1f9fa8448be7ff496",
        "id": "CVE-2022-49525-fb55bbcd",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "cx25821_finidev",
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "length": 262.0,
            "function_hash": "213692881148422968444853429640832601980"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5beb85ff7d005ddb7bf604a4f2dc76f01b84b318",
        "id": "CVE-2022-49525-ff4c8104",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/media/pci/cx25821/cx25821-core.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "131061517403976146318861474874161417307",
                "110020013222187011113053741601864277451",
                "53331359109488786572568627160875906586",
                "3179215023893181086496153172747838537",
                "333936758773572765568177753505337086350",
                "57342072364364906050195654933326457560"
            ]
        },
        "signature_type": "Line"
    }
]