# CVE-2022-49753: dmaengine: Fix double increment of client\_count in dma\_chan\_get()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-03-27T16:43:01.252Z
- **Modified:** 2026-06-17T05:19:03.167Z

## Who should check

- Anyone running Linux \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 1b409e14b4b7af034e0450f95c165b6c5c87dbc1; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< c6221afe573413fd2981e291f7df4a58283e0654; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 18dd3b30d4c7e8440c63118c7a7b687372b9567f; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 42ecd72f02cd657b00b559621e7ef7d2c4d3e5f1; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 71c601965532c38030133535f7cd93c1efa75af1; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 142d644fd2cc059ffa042fbfb68e766433ef3afd; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< f3dc1b3b4750851a94212dba249703dd0e50bb20
- Anyone running Linux 4.0

## Description

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

dmaengine: Fix double increment of client\_count in dma\_chan\_get()

The first time dma\_chan\_get() is called for a channel the channel
client\_count is incorrectly incremented twice for public channels,
first in balance\_ref\_count(), and again prior to returning. This
results in an incorrect client count which will lead to the
channel resources not being freed when they should be. A simple
 test of repeated module load and unload of async\_tx on a Dell
 Power Edge R7425 also shows this resulting in a kref underflow
 warning.

\[  124.329662\] async\_tx: api initialized (async)
\[  129.000627\] async\_tx: api initialized (async)
\[  130.047839\] ------------\[ cut here \]------------
\[  130.052472\] refcount\_t: underflow; use-after-free.
\[  130.057279\] WARNING: CPU: 3 PID: 19364 at lib/refcount.c:28
refcount\_warn\_saturate+0xba/0x110
\[  130.065811\] Modules linked in: async\_tx(-) rfkill intel\_rapl\_msr
intel\_rapl\_common amd64\_edac edac\_mce\_amd ipmi\_ssif kvm\_amd dcdbas kvm
mgag200 drm\_shmem\_helper acpi\_ipmi irqbypass drm\_kms\_helper ipmi\_si
syscopyarea sysfillrect rapl pcspkr ipmi\_devintf sysimgblt fb\_sys\_fops
k10temp i2c\_piix4 ipmi\_msghandler acpi\_power\_meter acpi\_cpufreq vfat
fat drm fuse xfs libcrc32c sd\_mod t10\_pi sg ahci crct10dif\_pclmul
libahci crc32\_pclmul crc32c\_intel ghash\_clmulni\_intel igb megaraid\_sas
i40e libata i2c\_algo\_bit ccp sp5100\_tco dca dm\_mirror dm\_region\_hash
dm\_log dm\_mod \[last unloaded: async\_tx\]
\[  130.117361\] CPU: 3 PID: 19364 Comm: modprobe Kdump: loaded Not
tainted 5.14.0-185.el9.x86\_64 \#1
\[  130.126091\] Hardware name: Dell Inc. PowerEdge R7425/02MJ3T, BIOS
1.18.0 01/17/2022
\[  130.133806\] RIP: 0010:refcount\_warn\_saturate+0xba/0x110
\[  130.139041\] Code: 01 01 e8 6d bd 55 00 0f 0b e9 72 9d 8a 00 80 3d
26 18 9c 01 00 75 85 48 c7 c7 f8 a3 03 9d c6 05 16 18 9c 01 01 e8 4a
bd 55 00 \<0f\> 0b e9 4f 9d 8a 00 80 3d 01 18 9c 01 00 0f 85 5e ff ff ff
48 c7
\[  130.157807\] RSP: 0018:ffffbf98898afe68 EFLAGS: 00010286
\[  130.163036\] RAX: 0000000000000000 RBX: ffff9da06028e598 RCX: 0000000000000000
\[  130.170172\] RDX: ffff9daf9de26480 RSI: ffff9daf9de198a0 RDI: ffff9daf9de198a0
\[  130.177316\] RBP: ffff9da7cddf3970 R08: 0000000000000000 R09: 00000000ffff7fff
\[  130.184459\] R10: ffffbf98898afd00 R11: ffffffff9d9e8c28 R12: ffff9da7cddf1970
\[  130.191596\] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
\[  130.198739\] FS:  00007f646435c740(0000) GS:ffff9daf9de00000(0000)
knlGS:0000000000000000
\[  130.206832\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  130.212586\] CR2: 00007f6463b214f0 CR3: 00000008ab98c000 CR4: 00000000003506e0
\[  130.219729\] Call Trace:
\[  130.222192\]  \<TASK\>
\[  130.224305\]  dma\_chan\_put+0x10d/0x110
\[  130.227988\]  dmaengine\_put+0x7a/0xa0
\[  130.231575\]  \_\_do\_sys\_delete\_module.constprop.0+0x178/0x280
\[  130.237157\]  ? syscall\_trace\_enter.constprop.0+0x145/0x1d0
\[  130.242652\]  do\_syscall\_64+0x5c/0x90
\[  130.246240\]  ? exc\_page\_fault+0x62/0x150
\[  130.250178\]  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[  130.255243\] RIP: 0033:0x7f6463a3f5ab
\[  130.258830\] Code: 73 01 c3 48 8b 0d 75 a8 1b 00 f7 d8 64 89 01 48
83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00
00 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 45 a8 1b 00 f7 d8 64 89
01 48
\[  130.277591\] RSP: 002b:00007fff22f972c8 EFLAGS: 00000206 ORIG\_RAX:
00000000000000b0
\[  130.285164\] RAX: ffffffffffffffda RBX: 000055b6786edd40 RCX: 00007f6463a3f5ab
\[  130.292303\] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 000055b6786edda8
\[  130.299443\] RBP: 000055b6786edd40 R08: 0000000000000000 R09: 0000000000000000
\[  130.306584\] R10: 00007f6463b9eac0 R11: 0000000000000206 R12: 000055b6786edda8
\[  130.313731\] R13: 0000000000000000 R14: 000055b6786edda8 R15: 00007fff22f995f8
\[  130.320875\]  \</TASK\>
\[  130.323081\] ---\[ end trace eff7156d56b5cf25 \]---

