# CVE-2024-50095: RDMA/mad: Improve handling of timed out WRs of mad agent

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.97% (percentile 61, 2026-11-26)
- **Published:** 2024-11-05T17:04:58.042Z
- **Modified:** 2026-10-15T01:19:07.067Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 713adaf0ecfc49405f6e5d9e409d984f628de818; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7022a517bf1ca37ef5a474365bcc5eafd345a13a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e80eadb3604a92d2d086e956b8b2692b699d4d0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a195a42dd25ca4f12489687065d00be64939409f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3e799fa463508abe7a738ce5d0f62a8dfd05262a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2a777679b8ccd09a9a65ea0716ef10365179caac
- Anyone running Linux 2.6.12

## Description

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

RDMA/mad: Improve handling of timed out WRs of mad agent

Current timeout handler of mad agent acquires/releases mad\_agent\_priv
lock for every timed out WRs. This causes heavy locking contention
when higher no. of WRs are to be handled inside timeout handler.

This leads to softlockup with below trace in some use cases where
rdma-cm path is used to establish connection between peer nodes

Trace:
-----
 BUG: soft lockup - CPU\#4 stuck for 26s! \[kworker/u128:3:19767\]
 CPU: 4 PID: 19767 Comm: kworker/u128:3 Kdump: loaded Tainted: G OE
     -------  ---  5.14.0-427.13.1.el9\_4.x86\_64 \#1
 Hardware name: Dell Inc. PowerEdge R740/01YM03, BIOS 2.4.8 11/26/2019
 Workqueue: ib\_mad1 timeout\_sends \[ib\_core\]
 RIP: 0010:\_\_do\_softirq+0x78/0x2ac
 RSP: 0018:ffffb253449e4f98 EFLAGS: 00000246
 RAX: 00000000ffffffff RBX: 0000000000000000 RCX: 000000000000001f
 RDX: 000000000000001d RSI: 000000003d1879ab RDI: fff363b66fd3a86b
 RBP: ffffb253604cbcd8 R08: 0000009065635f3b R09: 0000000000000000
 R10: 0000000000000040 R11: ffffb253449e4ff8 R12: 0000000000000000
 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000040
 FS:  0000000000000000(0000) GS:ffff8caa1fc80000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00007fd9ec9db900 CR3: 0000000891934006 CR4: 00000000007706e0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 PKRU: 55555554
 Call Trace:
  \<IRQ\>
  ? show\_trace\_log\_lvl+0x1c4/0x2df
  ? show\_trace\_log\_lvl+0x1c4/0x2df
  ? \_\_irq\_exit\_rcu+0xa1/0xc0
  ? watchdog\_timer\_fn+0x1b2/0x210
  ? \_\_pfx\_watchdog\_timer\_fn+0x10/0x10
  ? \_\_hrtimer\_run\_queues+0x127/0x2c0
  ? hrtimer\_interrupt+0xfc/0x210
  ? \_\_sysvec\_apic\_timer\_interrupt+0x5c/0x110
  ? sysvec\_apic\_timer\_interrupt+0x37/0x90
  ? asm\_sysvec\_apic\_timer\_interrupt+0x16/0x20
  ? \_\_do\_softirq+0x78/0x2ac
  ? \_\_do\_softirq+0x60/0x2ac
  \_\_irq\_exit\_rcu+0xa1/0xc0
  sysvec\_call\_function\_single+0x72/0x90
  \</IRQ\>
  \<TASK\>
  asm\_sysvec\_call\_function\_single+0x16/0x20
 RIP: 0010:\_raw\_spin\_unlock\_irq+0x14/0x30
 RSP: 0018:ffffb253604cbd88 EFLAGS: 00000247
 RAX: 000000000001960d RBX: 0000000000000002 RCX: ffff8cad2a064800
 RDX: 000000008020001b RSI: 0000000000000001 RDI: ffff8cad5d39f66c
 RBP: ffff8cad5d39f600 R08: 0000000000000001 R09: 0000000000000000
 R10: ffff8caa443e0c00 R11: ffffb253604cbcd8 R12: ffff8cacb8682538
 R13: 0000000000000005 R14: ffffb253604cbd90 R15: ffff8cad5d39f66c
  cm\_process\_send\_error+0x122/0x1d0 \[ib\_cm\]
  timeout\_sends+0x1dd/0x270 \[ib\_core\]
  process\_one\_work+0x1e2/0x3b0
  ? \_\_pfx\_worker\_thread+0x10/0x10
  worker\_thread+0x50/0x3a0
  ? \_\_pfx\_worker\_thread+0x10/0x10
  kthread+0xdd/0x100
  ? \_\_pfx\_kthread+0x10/0x10
  ret\_from\_fork+0x29/0x50
  \</TASK\>

Simplified timeout handler by creating local list of timed out WRs
and invoke send handler post creating the list. The new method acquires/
releases lock once to fetch the list and hence helps to reduce locking
contetiong when processing higher no. of WRs

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 713adaf0ecfc49405f6e5d9e409d984f628de818; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7022a517bf1ca37ef5a474365bcc5eafd345a13a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e80eadb3604a92d2d086e956b8b2692b699d4d0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a195a42dd25ca4f12489687065d00be64939409f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3e799fa463508abe7a738ce5d0f62a8dfd05262a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2a777679b8ccd09a9a65ea0716ef10365179caac (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-50095.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 713adaf0ecfc49405f6e5d9e409d984f628de818; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7022a517bf1ca37ef5a474365bcc5eafd345a13a; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e80eadb3604a92d2d086e956b8b2692b699d4d0a; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 713adaf0ecfc49405f6e5d9e409d984f628de818, Linux 7022a517bf1ca37ef5a474365bcc5eafd345a13a, Linux 3e799fa463508abe7a738ce5d0f62a8dfd05262a, Linux 2a777679b8ccd09a9a65ea0716ef10365179caac

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

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 713adaf0ecfc49405f6e5d9e409d984f628de818; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7022a517bf1ca37ef5a474365bcc5eafd345a13a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e80eadb3604a92d2d086e956b8b2692b699d4d0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a195a42dd25ca4f12489687065d00be64939409f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3e799fa463508abe7a738ce5d0f62a8dfd05262a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2a777679b8ccd09a9a65ea0716ef10365179caac; Linux 2.6.12.

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

Yes. Fixed in Linux 713adaf0ecfc49405f6e5d9e409d984f628de818, Linux 7022a517bf1ca37ef5a474365bcc5eafd345a13a, Linux 3e799fa463508abe7a738ce5d0f62a8dfd05262a, Linux 2a777679b8ccd09a9a65ea0716ef10365179caac. Upgrade Linux to 2a777679b8ccd09a9a65ea0716ef10365179caac or later.

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

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/713adaf0ecfc49405f6e5d9e409d984f628de818>
- patch: <https://git.kernel.org/stable/c/7022a517bf1ca37ef5a474365bcc5eafd345a13a>
- patch: <https://git.kernel.org/stable/c/e80eadb3604a92d2d086e956b8b2692b699d4d0a>
- patch: <https://git.kernel.org/stable/c/a195a42dd25ca4f12489687065d00be64939409f>
- patch: <https://git.kernel.org/stable/c/3e799fa463508abe7a738ce5d0f62a8dfd05262a>
- patch: <https://git.kernel.org/stable/c/2a777679b8ccd09a9a65ea0716ef10365179caac>
- 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-50095>

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