# CVE-2022-49606: RDMA/irdma: Fix sleep from invalid context BUG

> 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.21% (percentile 7, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-02-26T02:23:31.346Z
- **Modified:** 2026-06-17T05:18:36.507Z

## Who should check

- Anyone running Linux \>= 146b9756f14c04894226fb97e2f102f217139c27, \< a4c5115140ed1833197bad9a6b80265840ff427f; \>= 146b9756f14c04894226fb97e2f102f217139c27, \< 2cae7e519032e4b4672cb9204d5586a441924364; \>= 146b9756f14c04894226fb97e2f102f217139c27, \< cc0315564d6eec91c716d314b743321be24c70b3
- Anyone running Linux 5.14

## Description

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

RDMA/irdma: Fix sleep from invalid context BUG

Taking the qos\_mutex to process RoCEv2 QP's on netdev events causes a
kernel splat.

Fix this by removing the handling for RoCEv2 in
irdma\_cm\_teardown\_connections that uses the mutex. This handling is only
needed for iWARP to avoid having connections established while the link is
down or having connections remain functional after the IP address is
removed.

  BUG: sleeping function called from invalid context at kernel/locking/mutex.
  Call Trace:
  kernel: dump\_stack+0x66/0x90
  kernel: \_\_\_might\_sleep.cold.92+0x8d/0x9a
  kernel: mutex\_lock+0x1c/0x40
  kernel: irdma\_cm\_teardown\_connections+0x28e/0x4d0 \[irdma\]
  kernel: ? check\_preempt\_curr+0x7a/0x90
  kernel: ? select\_idle\_sibling+0x22/0x3c0
  kernel: ? select\_task\_rq\_fair+0x94c/0xc90
  kernel: ? irdma\_exec\_cqp\_cmd+0xc27/0x17c0 \[irdma\]
  kernel: ? \_\_wake\_up\_common+0x7a/0x190
  kernel: irdma\_if\_notify+0x3cc/0x450 \[irdma\]
  kernel: ? sched\_clock\_cpu+0xc/0xb0
  kernel: irdma\_inet6addr\_event+0xc6/0x150 \[irdma\]

## Affected and fixed versions

- Linux: \>= 146b9756f14c04894226fb97e2f102f217139c27, \< a4c5115140ed1833197bad9a6b80265840ff427f; \>= 146b9756f14c04894226fb97e2f102f217139c27, \< 2cae7e519032e4b4672cb9204d5586a441924364; \>= 146b9756f14c04894226fb97e2f102f217139c27, \< cc0315564d6eec91c716d314b743321be24c70b3 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49606.md
Affected: Linux >= 146b9756f14c04894226fb97e2f102f217139c27, < a4c5115140ed1833197bad9a6b80265840ff427f; >= 146b9756f14c04894226fb97e2f102f217139c27, < 2cae7e519032e4b4672cb9204d5586a441924364; >= 146b9756f14c04894226fb97e2f102f217139c27, < cc0315564d6eec91c716d314b743321be24c70b3; Linux 5.14
Fixed in: Linux 2cae7e519032e4b4672cb9204d5586a441924364

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

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

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

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

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

Linux \>= 146b9756f14c04894226fb97e2f102f217139c27, \< a4c5115140ed1833197bad9a6b80265840ff427f; \>= 146b9756f14c04894226fb97e2f102f217139c27, \< 2cae7e519032e4b4672cb9204d5586a441924364; \>= 146b9756f14c04894226fb97e2f102f217139c27, \< cc0315564d6eec91c716d314b743321be24c70b3; Linux 5.14.

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

Yes. Fixed in Linux 2cae7e519032e4b4672cb9204d5586a441924364. No fix listed yet: follow the vendor advisory.

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

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/a4c5115140ed1833197bad9a6b80265840ff427f>
- patch: <https://git.kernel.org/stable/c/2cae7e519032e4b4672cb9204d5586a441924364>
- patch: <https://git.kernel.org/stable/c/cc0315564d6eec91c716d314b743321be24c70b3>

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

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