# CVE-2024-26746: dmaengine: idxd: Ensure safe user copy of completion record

> 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.30% (percentile 16, 2026-11-26)
- **Published:** 2024-04-04T08:20:13.846Z
- **Modified:** 2026-06-17T07:18:14.377Z

## Who should check

- Anyone running Linux \>= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, \< 5e3022ea42e490a36ec6f2cfa6fc603deb0bace4; \>= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, \< bb71e040323175e18c233a9afef32ba14fa64eb7; \>= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, \< d3ea125df37dc37972d581b74a5d3785c3f283ab
- Anyone running Linux 6.4

## Description

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

dmaengine: idxd: Ensure safe user copy of completion record

If CONFIG\_HARDENED\_USERCOPY is enabled, copying completion record from
event log cache to user triggers a kernel bug.

\[ 1987.159822\] usercopy: Kernel memory exposure attempt detected from SLUB object 'dsa0' (offset 74, size 31)!
\[ 1987.170845\] ------------\[ cut here \]------------
\[ 1987.176086\] kernel BUG at mm/usercopy.c:102!
\[ 1987.180946\] invalid opcode: 0000 \[\#1\] PREEMPT SMP NOPTI
\[ 1987.186866\] CPU: 17 PID: 528 Comm: kworker/17:1 Not tainted 6.8.0-rc2+ \#5
\[ 1987.194537\] Hardware name: Intel Corporation AvenueCity/AvenueCity, BIOS BHSDCRB1.86B.2492.D03.2307181620 07/18/2023
\[ 1987.206405\] Workqueue: wq0.0 idxd\_evl\_fault\_work \[idxd\]
\[ 1987.212338\] RIP: 0010:usercopy\_abort+0x72/0x90
\[ 1987.217381\] Code: 58 65 9c 50 48 c7 c2 17 85 61 9c 57 48 c7 c7 98 fd 6b 9c 48 0f 44 d6 48 c7 c6 b3 08 62 9c 4c 89 d1 49 0f 44 f3 e8 1e 2e d5 ff \<0f\> 0b 49 c7 c1 9e 42 61 9c 4c 89 cf 4d 89 c8 eb a9 66 66 2e 0f 1f
\[ 1987.238505\] RSP: 0018:ff62f5cf20607d60 EFLAGS: 00010246
\[ 1987.244423\] RAX: 000000000000005f RBX: 000000000000001f RCX: 0000000000000000
\[ 1987.252480\] RDX: 0000000000000000 RSI: ffffffff9c61429e RDI: 00000000ffffffff
\[ 1987.260538\] RBP: ff62f5cf20607d78 R08: ff2a6a89ef3fffe8 R09: 00000000fffeffff
\[ 1987.268595\] R10: ff2a6a89eed00000 R11: 0000000000000003 R12: ff2a66934849c89a
\[ 1987.276652\] R13: 0000000000000001 R14: ff2a66934849c8b9 R15: ff2a66934849c899
\[ 1987.284710\] FS:  0000000000000000(0000) GS:ff2a66b22fe40000(0000) knlGS:0000000000000000
\[ 1987.293850\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 1987.300355\] CR2: 00007fe291a37000 CR3: 000000010fbd4005 CR4: 0000000000f71ef0
\[ 1987.308413\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[ 1987.316470\] DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400
\[ 1987.324527\] PKRU: 55555554
\[ 1987.327622\] Call Trace:
\[ 1987.330424\]  \<TASK\>
\[ 1987.332826\]  ? show\_regs+0x6e/0x80
\[ 1987.336703\]  ? die+0x3c/0xa0
\[ 1987.339988\]  ? do\_trap+0xd4/0xf0
\[ 1987.343662\]  ? do\_error\_trap+0x75/0xa0
\[ 1987.347922\]  ? usercopy\_abort+0x72/0x90
\[ 1987.352277\]  ? exc\_invalid\_op+0x57/0x80
\[ 1987.356634\]  ? usercopy\_abort+0x72/0x90
\[ 1987.360988\]  ? asm\_exc\_invalid\_op+0x1f/0x30
\[ 1987.365734\]  ? usercopy\_abort+0x72/0x90
\[ 1987.370088\]  \_\_check\_heap\_object+0xb7/0xd0
\[ 1987.374739\]  \_\_check\_object\_size+0x175/0x2d0
\[ 1987.379588\]  idxd\_copy\_cr+0xa9/0x130 \[idxd\]
\[ 1987.384341\]  idxd\_evl\_fault\_work+0x127/0x390 \[idxd\]
\[ 1987.389878\]  process\_one\_work+0x13e/0x300
\[ 1987.394435\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\[ 1987.399284\]  worker\_thread+0x2f7/0x420
\[ 1987.403544\]  ? \_raw\_spin\_unlock\_irqrestore+0x2b/0x50
\[ 1987.409171\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\[ 1987.414019\]  kthread+0x107/0x140
\[ 1987.417693\]  ? \_\_pfx\_kthread+0x10/0x10
\[ 1987.421954\]  ret\_from\_fork+0x3d/0x60
\[ 1987.426019\]  ? \_\_pfx\_kthread+0x10/0x10
\[ 1987.430281\]  ret\_from\_fork\_asm+0x1b/0x30
\[ 1987.434744\]  \</TASK\>

The issue arises because event log cache is created using
kmem\_cache\_create() which is not suitable for user copy.

Fix the issue by creating event log cache with
kmem\_cache\_create\_usercopy(), ensuring safe user copy.

## Affected and fixed versions

- Linux: \>= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, \< 5e3022ea42e490a36ec6f2cfa6fc603deb0bace4; \>= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, \< bb71e040323175e18c233a9afef32ba14fa64eb7; \>= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, \< d3ea125df37dc37972d581b74a5d3785c3f283ab (cvelist)
- Linux: 6.4 (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-2024-26746. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26746.md
Affected: Linux >= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, < 5e3022ea42e490a36ec6f2cfa6fc603deb0bace4; >= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, < bb71e040323175e18c233a9afef32ba14fa64eb7; >= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, < d3ea125df37dc37972d581b74a5d3785c3f283ab; Linux 6.4
Fixed in: Linux 5e3022ea42e490a36ec6f2cfa6fc603deb0bace4

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-2024-26746 being exploited?

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

### How serious is CVE-2024-26746?

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

### Which versions are affected by CVE-2024-26746?

Linux \>= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, \< 5e3022ea42e490a36ec6f2cfa6fc603deb0bace4; \>= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, \< bb71e040323175e18c233a9afef32ba14fa64eb7; \>= c2f156bf168fb42cd6ecd0a8e2204dbe542b8516, \< d3ea125df37dc37972d581b74a5d3785c3f283ab; Linux 6.4.

### Is there a fix for CVE-2024-26746?

Yes. Fixed in Linux 5e3022ea42e490a36ec6f2cfa6fc603deb0bace4. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26746?

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/5e3022ea42e490a36ec6f2cfa6fc603deb0bace4>
- patch: <https://git.kernel.org/stable/c/bb71e040323175e18c233a9afef32ba14fa64eb7>
- patch: <https://git.kernel.org/stable/c/d3ea125df37dc37972d581b74a5d3785c3f283ab>

## 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-2024-26746>

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