In the Linux kernel, the following vulnerability has been resolved:
scsi: core: Remove the /proc/scsi/${proc_name} directory earlier
Remove the /proc/scsi/${proc_name} directory earlier to fix a race condition between unloading and reloading kernel modules. This fixes a bug introduced in 2009 by commit 77c019768f06 ("[SCSI] fix /proc memory leak in the SCSI core").
Fix the following kernel warning:
procdirentry 'scsi/scsidebug' already registered WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 procregister+0x27d/0x2e0 Call Trace: procmkdir+0xb5/0xe0 scsiprochostdiradd+0xb5/0x170 scsihostalloc+0x683/0x6c0 sdebugdriverprobe+0x6b/0x2d0 [scsidebug] reallyprobe+0x159/0x540 _driverprobedevice+0xdc/0x230 driverprobedevice+0x4f/0x120 _deviceattachdriver+0xef/0x180 busforeachdrv+0xe5/0x130 _deviceattach+0x127/0x290 deviceinitialprobe+0x17/0x20 busprobedevice+0x110/0x130 deviceadd+0x673/0xc80 deviceregister+0x1e/0x30 sdebugaddhosthelper+0x1a7/0x3b0 [scsidebug] scsidebuginit+0x64f/0x1000 [scsidebug] dooneinitcall+0xd7/0x470 doinitmodule+0xe7/0x330 loadmodule+0x122a/0x12c0 _dosysfinitmodule+0x124/0x1a0 _x64sysfinitmodule+0x46/0x50 dosyscall64+0x38/0x80 entrySYSCALL64after_hwframe+0x46/0xb0
[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e471e928de97b00f297ad1015cc14f9459765713",
        "target": {
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-16de50ce",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "41193043940867553646790247286571826302",
                "178065091733282243822097751215703657562",
                "228620702036110203908381129202459553768",
                "235090258101293141592827605720671752226",
                "142008957320214615395788529129557706143",
                "126384955495000840497874751003620337359",
                "264048455571963537622865175278966257201"
            ]
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fc663711b94468f4e1427ebe289c9f05669699c9",
        "target": {
            "function": "scsi_remove_host",
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-247a2e9f",
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "length": 876.0,
            "function_hash": "278660402376450665407026418697013848578"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e471e928de97b00f297ad1015cc14f9459765713",
        "target": {
            "function": "scsi_remove_host",
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-2efd0e60",
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "length": 777.0,
            "function_hash": "178641673455781937467231488674050179058"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@17e98a5ede81b7696bec421f7afa2dfe467f5e6b",
        "target": {
            "function": "scsi_remove_host",
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-59a57e34",
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "length": 876.0,
            "function_hash": "278660402376450665407026418697013848578"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6b223e32d66ca9db1f252f433514783d8b22a8e1",
        "target": {
            "function": "scsi_remove_host",
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-5aa2f78e",
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "length": 777.0,
            "function_hash": "178641673455781937467231488674050179058"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@17e98a5ede81b7696bec421f7afa2dfe467f5e6b",
        "target": {
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-6662b80d",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "41193043940867553646790247286571826302",
                "7213454390520616279726368658767371026",
                "52845383725517406360856837893178747084",
                "206273890539482327811423490920349258154",
                "142008957320214615395788529129557706143",
                "126384955495000840497874751003620337359",
                "264048455571963537622865175278966257201"
            ]
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6b223e32d66ca9db1f252f433514783d8b22a8e1",
        "target": {
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-79bc4573",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "41193043940867553646790247286571826302",
                "178065091733282243822097751215703657562",
                "228620702036110203908381129202459553768",
                "235090258101293141592827605720671752226",
                "142008957320214615395788529129557706143",
                "126384955495000840497874751003620337359",
                "264048455571963537622865175278966257201"
            ]
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@13daafe1e209b03e9bda16ff2bd2b2da145a139b",
        "target": {
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-7b69f5c8",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "41193043940867553646790247286571826302",
                "178065091733282243822097751215703657562",
                "228620702036110203908381129202459553768",
                "235090258101293141592827605720671752226",
                "142008957320214615395788529129557706143",
                "126384955495000840497874751003620337359",
                "264048455571963537622865175278966257201"
            ]
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@13daafe1e209b03e9bda16ff2bd2b2da145a139b",
        "target": {
            "function": "scsi_remove_host",
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-9b3ac624",
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "length": 777.0,
            "function_hash": "178641673455781937467231488674050179058"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1ec363599f8346d5a8d08c71a0d9860d6c420ec0",
        "target": {
            "function": "scsi_remove_host",
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-a0d3c671",
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "length": 876.0,
            "function_hash": "278660402376450665407026418697013848578"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@891a3cba425cf483d96facca55aebd6ff1da4338",
        "target": {
            "function": "scsi_remove_host",
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-c14e873e",
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "length": 777.0,
            "function_hash": "178641673455781937467231488674050179058"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1ec363599f8346d5a8d08c71a0d9860d6c420ec0",
        "target": {
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-c2f433d5",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "41193043940867553646790247286571826302",
                "7213454390520616279726368658767371026",
                "52845383725517406360856837893178747084",
                "206273890539482327811423490920349258154",
                "142008957320214615395788529129557706143",
                "126384955495000840497874751003620337359",
                "264048455571963537622865175278966257201"
            ]
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@891a3cba425cf483d96facca55aebd6ff1da4338",
        "target": {
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-f8cb9171",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "41193043940867553646790247286571826302",
                "178065091733282243822097751215703657562",
                "228620702036110203908381129202459553768",
                "235090258101293141592827605720671752226",
                "142008957320214615395788529129557706143",
                "126384955495000840497874751003620337359",
                "264048455571963537622865175278966257201"
            ]
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fc663711b94468f4e1427ebe289c9f05669699c9",
        "target": {
            "file": "drivers/scsi/hosts.c"
        },
        "deprecated": false,
        "id": "CVE-2023-53140-f9e27783",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "41193043940867553646790247286571826302",
                "7213454390520616279726368658767371026",
                "52845383725517406360856837893178747084",
                "206273890539482327811423490920349258154",
                "142008957320214615395788529129557706143",
                "126384955495000840497874751003620337359",
                "264048455571963537622865175278966257201"
            ]
        }
    }
]