{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49320","id":"CVE-2022-49320","title":"dmaengine: zynqmp_dma: In struct zynqmp_dma_chan fix desc_size data type","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: zynqmp_dma: In struct zynqmp_dma_chan fix desc_size data type\n\nIn zynqmp_dma_alloc/free_chan_resources functions there is a\npotential overflow in the below expressions.\n\ndma_alloc_coherent(chan->dev, (2 * chan->desc_size *\n\t\t   ZYNQMP_DMA_NUM_DESCS),\n\t\t   &chan->desc_pool_p, GFP_KERNEL);\n\ndma_free_coherent(chan->dev,(2","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: zynqmp_dma: In struct zynqmp_dma_chan fix desc_size data type\n\nIn zynqmp_dma_alloc/free_chan_resources functions there is a\npotential overflow in the below expressions.\n\ndma_alloc_coherent(chan->dev, (2 * chan->desc_size *\n\t\t   ZYNQMP_DMA_NUM_DESCS),\n\t\t   &chan->desc_pool_p, GFP_KERNEL);\n\ndma_free_coherent(chan->dev,(2 * ZYNQMP_DMA_DESC_SIZE(chan) *\n                 ZYNQMP_DMA_NUM_DESCS),\n                chan->desc_pool_v, chan->desc_pool_p);\n\nThe arguments desc_size and ZYNQMP_DMA_NUM_DESCS were 32 bit. Though\nthis overflow condition is not observed but it is a potential problem\nin the case of 32-bit multiplication. Hence fix it by changing the\ndesc_size data type to size_t.\n\nIn addition to coverity fix it also reuse ZYNQMP_DMA_DESC_SIZE macro in\ndma_alloc_coherent API argument.\n\nAddresses-Coverity: Event overflow_before_widen.","published":"2025-02-26T02:10:45.703Z","updated":"2026-10-28T02:31:01.174063195Z","reserved":"2025-02-26T02:08:31.537Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b0cc417c1637192be658e68a74c8d1568e3d35f6","lessThan":"83960276ffc9bf5570d4106490346b61e61be5f3","status":"affected","versionType":"git"},{"version":"b0cc417c1637192be658e68a74c8d1568e3d35f6","lessThan":"95a0ba85c1b51b36e909841c02d205cd223ab753","status":"affected","versionType":"git"},{"version":"b0cc417c1637192be658e68a74c8d1568e3d35f6","lessThan":"7b5488f4721fed6e121e661e165bab06ae2f8675","status":"affected","versionType":"git"},{"version":"b0cc417c1637192be658e68a74c8d1568e3d35f6","lessThan":"4838969e4d95d2bd2995d1605b20d3144fcb3e74","status":"affected","versionType":"git"},{"version":"b0cc417c1637192be658e68a74c8d1568e3d35f6","lessThan":"90aefae2e3a770a6909d339f5d8a988c0b0ceaf0","status":"affected","versionType":"git"},{"version":"b0cc417c1637192be658e68a74c8d1568e3d35f6","lessThan":"f9a9f43a62a04ec3183fb0da9226c7706eed0115","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","lessThan":"4.8","status":"unaffected","versionType":"semver"},{"version":"5.4.198","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.122","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.47","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.17.15","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18.4","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-190"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/83960276ffc9bf5570d4106490346b61e61be5f3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/95a0ba85c1b51b36e909841c02d205cd223ab753","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7b5488f4721fed6e121e661e165bab06ae2f8675","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4838969e4d95d2bd2995d1605b20d3144fcb3e74","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/90aefae2e3a770a6909d339f5d8a988c0b0ceaf0","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f9a9f43a62a04ec3183fb0da9226c7706eed0115","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49320.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49320","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00269,"epssPercentile":0.19362,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49320","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49320","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49320","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49320","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}