CVE-2022-49522

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49522
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49522.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49522
Related
Published
2025-02-26T07:01:28Z
Modified
2025-02-26T19:03:23.337024Z
Summary
[none]
Details

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 CONFIGDMAAPI_DEBUG=y.

------------[ cut here ]------------ WARNING: CPU: 0 PID: 21 at kernel/dma/debug.c:1162 debugdmamapsg+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 blkmqrunworkfn 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>] showstack+0x84/0x120 [<80528cd8>] _warn+0xb8/0xec [<80528d78>] warnslowpathfmt+0x6c/0xb8 [<8016f1d4>] debugdmamapsg+0x2f4/0x39c [<80169d4c>] _dmamapsgattrs+0xf0/0x118 [<8016a27c>] dmamapsgattrs+0x14/0x28 [<804f66b4>] jz4740mmcpreparedmadata+0x74/0xa4 [<804f6714>] jz4740mmcprerequest+0x30/0x54 [<804f4ff4>] mmcblkmqissuerq+0x6e0/0x7bc [<804f5590>] mmcmqqueuerq+0x220/0x2d4 [<8038b2c0>] blkmqdispatchrqlist+0x480/0x664 [<80391040>] blkmqdodispatchsched+0x2dc/0x370 [<80391468>] _blkmqscheddispatchrequests+0xec/0x164 [<80391540>] blkmqscheddispatchrequests+0x44/0x94 [<80387900>] _blkmqrunhwqueue+0xb0/0xcc [<80134c14>] processonework+0x1b8/0x264 [<80134ff8>] workerthread+0x2ec/0x3b8 [<8013b13c>] kthread+0x104/0x10c [<80101dcc>] retfromkernel_thread+0x14/0x1c

---[ end trace 0000000000000000 ]---

References

Affected packages

Debian:11 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.127-1

Affected versions

5.*

5.10.46-4
5.10.46-5
5.10.70-1~bpo10+1
5.10.70-1
5.10.84-1
5.10.92-1~bpo10+1
5.10.92-1
5.10.92-2
5.10.103-1~bpo10+1
5.10.103-1
5.10.106-1
5.10.113-1
5.10.120-1~bpo10+1
5.10.120-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.18.5-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.18.5-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}