# CVE-2022-49670: linux/dim: Fix divide by 0 in RDMA DIM

> 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.69% (percentile 48, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2025-02-26T02:24:03.938Z
- **Modified:** 2026-08-05T08:56:00.433Z

## Who should check

- Anyone running Linux \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 5af106f8e072aebd88b95e164a08fa320651a99a; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< fae2a9fb1eaf348ad8732f90d42ebbb971bd7e95; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 0b6e0eb5c45e79e9095de2498cc0ca5ec563fc5e; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 7c1963391af51ee322378d1b2849c60e9037f069; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 0fe3dbbefb74a8575f61d7801b08dbc50523d60d
- Anyone running Linux 5.3

## Description

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

linux/dim: Fix divide by 0 in RDMA DIM

Fix a divide 0 error in rdma\_dim\_stats\_compare() when prev-\>cpe\_ratio ==
0.

CallTrace:
  Hardware name: H3C R4900 G3/RS33M2C9S, BIOS 2.00.37P21 03/12/2020
  task: ffff880194b78000 task.stack: ffffc90006714000
  RIP: 0010:backport\_rdma\_dim+0x10e/0x240 \[mlx\_compat\]
  RSP: 0018:ffff880c10e83ec0 EFLAGS: 00010202
  RAX: 0000000000002710 RBX: ffff88096cd7f780 RCX: 0000000000000064
  RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
  RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
  R10: 0000000000000000 R11: 0000000000000000 R12: 000000001d7c6c09
  R13: ffff88096cd7f780 R14: ffff880b174fe800 R15: 0000000000000000
  FS:  0000000000000000(0000) GS:ffff880c10e80000(0000)
  knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 00000000a0965b00 CR3: 000000000200a003 CR4: 00000000007606e0
  DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
  DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
  PKRU: 55555554
  Call Trace:
   \<IRQ\>
   ib\_poll\_handler+0x43/0x80 \[ib\_core\]
   irq\_poll\_softirq+0xae/0x110
   \_\_do\_softirq+0xd1/0x28c
   irq\_exit+0xde/0xf0
   do\_IRQ+0x54/0xe0
   common\_interrupt+0x8f/0x8f
   \</IRQ\>
   ? cpuidle\_enter\_state+0xd9/0x2a0
   ? cpuidle\_enter\_state+0xc7/0x2a0
   ? do\_idle+0x170/0x1d0
   ? cpu\_startup\_entry+0x6f/0x80
   ? start\_secondary+0x1b9/0x210
   ? secondary\_startup\_64+0xa5/0xb0
  Code: 0f 87 e1 00 00 00 8b 4c 24 14 44 8b 43 14 89 c8 4d 63 c8 44 29 c0 99 31 d0 29 d0 31 d2 48 98 48 8d 04 80 48 8d 04 80 48 c1 e0 02 \<49\> f7 f1 48 83 f8 0a 0f 86 c1 00 00 00 44 39 c1 7f 10 48 89 df
  RIP: backport\_rdma\_dim+0x10e/0x240 \[mlx\_compat\] RSP: ffff880c10e83ec0

## Affected and fixed versions

- Linux: \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 5af106f8e072aebd88b95e164a08fa320651a99a; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< fae2a9fb1eaf348ad8732f90d42ebbb971bd7e95; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 0b6e0eb5c45e79e9095de2498cc0ca5ec563fc5e; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 7c1963391af51ee322378d1b2849c60e9037f069; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 0fe3dbbefb74a8575f61d7801b08dbc50523d60d (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49670.md
Affected: Linux >= f4915455dcf07c4f237d6160a4b6adb0575d2909, < 5af106f8e072aebd88b95e164a08fa320651a99a; >= f4915455dcf07c4f237d6160a4b6adb0575d2909, < fae2a9fb1eaf348ad8732f90d42ebbb971bd7e95; >= f4915455dcf07c4f237d6160a4b6adb0575d2909, < 0b6e0eb5c45e79e9095de2498cc0ca5ec563fc5e; >= f4915455dcf07c4f237d616…
Fixed in: Linux 5af106f8e072aebd88b95e164a08fa320651a99a, Linux 0b6e0eb5c45e79e9095de2498cc0ca5ec563fc5e, Linux 7c1963391af51ee322378d1b2849c60e9037f069, Linux 0fe3dbbefb74a8575f61d7801b08dbc50523d60d

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

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

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

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

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

Linux \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 5af106f8e072aebd88b95e164a08fa320651a99a; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< fae2a9fb1eaf348ad8732f90d42ebbb971bd7e95; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 0b6e0eb5c45e79e9095de2498cc0ca5ec563fc5e; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 7c1963391af51ee322378d1b2849c60e9037f069; \>= f4915455dcf07c4f237d6160a4b6adb0575d2909, \< 0fe3dbbefb74a8575f61d7801b08dbc50523d60d; Linux 5.3.

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

Yes. Fixed in Linux 5af106f8e072aebd88b95e164a08fa320651a99a, Linux 0b6e0eb5c45e79e9095de2498cc0ca5ec563fc5e, Linux 7c1963391af51ee322378d1b2849c60e9037f069, Linux 0fe3dbbefb74a8575f61d7801b08dbc50523d60d. Upgrade Linux to 0fe3dbbefb74a8575f61d7801b08dbc50523d60d or later.

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

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/5af106f8e072aebd88b95e164a08fa320651a99a>
- patch: <https://git.kernel.org/stable/c/fae2a9fb1eaf348ad8732f90d42ebbb971bd7e95>
- patch: <https://git.kernel.org/stable/c/0b6e0eb5c45e79e9095de2498cc0ca5ec563fc5e>
- patch: <https://git.kernel.org/stable/c/7c1963391af51ee322378d1b2849c60e9037f069>
- patch: <https://git.kernel.org/stable/c/0fe3dbbefb74a8575f61d7801b08dbc50523d60d>

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

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