scsi: core: Fix unremoved procfs host directory regression
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 9 fixed, 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
Summary
In the Linux kernel, the following vulnerability has been resolved: scsi: core: Fix unremoved procfs host directory regression Commit fc663711b944 ("scsi: core: Remove the /proc/scsi/${proc_name} directory earlier") fixed a bug related to modules loading/unloading, by adding a call to scsi_proc_hostdir_rm() on scsi_remove_host(). But that led to a potential duplicate call to the hostdir_rm() routine, since it's also called from scsi_host_dev_release(). That triggered a regression report, which was then fixed by commit be03df3d4bfe ("scsi: core: Fix a procfs host directory removal regression"). The fix just dropped the hostdir_rm() call from dev_release(). But it happens that this proc directory is created on scsi_host_alloc(), and that function "pairs" with scsi_host_dev_release(), while scsi_remove_host() pairs with scsi_add_host(). In other words, it seems the reason for removing the proc directory on dev_release() was meant to cover cases in which a SCSI host structure was allocated, but the call to scsi_add_host() didn't happen. And that pattern happens to exist in some error paths, for example. Syzkaller causes that by using USB raw gadget device, error'ing on usb-storage driver, at usb_stor_probe2(). By checking that path, we can see that the BadDevice label leads to a scsi_host_put() after a SCSI host allocation, but there's no call to scsi_add_host() in such path. That leads to messages like this in dmesg (and a leak of the SCSI host proc structure): usb-storage 4-1:87.51: USB Mass Storage device detected proc_dir_entry 'scsi/usb-storage' already registered WARNING: CPU: 1 PID: 3519 at fs/proc/generic.c:377 proc_register+0x347/0x4e0 fs/proc/generic.c:376 The proper fix seems to still call scsi_proc_hostdir_rm() on dev_release(), but guard that with the state check for SHOST_CREATED; there is even a comment in scsi_host_dev_release() detailing that: such conditional is meant for cases where the SCSI host was allocated but there was no calls to {add,remove}_host(), like the usb-storage case. This is what we propose here and with that, the error path of usb-storage does not trigger the warning anymore.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.4.238 to before 5.4.274; 5.10.176 to before 5.10.215; 5.15.104 to before 5.15.154; 6.1.21 to before 6.1.84; 6.2.8 to before 6.3 | 5.4.274, 5.10.215, 5.15.154, 6.1.84, 6.3 | Patch available | CNA |
| Linux | Linux | 6.3 and later | 5.4.274, 5.10.215, 5.15.154, 6.1.84, 6.6.24, 6.7.12, 6.8.3, 6.9 | Patch available | CNA |
- Linux VendorLinux Affected 5.4.238 to before 5.4.274; 5.10.176 to before 5.10.215; 5.15.104 to before 5.15.154; 6.1.21 to before 6.1.84; 6.2.8 to before 6.3 Fixed in 5.4.274, 5.10.215, 5.15.154, 6.1.84, 6.3 Patch available CNA
- Linux VendorLinux Affected 6.3 and later Fixed in 5.4.274, 5.10.215, 5.15.154, 6.1.84, 6.6.24, 6.7.12, 6.8.3, 6.9 Patch available CNA
CPE configurations NVD · 9
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.4.238 to before 5.4.274; 5.10.176 to before 5.10.215; 5.15.104 to before 5.15.154; 6.1.21 to before 6.1.84; 6.2.8 to before 6.3; 6.3.1 to before 6.6.24; 6.7 to before 6.7.12; 6.8 to before 6.8.3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.3:-:*:*:*:*:*:* | 6.3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.3:rc3:*:*:*:*:*:* | 6.3 rc3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.3:rc4:*:*:*:*:*:* | 6.3 rc4 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.3:rc5:*:*:*:*:*:* | 6.3 rc5 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.3:rc6:*:*:*:*:*:* | 6.3 rc6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.3:rc7:*:*:*:*:*:* | 6.3 rc7 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* | 6.9 rc1 | Vulnerable | Linux |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 5.4.238 to before 5.4.274; 5.10.176 to before 5.10.215; 5.15.104 to before 5.15.154; 6.1.21 to before 6.1.84; 6.2.8 to before 6.3; 6.3.1 to before 6.6.24; 6.7 to before 6.7.12; 6.8 to before 6.8.3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.3:-:*:*:*:*:*:* Versions 6.3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.3:rc3:*:*:*:*:*:* Versions 6.3 rc3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.3:rc4:*:*:*:*:*:* Versions 6.3 rc4 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.3:rc5:*:*:*:*:*:* Versions 6.3 rc5 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.3:rc6:*:*:*:*:*:* Versions 6.3 rc6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.3:rc7:*:*:*:*:*:* Versions 6.3 rc7 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* Versions 6.9 rc1 Vulnerable ·Linux
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.4.274, 5.10.215, 5.15.154, 6.1.84, 6.3
- Fix · CNA Linux (Linux) Fixed in 5.4.274, 5.10.215, 5.15.154, 6.1.84, 6.6.24, 6.7.12, 6.8.3, 6.9
Red Hat 3 advisories
- RHSA-2025:1068 Released 2025-02-05 · Red Hat rating Moderatekernel security update
- Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-553.37.1.el8_10, kernel-4.18.0-553.37.1.el8_10, kernel-abi-stablelists-4.18.0-553.37.1.el8_10 +19
- Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-553.37.1.el8_10
- RHSA-2025:1067 Released 2025-02-05 · Red Hat rating Moderatekernel-rt security update
- Red Hat Enterprise Linux NFV (v. 8) kernel-rt-4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-core-4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-debug-4.18.0-553.37.1.rt7.378.el8_10 +9
- Red Hat Enterprise Linux RT (v. 8) kernel-rt-4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-core-4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-debug-4.18.0-553.37.1.rt7.378.el8_10 +7
- RHSA-2024:8617 Released 2024-10-30 · Red Hat rating Moderatekernel security update
- Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-427.42.1.el9_4, kernel-64k-debug-devel-matched-5.14.0-427.42.1.el9_4, kernel-64k-devel-5.14.0-427.42.1.el9_4 +11
- Red Hat Enterprise Linux BaseOS (v. 9) bpftool-7.3.0-427.42.1.el9_4, kernel-5.14.0-427.42.1.el9_4, kernel-64k-5.14.0-427.42.1.el9_4 +29
- Red Hat Enterprise Linux CRB (v. 9) kernel-tools-libs-devel-5.14.0-427.42.1.el9_4, libperf-5.14.0-427.42.1.el9_4
- Red Hat Enterprise Linux NFV (v. 9) kernel-rt-5.14.0-427.42.1.el9_4, kernel-rt-core-5.14.0-427.42.1.el9_4, kernel-rt-debug-5.14.0-427.42.1.el9_4 +11
- Red Hat Enterprise Linux RT (v. 9) kernel-rt-5.14.0-427.42.1.el9_4, kernel-rt-core-5.14.0-427.42.1.el9_4, kernel-rt-debug-5.14.0-427.42.1.el9_4 +9
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:8617 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2025:1068 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2024:8617 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2025:1068 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2024:8617 |
| Red Hat Enterprise Linux NFV (v. 8) | Fixed | RHSA-2025:1067 |
| Red Hat Enterprise Linux NFV (v. 9) | Fixed | RHSA-2024:8617 |
| Red Hat Enterprise Linux RT (v. 8) | Fixed | RHSA-2025:1067 |
| Red Hat Enterprise Linux RT (v. 9) | Fixed | RHSA-2024:8617 |
Not affected: 1 product
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2024-26935
- 2026-10-03 Alias added: GHSA-hxgr-6xc2-q9mv
References
Patch 8
- https://git.kernel.org/stable/c/0053f15d50d50c9312d8ab9c11e2e405812dfcac
- https://git.kernel.org/stable/c/5c2386ba80e779a92ec3bb64ccadbedd88f779b1
- https://git.kernel.org/stable/c/cea234bb214b17d004dfdccce4491e6ff57c96ee
- https://git.kernel.org/stable/c/3678cf67ff7136db1dd3bf63c361650db5d92889
- https://git.kernel.org/stable/c/d4c34782b6d7b1e68d18d9549451b19433bd4c6c
- https://git.kernel.org/stable/c/e293c773c13b830cdc251f155df2254981abc320
- https://git.kernel.org/stable/c/f4ff08fab66eb5c0b97e1a24edac052fb40bf5d7
- https://git.kernel.org/stable/c/f23a4d6e07570826fe95023ca1aa96a011fa9f84
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2024-26935 · CVE Program
- CVE-2024-26935 · NVD
- FIRST EPSS
- GHSA-hxgr-6xc2-q9mv · GitHub Advisory Database · CC BY 4.0
- CVE-2024-26935 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences