# CVE-2022-49983: udmabuf: Set the DMA mask for the udmabuf device (v2)

> 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-06-18T11:00:45.701Z
- **Modified:** 2026-08-15T13:17:28.800Z

## Who should check

- Anyone running Linux \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< 872875c9ecf8fa2e1d82bb2f2f1963f571aa8959; \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< e658538c610c6047b3c9f552e73801894d9284b1; \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< f2f6ea1a8da1317430a84701fc0170449ee88315; \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< 9e9fa6a9198b767b00f48160800128e83a038f9f
- Anyone running Linux 5.6

## Description

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

udmabuf: Set the DMA mask for the udmabuf device (v2)

If the DMA mask is not set explicitly, the following warning occurs
when the userspace tries to access the dma-buf via the CPU as
reported by syzbot here:

WARNING: CPU: 1 PID: 3595 at kernel/dma/mapping.c:188
\_\_dma\_map\_sg\_attrs+0x181/0x1f0 kernel/dma/mapping.c:188
Modules linked in:
CPU: 0 PID: 3595 Comm: syz-executor249 Not tainted
5.17.0-rc2-syzkaller-00316-g0457e5153e0e \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:\_\_dma\_map\_sg\_attrs+0x181/0x1f0 kernel/dma/mapping.c:188
Code: 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 71 4c 8b 3d c0
83 b5 0d e9 db fe ff ff e8 b6 0f 13 00 0f 0b e8 af 0f 13 00 \<0f\> 0b 45
   31 e4 e9 54 ff ff ff e8 a0 0f 13 00 49 8d 7f 50 48 b8 00
RSP: 0018:ffffc90002a07d68 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88807e25e2c0 RSI: ffffffff81649e91 RDI: ffff88801b848408
RBP: ffff88801b848000 R08: 0000000000000002 R09: ffff88801d86c74f
R10: ffffffff81649d72 R11: 0000000000000001 R12: 0000000000000002
R13: ffff88801d86c680 R14: 0000000000000001 R15: 0000000000000000
FS:  0000555556e30300(0000) GS:ffff8880b9d00000(0000)
knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200000cc CR3: 000000001d74a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 dma\_map\_sgtable+0x70/0xf0 kernel/dma/mapping.c:264
 get\_sg\_table.isra.0+0xe0/0x160 drivers/dma-buf/udmabuf.c:72
 begin\_cpu\_udmabuf+0x130/0x1d0 drivers/dma-buf/udmabuf.c:126
 dma\_buf\_begin\_cpu\_access+0xfd/0x1d0 drivers/dma-buf/dma-buf.c:1164
 dma\_buf\_ioctl+0x259/0x2b0 drivers/dma-buf/dma-buf.c:363
 vfs\_ioctl fs/ioctl.c:51 \[inline\]
 \_\_do\_sys\_ioctl fs/ioctl.c:874 \[inline\]
 \_\_se\_sys\_ioctl fs/ioctl.c:860 \[inline\]
 \_\_x64\_sys\_ioctl+0x193/0x200 fs/ioctl.c:860
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
RIP: 0033:0x7f62fcf530f9
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89
f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01
f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe3edab9b8 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f62fcf530f9
RDX: 0000000020000200 RSI: 0000000040086200 RDI: 0000000000000006
RBP: 00007f62fcf170e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f62fcf17170
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 \</TASK\>

v2: Dont't forget to deregister if DMA mask setup fails.

## Affected and fixed versions

- Linux: \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< 872875c9ecf8fa2e1d82bb2f2f1963f571aa8959; \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< e658538c610c6047b3c9f552e73801894d9284b1; \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< f2f6ea1a8da1317430a84701fc0170449ee88315; \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< 9e9fa6a9198b767b00f48160800128e83a038f9f (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- Upgrade Linux to 9e9fa6a9198b767b00f48160800128e83a038f9f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49983. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49983.md
Affected: Linux >= 284562e1f34874e267d4f499362c3816f8f6bc3f, < 872875c9ecf8fa2e1d82bb2f2f1963f571aa8959; >= 284562e1f34874e267d4f499362c3816f8f6bc3f, < e658538c610c6047b3c9f552e73801894d9284b1; >= 284562e1f34874e267d4f499362c3816f8f6bc3f, < f2f6ea1a8da1317430a84701fc0170449ee88315; >= 284562e1f34874e267d4f49…
Fixed in: Linux 872875c9ecf8fa2e1d82bb2f2f1963f571aa8959, Linux 9e9fa6a9198b767b00f48160800128e83a038f9f

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

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

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

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

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

Linux \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< 872875c9ecf8fa2e1d82bb2f2f1963f571aa8959; \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< e658538c610c6047b3c9f552e73801894d9284b1; \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< f2f6ea1a8da1317430a84701fc0170449ee88315; \>= 284562e1f34874e267d4f499362c3816f8f6bc3f, \< 9e9fa6a9198b767b00f48160800128e83a038f9f; Linux 5.6.

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

Yes. Fixed in Linux 872875c9ecf8fa2e1d82bb2f2f1963f571aa8959, Linux 9e9fa6a9198b767b00f48160800128e83a038f9f. Upgrade Linux to 9e9fa6a9198b767b00f48160800128e83a038f9f or later.

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

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/872875c9ecf8fa2e1d82bb2f2f1963f571aa8959>
- patch: <https://git.kernel.org/stable/c/e658538c610c6047b3c9f552e73801894d9284b1>
- patch: <https://git.kernel.org/stable/c/f2f6ea1a8da1317430a84701fc0170449ee88315>
- patch: <https://git.kernel.org/stable/c/9e9fa6a9198b767b00f48160800128e83a038f9f>

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

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