# CVE-2024-56588: scsi: hisi\_sas: Create all dump files during debugfs initialization

> 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-12-27T14:50:56.214Z
- **Modified:** 2026-11-05T21:17:35.930Z

## Who should check

- Anyone running Linux \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 76d5b00af5422b899b3c1761328dc933e17c1a66; \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 7c8c50c9855a9e1b0d1e3680e5ad839002a9deb5; \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 6c55f99123075e5429850b41b06f7dfffcb708eb; \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 9f564f15f88490b484e02442dc4c4b11640ea172
- Anyone running Linux 4.5

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: hisi\_sas: Create all dump files during debugfs initialization

For the current debugfs of hisi\_sas, after user triggers dump, the
driver allocate memory space to save the register information and create
debugfs files to display the saved information. In this process, the
debugfs files created after each dump.

Therefore, when the dump is triggered while the driver is unbind, the
following hang occurs:

\[67840.853907\] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000a0
\[67840.862947\] Mem abort info:
\[67840.865855\]   ESR = 0x0000000096000004
\[67840.869713\]   EC = 0x25: DABT (current EL), IL = 32 bits
\[67840.875125\]   SET = 0, FnV = 0
\[67840.878291\]   EA = 0, S1PTW = 0
\[67840.881545\]   FSC = 0x04: level 0 translation fault
\[67840.886528\] Data abort info:
\[67840.889524\]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
\[67840.895117\]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
\[67840.900284\]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
\[67840.905709\] user pgtable: 4k pages, 48-bit VAs, pgdp=0000002803a1f000
\[67840.912263\] \[00000000000000a0\] pgd=0000000000000000, p4d=0000000000000000
\[67840.919177\] Internal error: Oops: 0000000096000004 \[\#1\] PREEMPT SMP
\[67840.996435\] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[67841.003628\] pc : down\_write+0x30/0x98
\[67841.007546\] lr : start\_creating.part.0+0x60/0x198
\[67841.012495\] sp : ffff8000b979ba20
\[67841.016046\] x29: ffff8000b979ba20 x28: 0000000000000010 x27: 0000000000024b40
\[67841.023412\] x26: 0000000000000012 x25: ffff20202b355ae8 x24: ffff20202b35a8c8
\[67841.030779\] x23: ffffa36877928208 x22: ffffa368b4972240 x21: ffff8000b979bb18
\[67841.038147\] x20: ffff00281dc1e3c0 x19: fffffffffffffffe x18: 0000000000000020
\[67841.045515\] x17: 0000000000000000 x16: ffffa368b128a530 x15: ffffffffffffffff
\[67841.052888\] x14: ffff8000b979bc18 x13: ffffffffffffffff x12: ffff8000b979bb18
\[67841.060263\] x11: 0000000000000000 x10: 0000000000000000 x9 : ffffa368b1289b18
\[67841.067640\] x8 : 0000000000000012 x7 : 0000000000000000 x6 : 00000000000003a9
\[67841.075014\] x5 : 0000000000000000 x4 : ffff002818c5cb00 x3 : 0000000000000001
\[67841.082388\] x2 : 0000000000000000 x1 : ffff002818c5cb00 x0 : 00000000000000a0
\[67841.089759\] Call trace:
\[67841.092456\]  down\_write+0x30/0x98
\[67841.096017\]  start\_creating.part.0+0x60/0x198
\[67841.100613\]  debugfs\_create\_dir+0x48/0x1f8
\[67841.104950\]  debugfs\_create\_files\_v3\_hw+0x88/0x348 \[hisi\_sas\_v3\_hw\]
\[67841.111447\]  debugfs\_snapshot\_regs\_v3\_hw+0x708/0x798 \[hisi\_sas\_v3\_hw\]
\[67841.118111\]  debugfs\_trigger\_dump\_v3\_hw\_write+0x9c/0x120 \[hisi\_sas\_v3\_hw\]
\[67841.125115\]  full\_proxy\_write+0x68/0xc8
\[67841.129175\]  vfs\_write+0xd8/0x3f0
\[67841.132708\]  ksys\_write+0x70/0x108
\[67841.136317\]  \_\_arm64\_sys\_write+0x24/0x38
\[67841.140440\]  invoke\_syscall+0x50/0x128
\[67841.144385\]  el0\_svc\_common.constprop.0+0xc8/0xf0
\[67841.149273\]  do\_el0\_svc+0x24/0x38
\[67841.152773\]  el0\_svc+0x38/0xd8
\[67841.156009\]  el0t\_64\_sync\_handler+0xc0/0xc8
\[67841.160361\]  el0t\_64\_sync+0x1a4/0x1a8
\[67841.164189\] Code: b9000882 d2800002 d2800023 f9800011 (c85ffc05)
\[67841.170443\] ---\[ end trace 0000000000000000 \]---

To fix this issue, create all directories and files during debugfs
initialization. In this way, the driver only needs to allocate memory
space to save information each time the user triggers dumping.

## Affected and fixed versions

- Linux: \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 76d5b00af5422b899b3c1761328dc933e17c1a66; \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 7c8c50c9855a9e1b0d1e3680e5ad839002a9deb5; \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 6c55f99123075e5429850b41b06f7dfffcb708eb; \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 9f564f15f88490b484e02442dc4c4b11640ea172 (cvelist)
- Linux: 4.5 (cvelist)

## Mitigation

- Upgrade Linux to 9f564f15f88490b484e02442dc4c4b11640ea172 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-56588.md
Affected: Linux >= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, < 76d5b00af5422b899b3c1761328dc933e17c1a66; >= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, < 7c8c50c9855a9e1b0d1e3680e5ad839002a9deb5; >= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, < 6c55f99123075e5429850b41b06f7dfffcb708eb; >= 47caad1577cd7a39e2048c5…
Fixed in: Linux 76d5b00af5422b899b3c1761328dc933e17c1a66, Linux 7c8c50c9855a9e1b0d1e3680e5ad839002a9deb5, Linux 6c55f99123075e5429850b41b06f7dfffcb708eb, Linux 9f564f15f88490b484e02442dc4c4b11640ea172

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-2024-56588 being exploited?

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

### How serious is CVE-2024-56588?

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

### Which versions are affected by CVE-2024-56588?

Linux \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 76d5b00af5422b899b3c1761328dc933e17c1a66; \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 7c8c50c9855a9e1b0d1e3680e5ad839002a9deb5; \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 6c55f99123075e5429850b41b06f7dfffcb708eb; \>= 47caad1577cd7a39e2048c5e4edbce4b863dc12b, \< 9f564f15f88490b484e02442dc4c4b11640ea172; Linux 4.5.

### Is there a fix for CVE-2024-56588?

Yes. Fixed in Linux 76d5b00af5422b899b3c1761328dc933e17c1a66, Linux 7c8c50c9855a9e1b0d1e3680e5ad839002a9deb5, Linux 6c55f99123075e5429850b41b06f7dfffcb708eb, Linux 9f564f15f88490b484e02442dc4c4b11640ea172. Upgrade Linux to 9f564f15f88490b484e02442dc4c4b11640ea172 or later.

### How do I check if I'm affected by CVE-2024-56588?

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/6c55f99123075e5429850b41b06f7dfffcb708eb>
- patch: <https://git.kernel.org/stable/c/9f564f15f88490b484e02442dc4c4b11640ea172>
- other: <https://git.kernel.org/stable/c/76d5b00af5422b899b3c1761328dc933e17c1a66>
- other: <https://git.kernel.org/stable/c/7c8c50c9855a9e1b0d1e3680e5ad839002a9deb5>

## 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-2024-56588>

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