# CVE-2023-53140: scsi: core: Remove the /proc/scsi/${proc\_name} directory earlier

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-05-02T15:56:11.666Z
- **Modified:** 2026-06-17T06:44:22.290Z

## Who should check

- Anyone running Linux \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 13daafe1e209b03e9bda16ff2bd2b2da145a139b; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 891a3cba425cf483d96facca55aebd6ff1da4338; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 6b223e32d66ca9db1f252f433514783d8b22a8e1; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< e471e928de97b00f297ad1015cc14f9459765713; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 17e98a5ede81b7696bec421f7afa2dfe467f5e6b; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 1ec363599f8346d5a8d08c71a0d9860d6c420ec0; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< fc663711b94468f4e1427ebe289c9f05669699c9
- Anyone running Linux 2.6.30

## Description

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:

proc\_dir\_entry 'scsi/scsi\_debug' already registered
WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 proc\_register+0x27d/0x2e0
Call Trace:
 proc\_mkdir+0xb5/0xe0
 scsi\_proc\_hostdir\_add+0xb5/0x170
 scsi\_host\_alloc+0x683/0x6c0
 sdebug\_driver\_probe+0x6b/0x2d0 \[scsi\_debug\]
 really\_probe+0x159/0x540
 \_\_driver\_probe\_device+0xdc/0x230
 driver\_probe\_device+0x4f/0x120
 \_\_device\_attach\_driver+0xef/0x180
 bus\_for\_each\_drv+0xe5/0x130
 \_\_device\_attach+0x127/0x290
 device\_initial\_probe+0x17/0x20
 bus\_probe\_device+0x110/0x130
 device\_add+0x673/0xc80
 device\_register+0x1e/0x30
 sdebug\_add\_host\_helper+0x1a7/0x3b0 \[scsi\_debug\]
 scsi\_debug\_init+0x64f/0x1000 \[scsi\_debug\]
 do\_one\_initcall+0xd7/0x470
 do\_init\_module+0xe7/0x330
 load\_module+0x122a/0x12c0
 \_\_do\_sys\_finit\_module+0x124/0x1a0
 \_\_x64\_sys\_finit\_module+0x46/0x50
 do\_syscall\_64+0x38/0x80
 entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0

## Affected and fixed versions

- Linux: \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 13daafe1e209b03e9bda16ff2bd2b2da145a139b; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 891a3cba425cf483d96facca55aebd6ff1da4338; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 6b223e32d66ca9db1f252f433514783d8b22a8e1; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< e471e928de97b00f297ad1015cc14f9459765713; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 17e98a5ede81b7696bec421f7afa2dfe467f5e6b; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 1ec363599f8346d5a8d08c71a0d9860d6c420ec0; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< fc663711b94468f4e1427ebe289c9f05669699c9 (cvelist)
- Linux: 2.6.30 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53140. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53140.md
Affected: Linux >= 77c019768f0607c36e25bec11ce3e1eabef09277, < 13daafe1e209b03e9bda16ff2bd2b2da145a139b; >= 77c019768f0607c36e25bec11ce3e1eabef09277, < 891a3cba425cf483d96facca55aebd6ff1da4338; >= 77c019768f0607c36e25bec11ce3e1eabef09277, < 6b223e32d66ca9db1f252f433514783d8b22a8e1; >= 77c019768f0607c36e25bec…
Fixed in: Linux 13daafe1e209b03e9bda16ff2bd2b2da145a139b, Linux 891a3cba425cf483d96facca55aebd6ff1da4338, Linux 6b223e32d66ca9db1f252f433514783d8b22a8e1, Linux 17e98a5ede81b7696bec421f7afa2dfe467f5e6b, Linux 1ec363599f8346d5a8d08c71a0d9860d6c420ec0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53140 being exploited?

There is no confirmed exploitation: CVE-2023-53140 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53140?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53140?

Linux \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 13daafe1e209b03e9bda16ff2bd2b2da145a139b; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 891a3cba425cf483d96facca55aebd6ff1da4338; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 6b223e32d66ca9db1f252f433514783d8b22a8e1; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< e471e928de97b00f297ad1015cc14f9459765713; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 17e98a5ede81b7696bec421f7afa2dfe467f5e6b; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< 1ec363599f8346d5a8d08c71a0d9860d6c420ec0; \>= 77c019768f0607c36e25bec11ce3e1eabef09277, \< fc663711b94468f4e1427ebe289c9f05669699c9; Linux 2.6.30.

### Is there a fix for CVE-2023-53140?

Yes. Fixed in Linux 13daafe1e209b03e9bda16ff2bd2b2da145a139b, Linux 891a3cba425cf483d96facca55aebd6ff1da4338, Linux 6b223e32d66ca9db1f252f433514783d8b22a8e1, Linux 17e98a5ede81b7696bec421f7afa2dfe467f5e6b, Linux 1ec363599f8346d5a8d08c71a0d9860d6c420ec0. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53140?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/13daafe1e209b03e9bda16ff2bd2b2da145a139b>
- patch: <https://git.kernel.org/stable/c/891a3cba425cf483d96facca55aebd6ff1da4338>
- patch: <https://git.kernel.org/stable/c/6b223e32d66ca9db1f252f433514783d8b22a8e1>
- patch: <https://git.kernel.org/stable/c/e471e928de97b00f297ad1015cc14f9459765713>
- patch: <https://git.kernel.org/stable/c/17e98a5ede81b7696bec421f7afa2dfe467f5e6b>
- patch: <https://git.kernel.org/stable/c/1ec363599f8346d5a8d08c71a0d9860d6c420ec0>
- patch: <https://git.kernel.org/stable/c/fc663711b94468f4e1427ebe289c9f05669699c9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53140>

HTML: <https://flawdb.com/CVE-2023-53140> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53140>
