# CVE-2024-47735: RDMA/hns: Fix spin\_unlock\_irqrestore() called with IRQs enabled

> 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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-10-21T12:14:05.876Z
- **Modified:** 2026-10-15T01:18:57.483Z

## Who should check

- Anyone running Linux \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 07f0f643d7e570dbe8ef6f5c3367a43e3086a335; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 29c0f546d3fd66238b42cf25bcd5f193bb1cf794; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 425589d4af09c49574bd71ac31f811362a5126c3; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 094a1821903f33fb91de4b71087773ee16aeb3a0; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 2656336a84fcb6802f6e6c233f4661891deea24f; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< a1a3403bb1826c8ec787f0d60c3e7b54f419129e; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 74d315b5af180220d561684d15897730135733a6
- Anyone running Linux 4.9

## Description

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

RDMA/hns: Fix spin\_unlock\_irqrestore() called with IRQs enabled

Fix missuse of spin\_lock\_irq()/spin\_unlock\_irq() when
spin\_lock\_irqsave()/spin\_lock\_irqrestore() was hold.

This was discovered through the lock debugging, and the corresponding
log is as follows:

raw\_local\_irq\_restore() called with IRQs enabled
WARNING: CPU: 96 PID: 2074 at kernel/locking/irqflag-debug.c:10 warn\_bogus\_irq\_restore+0x30/0x40
...
Call trace:
 warn\_bogus\_irq\_restore+0x30/0x40
 \_raw\_spin\_unlock\_irqrestore+0x84/0xc8
 add\_qp\_to\_list+0x11c/0x148 \[hns\_roce\_hw\_v2\]
 hns\_roce\_create\_qp\_common.constprop.0+0x240/0x780 \[hns\_roce\_hw\_v2\]
 hns\_roce\_create\_qp+0x98/0x160 \[hns\_roce\_hw\_v2\]
 create\_qp+0x138/0x258
 ib\_create\_qp\_kernel+0x50/0xe8
 create\_mad\_qp+0xa8/0x128
 ib\_mad\_port\_open+0x218/0x448
 ib\_mad\_init\_device+0x70/0x1f8
 add\_client\_context+0xfc/0x220
 enable\_device\_and\_get+0xd0/0x140
 ib\_register\_device.part.0+0xf4/0x1c8
 ib\_register\_device+0x34/0x50
 hns\_roce\_register\_device+0x174/0x3d0 \[hns\_roce\_hw\_v2\]
 hns\_roce\_init+0xfc/0x2c0 \[hns\_roce\_hw\_v2\]
 \_\_hns\_roce\_hw\_v2\_init\_instance+0x7c/0x1d0 \[hns\_roce\_hw\_v2\]
 hns\_roce\_hw\_v2\_init\_instance+0x9c/0x180 \[hns\_roce\_hw\_v2\]

## Affected and fixed versions

- Linux: \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 07f0f643d7e570dbe8ef6f5c3367a43e3086a335; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 29c0f546d3fd66238b42cf25bcd5f193bb1cf794; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 425589d4af09c49574bd71ac31f811362a5126c3; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 094a1821903f33fb91de4b71087773ee16aeb3a0; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 2656336a84fcb6802f6e6c233f4661891deea24f; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< a1a3403bb1826c8ec787f0d60c3e7b54f419129e; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 74d315b5af180220d561684d15897730135733a6 (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- Upgrade Linux to 74d315b5af180220d561684d15897730135733a6 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-47735. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-47735.md
Affected: Linux >= 9a4435375cd151e07c0c38fa601b00115986091b, < 07f0f643d7e570dbe8ef6f5c3367a43e3086a335; >= 9a4435375cd151e07c0c38fa601b00115986091b, < 29c0f546d3fd66238b42cf25bcd5f193bb1cf794; >= 9a4435375cd151e07c0c38fa601b00115986091b, < 425589d4af09c49574bd71ac31f811362a5126c3; >= 9a4435375cd151e07c0c38f…
Fixed in: Linux 07f0f643d7e570dbe8ef6f5c3367a43e3086a335, Linux 29c0f546d3fd66238b42cf25bcd5f193bb1cf794, Linux 425589d4af09c49574bd71ac31f811362a5126c3, Linux 094a1821903f33fb91de4b71087773ee16aeb3a0, Linux 2656336a84fcb6802f6e6c233f4661891deea24f, Linux 74d315b5af180220d561684d15897730135733a6

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-47735 being exploited?

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

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

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

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

Linux \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 07f0f643d7e570dbe8ef6f5c3367a43e3086a335; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 29c0f546d3fd66238b42cf25bcd5f193bb1cf794; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 425589d4af09c49574bd71ac31f811362a5126c3; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 094a1821903f33fb91de4b71087773ee16aeb3a0; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 2656336a84fcb6802f6e6c233f4661891deea24f; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< a1a3403bb1826c8ec787f0d60c3e7b54f419129e; \>= 9a4435375cd151e07c0c38fa601b00115986091b, \< 74d315b5af180220d561684d15897730135733a6; Linux 4.9.

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

Yes. Fixed in Linux 07f0f643d7e570dbe8ef6f5c3367a43e3086a335, Linux 29c0f546d3fd66238b42cf25bcd5f193bb1cf794, Linux 425589d4af09c49574bd71ac31f811362a5126c3, Linux 094a1821903f33fb91de4b71087773ee16aeb3a0, Linux 2656336a84fcb6802f6e6c233f4661891deea24f, Linux 74d315b5af180220d561684d15897730135733a6. Upgrade Linux to 74d315b5af180220d561684d15897730135733a6 or later.

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

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/07f0f643d7e570dbe8ef6f5c3367a43e3086a335>
- patch: <https://git.kernel.org/stable/c/29c0f546d3fd66238b42cf25bcd5f193bb1cf794>
- patch: <https://git.kernel.org/stable/c/425589d4af09c49574bd71ac31f811362a5126c3>
- patch: <https://git.kernel.org/stable/c/094a1821903f33fb91de4b71087773ee16aeb3a0>
- patch: <https://git.kernel.org/stable/c/2656336a84fcb6802f6e6c233f4661891deea24f>
- patch: <https://git.kernel.org/stable/c/a1a3403bb1826c8ec787f0d60c3e7b54f419129e>
- patch: <https://git.kernel.org/stable/c/74d315b5af180220d561684d15897730135733a6>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## 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-47735>

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