# CVE-2025-38091: drm/amd/display: check stream id dml21 wrapper to get plane\_id

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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-07-02T14:43:30.118Z
- **Modified:** 2026-06-17T09:16:02.190Z

## Who should check

- Anyone running Linux \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< 6f47d7408133631a1b178f8a04e79aee189ef046; \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< c53f23f7075c9f63f14d7ec8f2cc3e33e118d986; \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< 2ddac70fed50485aa4ae49cdb7478ce41d8d4715
- Anyone running Linux 6.11

## Description

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

drm/amd/display: check stream id dml21 wrapper to get plane\_id

\[Why & How\]
Fix a false positive warning which occurs due to lack of correct checks
when querying plane\_id in DML21. This fixes the warning when performing a
mode1 reset (cat /sys/kernel/debug/dri/1/amdgpu\_gpu\_recover):

\[   35.751250\] WARNING: CPU: 11 PID: 326 at /tmp/amd.PHpyAl7v/amd/amdgpu/../display/dc/dml2/dml2\_dc\_resource\_mgmt.c:91 dml2\_map\_dc\_pipes+0x243d/0x3f40 \[amdgpu\]
\[   35.751434\] Modules linked in: amdgpu(OE) amddrm\_ttm\_helper(OE) amdttm(OE) amddrm\_buddy(OE) amdxcp(OE) amddrm\_exec(OE) amd\_sched(OE) amdkcl(OE) drm\_suballoc\_helper drm\_ttm\_helper ttm drm\_display\_helper cec rc\_core i2c\_algo\_bit rfcomm qrtr cmac algif\_hash algif\_skcipher af\_alg bnep amd\_atl intel\_rapl\_msr intel\_rapl\_common snd\_hda\_codec\_hdmi snd\_hda\_intel edac\_mce\_amd snd\_intel\_dspcfg snd\_intel\_sdw\_acpi snd\_hda\_codec kvm\_amd snd\_hda\_core snd\_hwdep snd\_pcm kvm snd\_seq\_midi snd\_seq\_midi\_event snd\_rawmidi crct10dif\_pclmul polyval\_clmulni polyval\_generic btusb ghash\_clmulni\_intel sha256\_ssse3 btrtl sha1\_ssse3 snd\_seq btintel aesni\_intel btbcm btmtk snd\_seq\_device crypto\_simd sunrpc cryptd bluetooth snd\_timer ccp binfmt\_misc rapl snd i2c\_piix4 wmi\_bmof gigabyte\_wmi k10temp i2c\_smbus soundcore gpio\_amdpt mac\_hid sch\_fq\_codel msr parport\_pc ppdev lp parport efi\_pstore nfnetlink dmi\_sysfs ip\_tables x\_tables autofs4 hid\_generic usbhid hid crc32\_pclmul igc ahci xhci\_pci libahci xhci\_pci\_renesas video wmi
\[   35.751501\] CPU: 11 UID: 0 PID: 326 Comm: kworker/u64:9 Tainted: G           OE      6.11.0-21-generic \#21~24.04.1-Ubuntu
\[   35.751504\] Tainted: \[O\]=OOT\_MODULE, \[E\]=UNSIGNED\_MODULE
\[   35.751505\] Hardware name: Gigabyte Technology Co., Ltd. X670E AORUS PRO X/X670E AORUS PRO X, BIOS F30 05/22/2024
\[   35.751506\] Workqueue: amdgpu-reset-dev amdgpu\_debugfs\_reset\_work \[amdgpu\]
\[   35.751638\] RIP: 0010:dml2\_map\_dc\_pipes+0x243d/0x3f40 \[amdgpu\]
\[   35.751794\] Code: 6d 0c 00 00 8b 84 24 88 00 00 00 41 3b 44 9c 20 0f 84 fc 07 00 00 48 83 c3 01 48 83 fb 06 75 b3 4c 8b 64 24 68 4c 8b 6c 24 40 \<0f\> 0b b8 06 00 00 00 49 8b 94 24 a0 49 00 00 89 c3 83 f8 07 0f 87
\[   35.751796\] RSP: 0018:ffffbfa3805d7680 EFLAGS: 00010246
\[   35.751798\] RAX: 0000000000010000 RBX: 0000000000000006 RCX: 0000000000000000
\[   35.751799\] RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000
\[   35.751800\] RBP: ffffbfa3805d78f0 R08: 0000000000000000 R09: 0000000000000000
\[   35.751801\] R10: 0000000000000000 R11: 0000000000000000 R12: ffffbfa383249000
\[   35.751802\] R13: ffffa0e68f280000 R14: ffffbfa383249658 R15: 0000000000000000
\[   35.751803\] FS:  0000000000000000(0000) GS:ffffa0edbe580000(0000) knlGS:0000000000000000
\[   35.751804\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[   35.751805\] CR2: 00005d847ef96c58 CR3: 000000041de3e000 CR4: 0000000000f50ef0
\[   35.751806\] PKRU: 55555554
\[   35.751807\] Call Trace:
\[   35.751810\]  \<TASK\>
\[   35.751816\]  ? show\_regs+0x6c/0x80
\[   35.751820\]  ? \_\_warn+0x88/0x140
\[   35.751822\]  ? dml2\_map\_dc\_pipes+0x243d/0x3f40 \[amdgpu\]
\[   35.751964\]  ? report\_bug+0x182/0x1b0
\[   35.751969\]  ? handle\_bug+0x6e/0xb0
\[   35.751972\]  ? exc\_invalid\_op+0x18/0x80
\[   35.751974\]  ? asm\_exc\_invalid\_op+0x1b/0x20
\[   35.751978\]  ? dml2\_map\_dc\_pipes+0x243d/0x3f40 \[amdgpu\]
\[   35.752117\]  ? math\_pow+0x48/0xa0 \[amdgpu\]
\[   35.752256\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[   35.752260\]  ? math\_pow+0x48/0xa0 \[amdgpu\]
\[   35.752400\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[   35.752403\]  ? math\_pow+0x11/0xa0 \[amdgpu\]
\[   35.752524\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[   35.752526\]  ? core\_dcn4\_mode\_programming+0xe4d/0x20d0 \[amdgpu\]
\[   35.752663\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[   35.752669\]  dml21\_validate+0x3d4/0x980 \[amdgpu\]

(cherry picked from commit f8ad62c0a93e5dd94243e10f1b742232e4d6411e)

## Affected and fixed versions

- Linux: \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< 6f47d7408133631a1b178f8a04e79aee189ef046; \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< c53f23f7075c9f63f14d7ec8f2cc3e33e118d986; \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< 2ddac70fed50485aa4ae49cdb7478ce41d8d4715 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 2ddac70fed50485aa4ae49cdb7478ce41d8d4715 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38091.md
Affected: Linux >= 70839da6360500a82e4d5f78499284474cbed7c1, < 6f47d7408133631a1b178f8a04e79aee189ef046; >= 70839da6360500a82e4d5f78499284474cbed7c1, < c53f23f7075c9f63f14d7ec8f2cc3e33e118d986; >= 70839da6360500a82e4d5f78499284474cbed7c1, < 2ddac70fed50485aa4ae49cdb7478ce41d8d4715; Linux 6.11
Fixed in: Linux 6f47d7408133631a1b178f8a04e79aee189ef046, Linux 2ddac70fed50485aa4ae49cdb7478ce41d8d4715

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-2025-38091 being exploited?

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

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

### Which versions are affected by CVE-2025-38091?

Linux \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< 6f47d7408133631a1b178f8a04e79aee189ef046; \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< c53f23f7075c9f63f14d7ec8f2cc3e33e118d986; \>= 70839da6360500a82e4d5f78499284474cbed7c1, \< 2ddac70fed50485aa4ae49cdb7478ce41d8d4715; Linux 6.11.

### Is there a fix for CVE-2025-38091?

Yes. Fixed in Linux 6f47d7408133631a1b178f8a04e79aee189ef046, Linux 2ddac70fed50485aa4ae49cdb7478ce41d8d4715. Upgrade Linux to 2ddac70fed50485aa4ae49cdb7478ce41d8d4715 or later.

### How do I check if I'm affected by CVE-2025-38091?

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/6f47d7408133631a1b178f8a04e79aee189ef046>
- patch: <https://git.kernel.org/stable/c/c53f23f7075c9f63f14d7ec8f2cc3e33e118d986>
- patch: <https://git.kernel.org/stable/c/2ddac70fed50485aa4ae49cdb7478ce41d8d4715>

## 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-2025-38091>

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