drm/amdgpu: reject CS chunks too large for kvmalloc()

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

drm/amdgpu: reject CS chunks too large for kvmalloc()

The CS ioctl copies every chunk with vmemdup_array_user() before it looks at it, for whatever length_dw userspace gives. kvmalloc() warns about allocations above INT_MAX when called without __GFP_NOWARN, so any process with the render node can trigger a warning. On navi31, a CS with a chunk of length_dw 0x20000000 returns -ENOMEM after:

WARNING: mm/slub.c:6841 at __kvmalloc_node_noprof+0x5a5/0x7d0

Reject such chunks with -EINVAL before trying to copy them.

(cherry picked from commit dab5f5280406088591645f499f048dcfefab8d7d)

ProductVersions
Linux Linux2098105ec65cb364f3d77baa446b2ad5ba6bc7b9 to before 0da6a43a12c9487d0846d958660f0d00f723b5b6 Affected2098105ec65cb364f3d77baa446b2ad5ba6bc7b9 to before 6b565ea4496abb73f28e5aba003a2f3bc388e66e Affected2098105ec65cb364f3d77baa446b2ad5ba6bc7b9 to before defd8429b67a250369d9da44ebc3d88ea0a49eaa Affected2098105ec65cb364f3d77baa446b2ad5ba6bc7b9 to before 033d351aef32df786b7c0fee25c13c4fa672bd57 Affected2098105ec65cb364f3d77baa446b2ad5ba6bc7b9 to before 0df2c70403e97d1daf242d23ee928105be140dd7 Affected2098105ec65cb364f3d77baa446b2ad5ba6bc7b9 to before cfa7fd53ed06c8cce47390a86781316bbb9d1e78 Affected2098105ec65cb364f3d77baa446b2ad5ba6bc7b9 to before d2de9c385d5e6de5f27391357359a77c79f22b68 Affected2098105ec65cb364f3d77baa446b2ad5ba6bc7b9 to before ba4c3c202919405f461a393e823e4b72c8518494 Affected
Linux Linux4.13 Affectedbefore 4.13 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.