cat /sys/class/dma/dma0chan\*/in\_use would get the wrong result.
2
2
2

Test-by: Jie Hai \<haijie1@huawei.com\>

## Affected and fixed versions

- Linux: \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 1b409e14b4b7af034e0450f95c165b6c5c87dbc1; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< c6221afe573413fd2981e291f7df4a58283e0654; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 18dd3b30d4c7e8440c63118c7a7b687372b9567f; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 42ecd72f02cd657b00b559621e7ef7d2c4d3e5f1; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 71c601965532c38030133535f7cd93c1efa75af1; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 142d644fd2cc059ffa042fbfb68e766433ef3afd; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< f3dc1b3b4750851a94212dba249703dd0e50bb20 (cvelist)
- Linux: 4.0 (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-49753. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49753.md
Affected: Linux >= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, < 1b409e14b4b7af034e0450f95c165b6c5c87dbc1; >= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, < c6221afe573413fd2981e291f7df4a58283e0654; >= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, < 18dd3b30d4c7e8440c63118c7a7b687372b9567f; >= d2f4f99db3e9ec8b063cf2e…
Fixed in: Linux 1b409e14b4b7af034e0450f95c165b6c5c87dbc1, Linux 18dd3b30d4c7e8440c63118c7a7b687372b9567f, Linux 42ecd72f02cd657b00b559621e7ef7d2c4d3e5f1, Linux 71c601965532c38030133535f7cd93c1efa75af1, Linux 142d644fd2cc059ffa042fbfb68e766433ef3afd

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 1b409e14b4b7af034e0450f95c165b6c5c87dbc1; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< c6221afe573413fd2981e291f7df4a58283e0654; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 18dd3b30d4c7e8440c63118c7a7b687372b9567f; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 42ecd72f02cd657b00b559621e7ef7d2c4d3e5f1; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 71c601965532c38030133535f7cd93c1efa75af1; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< 142d644fd2cc059ffa042fbfb68e766433ef3afd; \>= d2f4f99db3e9ec8b063cf2e45704e2bb95428317, \< f3dc1b3b4750851a94212dba249703dd0e50bb20; Linux 4.0.

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

Yes. Fixed in Linux 1b409e14b4b7af034e0450f95c165b6c5c87dbc1, Linux 18dd3b30d4c7e8440c63118c7a7b687372b9567f, Linux 42ecd72f02cd657b00b559621e7ef7d2c4d3e5f1, Linux 71c601965532c38030133535f7cd93c1efa75af1, Linux 142d644fd2cc059ffa042fbfb68e766433ef3afd. No fix listed yet: follow the vendor advisory.

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

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/1b409e14b4b7af034e0450f95c165b6c5c87dbc1>
- patch: <https://git.kernel.org/stable/c/c6221afe573413fd2981e291f7df4a58283e0654>
- patch: <https://git.kernel.org/stable/c/18dd3b30d4c7e8440c63118c7a7b687372b9567f>
- patch: <https://git.kernel.org/stable/c/42ecd72f02cd657b00b559621e7ef7d2c4d3e5f1>
- patch: <https://git.kernel.org/stable/c/71c601965532c38030133535f7cd93c1efa75af1>
- patch: <https://git.kernel.org/stable/c/142d644fd2cc059ffa042fbfb68e766433ef3afd>
- patch: <https://git.kernel.org/stable/c/f3dc1b3b4750851a94212dba249703dd0e50bb20>

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

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