accel/amdxdna: Fix potential NULL pointer dereference in context cleanup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.576.19.47.0In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Fix potential NULL pointer dereference in context cleanup
aie_destroy_context() is invoked during error handling in aie2_create_context(). However, aie_destroy_context() assumes that the context's mailbox channel pointer is non-NULL. If mailbox channel creation fails, the pointer remains NULL and calling aie_destroy_context() can lead to a NULL pointer dereference.
In aie2_create_context(), replace aie_destroy_context() with a function which request firmware to remove the context created previously.
From the CVE record · Linux
The Linux kernel’s accel/amdxdna driver can dereference a NULL mailbox channel pointer while cleaning up a context if mailbox channel creation fails. This can cause a kernel crash. The input does not specify an attack path, authentication requirements, or user interaction.
Teams running Linux kernels with the accel/amdxdna driver should check whether their versions are affected; no affected versions are listed.