CVE-2022-49320
dmaengine: zynqmp_dma: In struct zynqmp_dma_chan fix desc_size data type
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 83960276ffc9bf5570d4106490346b61e61be5f3; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 95a0ba85c1b51b36e909841c02d205cd223ab753; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 7b5488f4721fed6e121e661e165bab06ae2f8675; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 4838969e4d95d2bd2995d1605b20d3144fcb3e74; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 90aefae2e3a770a6909d339f5d8a988c0b0ceaf0; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < f9a9f43a62a04ec3183fb0da9226c7706eed0115
- Anyone running Linux 4.8
Vulnerability facts
- Affected
- Linux >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 83960276ffc9bf5570d4106490346b61e61be5f3; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 95a0ba85c1b51b36e909841c02d205cd223ab753; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 7b5488f4721fed6e121e661e165bab06ae2f8675; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 4838969e4d95d2bd2995d1605b20d3144fcb3e74; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 90aefae2e3a770a6909d339f5d8a988c0b0ceaf0; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < f9a9f43a62a04ec3183fb0da9226c7706eed0115; Linux 4.8
- Fixed in
- Linux 83960276ffc9bf5570d4106490346b61e61be5f3, Linux 95a0ba85c1b51b36e909841c02d205cd223ab753, Linux 7b5488f4721fed6e121e661e165bab06ae2f8675, Linux 4838969e4d95d2bd2995d1605b20d3144fcb3e74, Linux 90aefae2e3a770a6909d339f5d8a988c0b0ceaf0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-190
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: dmaengine: zynqmp_dma: In struct zynqmp_dma_chan fix desc_size data type In zynqmp_dma_alloc/free_chan_resources functions there is a potential overflow in the below expressions. dma_alloc_coherent(chan->dev, (2 * chan->desc_size * ZYNQMP_DMA_NUM_DESCS), &chan->desc_pool_p, GFP_KERNEL); dma_free_coherent(chan->dev,(2 * ZYNQMP_DMA_DESC_SIZE(chan) * ZYNQMP_DMA_NUM_DESCS), chan->desc_pool_v, chan->desc_pool_p); The arguments desc_size and ZYNQMP_DMA_NUM_DESCS were 32 bit. Though this overflow condition is not observed but it is a potential problem in the case of 32-bit multiplication. Hence fix it by changing the desc_size data type to size_t. In addition to coverity fix it also reuse ZYNQMP_DMA_DESC_SIZE macro in dma_alloc_coherent API argument. Addresses-Coverity: Event overflow_before_widen.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 83960276ffc9bf5570d4106490346b61e61be5f3; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 95a0ba85c1b51b36e909841c02d205cd223ab753; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 7b5488f4721fed6e121e661e165bab06ae2f8675; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 4838969e4d95d2bd2995d1605b20d3144fcb3e74; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 90aefae2e3a770a6909d339f5d8a988c0b0ceaf0; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < f9a9f43a62a04ec3183fb0da9226c7706eed0115 | — | cvelist |
| Linux | 4.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-49320. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-49320.md Affected: Linux >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 83960276ffc9bf5570d4106490346b61e61be5f3; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 95a0ba85c1b51b36e909841c02d205cd223ab753; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 7b5488f4721fed6e121e661e165bab06ae2f8675; >= b0cc417c1637192be658e68… Fixed in: Linux 83960276ffc9bf5570d4106490346b61e61be5f3, Linux 95a0ba85c1b51b36e909841c02d205cd223ab753, Linux 7b5488f4721fed6e121e661e165bab06ae2f8675, Linux 4838969e4d95d2bd2995d1605b20d3144fcb3e74, Linux 90aefae2e3a770a6909d339f5d8a988c0b0ceaf0 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.
References
Patches
- https://git.kernel.org/stable/c/83960276ffc9bf5570d4106490346b61e61be5f3
- https://git.kernel.org/stable/c/95a0ba85c1b51b36e909841c02d205cd223ab753
- https://git.kernel.org/stable/c/7b5488f4721fed6e121e661e165bab06ae2f8675
- https://git.kernel.org/stable/c/4838969e4d95d2bd2995d1605b20d3144fcb3e74
- https://git.kernel.org/stable/c/90aefae2e3a770a6909d339f5d8a988c0b0ceaf0
- https://git.kernel.org/stable/c/f9a9f43a62a04ec3183fb0da9226c7706eed0115
FAQ
Is CVE-2022-49320 being exploited?
There is no confirmed exploitation: CVE-2022-49320 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-49320?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-49320?
Linux >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 83960276ffc9bf5570d4106490346b61e61be5f3; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 95a0ba85c1b51b36e909841c02d205cd223ab753; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 7b5488f4721fed6e121e661e165bab06ae2f8675; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 4838969e4d95d2bd2995d1605b20d3144fcb3e74; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < 90aefae2e3a770a6909d339f5d8a988c0b0ceaf0; >= b0cc417c1637192be658e68a74c8d1568e3d35f6, < f9a9f43a62a04ec3183fb0da9226c7706eed0115; Linux 4.8.
Is there a fix for CVE-2022-49320?
Yes. Fixed in Linux 83960276ffc9bf5570d4106490346b61e61be5f3, Linux 95a0ba85c1b51b36e909841c02d205cd223ab753, Linux 7b5488f4721fed6e121e661e165bab06ae2f8675, Linux 4838969e4d95d2bd2995d1605b20d3144fcb3e74, Linux 90aefae2e3a770a6909d339f5d8a988c0b0ceaf0. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2022-49320?
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.