# CVE-2022-50472: IB/mad: Don't call to function that might sleep while in atomic context

> 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.53% (percentile 38, 2026-11-26)
- **Published:** 2025-10-04T15:16:34.180Z
- **Modified:** 2026-10-15T22:17:30.830Z

## Who should check

- Anyone running Linux \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< d45e6ccb8e98d8339631f32984d345a663e74ce2; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< 47e31b86edff36f2d26cbc88ce695d98ff804178; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< cea70a572c0cb9728d728cfebe7d5bd485e97513; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< fa8a2f3be78e4585996bcf4c15e4504441a4c7a0; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< 5c20311d76cbaeb7ed2ecf9c8b8322f8fc4a7ae3
- Anyone running Linux 5.2

## Description

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

IB/mad: Don't call to function that might sleep while in atomic context

Tracepoints are not allowed to sleep, as such the following splat is
generated due to call to ib\_query\_pkey() in atomic context.

WARNING: CPU: 0 PID: 1888000 at kernel/trace/ring\_buffer.c:2492 rb\_commit+0xc1/0x220
CPU: 0 PID: 1888000 Comm: kworker/u9:0 Kdump: loaded Tainted: G           OE    --------- -  - 4.18.0-305.3.1.el8.x86\_64 \#1
 Hardware name: Red Hat KVM, BIOS 1.13.0-2.module\_el8.3.0+555+a55c8938 04/01/2014
 Workqueue: ib-comp-unb-wq ib\_cq\_poll\_work \[ib\_core\]
 RIP: 0010:rb\_commit+0xc1/0x220
 RSP: 0000:ffffa8ac80f9bca0 EFLAGS: 00010202
 RAX: ffff8951c7c01300 RBX: ffff8951c7c14a00 RCX: 0000000000000246
 RDX: ffff8951c707c000 RSI: ffff8951c707c57c RDI: ffff8951c7c14a00
 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
 R10: ffff8951c7c01300 R11: 0000000000000001 R12: 0000000000000246
 R13: 0000000000000000 R14: ffffffff964c70c0 R15: 0000000000000000
 FS:  0000000000000000(0000) GS:ffff8951fbc00000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00007f20e8f39010 CR3: 000000002ca10005 CR4: 0000000000170ef0
 Call Trace:
  ring\_buffer\_unlock\_commit+0x1d/0xa0
  trace\_buffer\_unlock\_commit\_regs+0x3b/0x1b0
  trace\_event\_buffer\_commit+0x67/0x1d0
  trace\_event\_raw\_event\_ib\_mad\_recv\_done\_handler+0x11c/0x160 \[ib\_core\]
  ib\_mad\_recv\_done+0x48b/0xc10 \[ib\_core\]
  ? trace\_event\_raw\_event\_cq\_poll+0x6f/0xb0 \[ib\_core\]
  \_\_ib\_process\_cq+0x91/0x1c0 \[ib\_core\]
  ib\_cq\_poll\_work+0x26/0x80 \[ib\_core\]
  process\_one\_work+0x1a7/0x360
  ? create\_worker+0x1a0/0x1a0
  worker\_thread+0x30/0x390
  ? create\_worker+0x1a0/0x1a0
  kthread+0x116/0x130
  ? kthread\_flush\_work\_fn+0x10/0x10
  ret\_from\_fork+0x35/0x40
 ---\[ end trace 78ba8509d3830a16 \]---

## Affected and fixed versions

- Linux: \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< d45e6ccb8e98d8339631f32984d345a663e74ce2; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< 47e31b86edff36f2d26cbc88ce695d98ff804178; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< cea70a572c0cb9728d728cfebe7d5bd485e97513; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< fa8a2f3be78e4585996bcf4c15e4504441a4c7a0; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< 5c20311d76cbaeb7ed2ecf9c8b8322f8fc4a7ae3 (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- Upgrade Linux to 5c20311d76cbaeb7ed2ecf9c8b8322f8fc4a7ae3 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50472.md
Affected: Linux >= 821bf1de45a1a084e2e11b1a2308777434194bfe, < d45e6ccb8e98d8339631f32984d345a663e74ce2; >= 821bf1de45a1a084e2e11b1a2308777434194bfe, < 47e31b86edff36f2d26cbc88ce695d98ff804178; >= 821bf1de45a1a084e2e11b1a2308777434194bfe, < cea70a572c0cb9728d728cfebe7d5bd485e97513; >= 821bf1de45a1a084e2e11b1…
Fixed in: Linux 47e31b86edff36f2d26cbc88ce695d98ff804178, Linux 5c20311d76cbaeb7ed2ecf9c8b8322f8fc4a7ae3

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-2022-50472 being exploited?

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

### How serious is CVE-2022-50472?

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

### Which versions are affected by CVE-2022-50472?

Linux \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< d45e6ccb8e98d8339631f32984d345a663e74ce2; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< 47e31b86edff36f2d26cbc88ce695d98ff804178; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< cea70a572c0cb9728d728cfebe7d5bd485e97513; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< fa8a2f3be78e4585996bcf4c15e4504441a4c7a0; \>= 821bf1de45a1a084e2e11b1a2308777434194bfe, \< 5c20311d76cbaeb7ed2ecf9c8b8322f8fc4a7ae3; Linux 5.2.

### Is there a fix for CVE-2022-50472?

Yes. Fixed in Linux 47e31b86edff36f2d26cbc88ce695d98ff804178, Linux 5c20311d76cbaeb7ed2ecf9c8b8322f8fc4a7ae3. Upgrade Linux to 5c20311d76cbaeb7ed2ecf9c8b8322f8fc4a7ae3 or later.

### How do I check if I'm affected by CVE-2022-50472?

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/47e31b86edff36f2d26cbc88ce695d98ff804178>
- patch: <https://git.kernel.org/stable/c/cea70a572c0cb9728d728cfebe7d5bd485e97513>
- patch: <https://git.kernel.org/stable/c/fa8a2f3be78e4585996bcf4c15e4504441a4c7a0>
- patch: <https://git.kernel.org/stable/c/5c20311d76cbaeb7ed2ecf9c8b8322f8fc4a7ae3>
- other: <https://git.kernel.org/stable/c/d45e6ccb8e98d8339631f32984d345a663e74ce2>

## 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-2022-50472>

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