accel/amdxdna: reject command submission on devices without a submit op
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.427.1.57.2In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: reject command submission on devices without a submit op
amdxdna_cmd_submit() calls xdna->dev_info->ops->cmd_submit() unconditionally, but only aie2_dev_ops defines that callback. aie4_vf_ops (the AIE4 SR-IOV virtual function) does not, so a user AMDXDNA_EXEC_CMD ioctl on an AIE4 device reaches a NULL function-pointer call and oopses the kernel. AIE4 submits work through a mapped user queue and doorbell, not this ioctl path.
Reject the submission early with -EOPNOTSUPP when the device provides no cmd_submit op, so the shared EXEC ioctl is a clean no-op on such devices.
Found by 0sec automated security-research tooling (https://0sec.ai).
From the CVE record · Linux
The Linux kernel's accel/amdxdna driver calls a missing command-submission callback on AIE4 SR-IOV virtual functions. A local user who invokes the AMDXDNA_EXEC_CMD ioctl on an AIE4 device can trigger a NULL function-pointer call and kernel oops. No separate user interaction is described.
Engineers running Linux kernels with the accel/amdxdna driver on AIE4 SR-IOV virtual functions should check their systems; affected versions are not specified.