drm/amdgpu/atom: Check kcalloc() for WS buffer in amdgpu_atom_execute_table_locked()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.58, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/atom: Check kcalloc() for WS buffer in amdgpu_atom_execute_table_locked() kcalloc() may fail. When WS is non-zero and allocation fails, ectx.ws remains NULL while ectx.ws_size is set, leading to a potential NULL pointer dereference in atom_get_src_int() when accessing WS entries. Return -ENOMEM on allocation failure to avoid the NULL dereference.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From d38ceaf99ed015f2a0b9af3499791bd3a3daae21 · fixed in 0b52e3192181b4de58844faedd2928e5c6ca0e06; From d38ceaf99ed015f2a0b9af3499791bd3a3daae21 · fixed in 47252c7d5559d8776ad336be9c955d8404e7ae69; From d38ceaf99ed015f2a0b9af3499791bd3a3daae21 · fixed in 88d198836f628c57536c6c71d13e90c5d15fbf1a; From d38ceaf99ed015f2a0b9af3499791bd3a3daae21 · fixed in 73853208a497a036596dcf9efbff8ce927651d3a; From d38ceaf99ed015f2a0b9af3499791bd3a3daae21 · fixed in 35f3fb86bb0158a298d6834e7e110dcaf07f490c; From d38ceaf99ed015f2a0b9af3499791bd3a3daae21 · fixed in 997e28d3d00a1d30649629515e4402612921205b; From d38ceaf99ed015f2a0b9af3499791bd3a3daae21 · fixed in cc9a8e238e42c1f43b98c097995137d644b69245
- Linux Linux
4.2
- KernelLinux
From 4.2.0 · fixed in 5.10.271; From 5.11.0 · fixed in 5.15.222; From 5.16.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.58; From 6.13.0 · fixed in 6.17.8
References 7
git.kernel.org
- stable/c/0b52e3192181b4de58844faedd2928e5c6ca0e06
- stable/c/47252c7d5559d8776ad336be9c955d8404e7ae69
- stable/c/88d198836f628c57536c6c71d13e90c5d15fbf1a
- stable/c/73853208a497a036596dcf9efbff8ce927651d3a
- stable/c/35f3fb86bb0158a298d6834e7e110dcaf07f490c
- stable/c/997e28d3d00a1d30649629515e4402612921205b
- stable/c/cc9a8e238e42c1f43b98c097995137d644b69245