CVE-2023-53140
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
02/05/2025
Last modified:
05/05/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
scsi: core: Remove the /proc/scsi/${proc_name} directory earlier<br />
<br />
Remove the /proc/scsi/${proc_name} directory earlier to fix a race<br />
condition between unloading and reloading kernel modules. This fixes a bug<br />
introduced in 2009 by commit 77c019768f06 ("[SCSI] fix /proc memory leak in<br />
the SCSI core").<br />
<br />
Fix the following kernel warning:<br />
<br />
proc_dir_entry &#39;scsi/scsi_debug&#39; already registered<br />
WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 proc_register+0x27d/0x2e0<br />
Call Trace:<br />
proc_mkdir+0xb5/0xe0<br />
scsi_proc_hostdir_add+0xb5/0x170<br />
scsi_host_alloc+0x683/0x6c0<br />
sdebug_driver_probe+0x6b/0x2d0 [scsi_debug]<br />
really_probe+0x159/0x540<br />
__driver_probe_device+0xdc/0x230<br />
driver_probe_device+0x4f/0x120<br />
__device_attach_driver+0xef/0x180<br />
bus_for_each_drv+0xe5/0x130<br />
__device_attach+0x127/0x290<br />
device_initial_probe+0x17/0x20<br />
bus_probe_device+0x110/0x130<br />
device_add+0x673/0xc80<br />
device_register+0x1e/0x30<br />
sdebug_add_host_helper+0x1a7/0x3b0 [scsi_debug]<br />
scsi_debug_init+0x64f/0x1000 [scsi_debug]<br />
do_one_initcall+0xd7/0x470<br />
do_init_module+0xe7/0x330<br />
load_module+0x122a/0x12c0<br />
__do_sys_finit_module+0x124/0x1a0<br />
__x64_sys_finit_module+0x46/0x50<br />
do_syscall_64+0x38/0x80<br />
entry_SYSCALL_64_after_hwframe+0x46/0xb0
Impact
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/13daafe1e209b03e9bda16ff2bd2b2da145a139b
- https://git.kernel.org/stable/c/17e98a5ede81b7696bec421f7afa2dfe467f5e6b
- https://git.kernel.org/stable/c/1ec363599f8346d5a8d08c71a0d9860d6c420ec0
- https://git.kernel.org/stable/c/6b223e32d66ca9db1f252f433514783d8b22a8e1
- https://git.kernel.org/stable/c/891a3cba425cf483d96facca55aebd6ff1da4338
- https://git.kernel.org/stable/c/e471e928de97b00f297ad1015cc14f9459765713
- https://git.kernel.org/stable/c/fc663711b94468f4e1427ebe289c9f05669699c9