drm/amdkfd: guard against NULL restore_mqd in CRIU queue restore
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ebffa44e7a21ead59ac4b4264e8fc2cbb44c4a21, Kernel 19c73848493ab58e39649700da6de11710a36de1, Kernel 6aa530642f95d5c48aa336416f94a35e7949b647 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: guard against NULL restore_mqd in CRIU queue restore Both create_queue_cpsch() and create_queue_nocpsch() unconditionally call mqd_mgr->restore_mqd() when a CRIU restore is in progress (qd != NULL), with no NULL guard. On any system where restore_mqd is not implemented for the given queue type, a user holding CAP_CHECKPOINT_RESTORE can trigger a kernel NULL pointer dereference and panic the machine by issuing KFD_IOC_CRIU_OP_RESTORE with a crafted queue restore object. Note that checkpoint_mqd is likewise unimplemented on GFX12, so no legitimate CRIU image can reach this path — only a hand-crafted restore payload. Add a NULL guard for restore_mqd immediately after mqd_mgr is resolved, unwinding via the existing error labels and returning -EOPNOTSUPP if the callback is not implemented. This mirrors the existing checkpoint_mqd guard in checkpoint_mqd().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=48f0bdf4e38e42b8285622cfcfc7e6e490b1a719 <ebffa44e7a21ead59ac4b4264e8fc2cbb44c4a21, >=48f0bdf4e38e42b8285622cfcfc7e6e490b1a719 <19c73848493ab58e39649700da6de11710a36de1, >=48f0bdf4e38e42b8285622cfcfc7e6e490b1a719 <6aa530642f95d5c48aa336416f94a35e7949b647, >=48f0bdf4e38e42b8285622cfcfc7e6e490b1a719 <c643c229babe2e8efc5eefe60e19d44868a643ff, =6.11 | ebffa44e7a21ead59ac4b4264e8fc2cbb44c4a21, 19c73848493ab58e39649700da6de11710a36de1, 6aa530642f95d5c48aa336416f94a35e7949b647, c643c229babe2e8efc5eefe60e19d44868a643ff |
| linux-kernel: Kernel | >=6.13.0 <6.18.51, >=6.19.0 <7.2.5, >=6.11.0 <6.12.110 | 6.18.51, 7.2.5, 6.12.110 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket