# CVE-2022-49522: mmc: jz4740: Apply DMA engine limits to maximum segment size

> 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.29% (percentile 14, 2026-11-26)
- **Published:** 2025-02-26T02:13:47.278Z
- **Modified:** 2026-06-17T05:18:18.853Z

## Who should check

- Anyone running Linux \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 7923f95997a79cef2ad161a2facae64c25a0bca0; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 90281cadf5077f2d2bec8b08c2ead1f8cd12660e; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 353298cadbd4c7d8e8a16d6000066414694933c3; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 807f90f1960a59dc557542b818c484a8db9ac978; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< a828920b9ec0d89d3011198d482b7fe224d2de19; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< afadb04f1d6e74b18a253403f5274cde5e3fd7bd
- Anyone running Linux 3.18

## Description

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

mmc: jz4740: Apply DMA engine limits to maximum segment size

Do what is done in other DMA-enabled MMC host drivers (cf. host/mmci.c) and
limit the maximum segment size based on the DMA engine's capabilities. This
is needed to avoid warnings like the following with CONFIG\_DMA\_API\_DEBUG=y.

------------\[ cut here \]------------
WARNING: CPU: 0 PID: 21 at kernel/dma/debug.c:1162 debug\_dma\_map\_sg+0x2f4/0x39c
DMA-API: jz4780-dma 13420000.dma-controller: mapping sg segment longer than device claims to support \[len=98304\] \[max=65536\]
CPU: 0 PID: 21 Comm: kworker/0:1H Not tainted 5.18.0-rc1 \#19
Workqueue: kblockd blk\_mq\_run\_work\_fn
Stack : 81575aec 00000004 80620000 80620000 80620000 805e7358 00000009 801537ac
        814c832c 806276e3 806e34b4 80620000 81575aec 00000001 81575ab8 09291444
        00000000 00000000 805e7358 81575958 ffffffea 8157596c 00000000 636f6c62
        6220646b 80387a70 0000000f 6d5f6b6c 80620000 00000000 81575ba4 00000009
        805e170c 80896640 00000001 00010000 00000000 00000000 00006098 806e0000
        ...
Call Trace:
\[\<80107670\>\] show\_stack+0x84/0x120
\[\<80528cd8\>\] \_\_warn+0xb8/0xec
\[\<80528d78\>\] warn\_slowpath\_fmt+0x6c/0xb8
\[\<8016f1d4\>\] debug\_dma\_map\_sg+0x2f4/0x39c
\[\<80169d4c\>\] \_\_dma\_map\_sg\_attrs+0xf0/0x118
\[\<8016a27c\>\] dma\_map\_sg\_attrs+0x14/0x28
\[\<804f66b4\>\] jz4740\_mmc\_prepare\_dma\_data+0x74/0xa4
\[\<804f6714\>\] jz4740\_mmc\_pre\_request+0x30/0x54
\[\<804f4ff4\>\] mmc\_blk\_mq\_issue\_rq+0x6e0/0x7bc
\[\<804f5590\>\] mmc\_mq\_queue\_rq+0x220/0x2d4
\[\<8038b2c0\>\] blk\_mq\_dispatch\_rq\_list+0x480/0x664
\[\<80391040\>\] blk\_mq\_do\_dispatch\_sched+0x2dc/0x370
\[\<80391468\>\] \_\_blk\_mq\_sched\_dispatch\_requests+0xec/0x164
\[\<80391540\>\] blk\_mq\_sched\_dispatch\_requests+0x44/0x94
\[\<80387900\>\] \_\_blk\_mq\_run\_hw\_queue+0xb0/0xcc
\[\<80134c14\>\] process\_one\_work+0x1b8/0x264
\[\<80134ff8\>\] worker\_thread+0x2ec/0x3b8
\[\<8013b13c\>\] kthread+0x104/0x10c
\[\<80101dcc\>\] ret\_from\_kernel\_thread+0x14/0x1c

---\[ end trace 0000000000000000 \]---

## Affected and fixed versions

- Linux: \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 7923f95997a79cef2ad161a2facae64c25a0bca0; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 90281cadf5077f2d2bec8b08c2ead1f8cd12660e; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 353298cadbd4c7d8e8a16d6000066414694933c3; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 807f90f1960a59dc557542b818c484a8db9ac978; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< a828920b9ec0d89d3011198d482b7fe224d2de19; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< afadb04f1d6e74b18a253403f5274cde5e3fd7bd (cvelist)
- Linux: 3.18 (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-49522. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49522.md
Affected: Linux >= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, < 7923f95997a79cef2ad161a2facae64c25a0bca0; >= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, < 90281cadf5077f2d2bec8b08c2ead1f8cd12660e; >= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, < 353298cadbd4c7d8e8a16d6000066414694933c3; >= 7ca27a6f80a4042666a2897…
Fixed in: Linux 7923f95997a79cef2ad161a2facae64c25a0bca0, Linux 90281cadf5077f2d2bec8b08c2ead1f8cd12660e, Linux 353298cadbd4c7d8e8a16d6000066414694933c3, Linux 807f90f1960a59dc557542b818c484a8db9ac978

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

There is no confirmed exploitation: CVE-2022-49522 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-49522?

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

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

Linux \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 7923f95997a79cef2ad161a2facae64c25a0bca0; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 90281cadf5077f2d2bec8b08c2ead1f8cd12660e; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 353298cadbd4c7d8e8a16d6000066414694933c3; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< 807f90f1960a59dc557542b818c484a8db9ac978; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< a828920b9ec0d89d3011198d482b7fe224d2de19; \>= 7ca27a6f80a4042666a28977ff8ee3aa527c6cd4, \< afadb04f1d6e74b18a253403f5274cde5e3fd7bd; Linux 3.18.

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

Yes. Fixed in Linux 7923f95997a79cef2ad161a2facae64c25a0bca0, Linux 90281cadf5077f2d2bec8b08c2ead1f8cd12660e, Linux 353298cadbd4c7d8e8a16d6000066414694933c3, Linux 807f90f1960a59dc557542b818c484a8db9ac978. No fix listed yet: follow the vendor advisory.

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

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/7923f95997a79cef2ad161a2facae64c25a0bca0>
- patch: <https://git.kernel.org/stable/c/90281cadf5077f2d2bec8b08c2ead1f8cd12660e>
- patch: <https://git.kernel.org/stable/c/353298cadbd4c7d8e8a16d6000066414694933c3>
- patch: <https://git.kernel.org/stable/c/807f90f1960a59dc557542b818c484a8db9ac978>
- patch: <https://git.kernel.org/stable/c/a828920b9ec0d89d3011198d482b7fe224d2de19>
- patch: <https://git.kernel.org/stable/c/afadb04f1d6e74b18a253403f5274cde5e3fd7bd>

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

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