uacce: fix cdev handling in the cleanup path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 015d239ac0142ad0e26567fd890ef8d171f13709 · < bd2393ed7712513e7e2dbcb6e21464a67ff9e702| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
uacce: fix cdev handling in the cleanup path
When cdev_device_add fails, it internally releases the cdev memory, and if cdev_device_del is then executed, it will cause a hang error. To fix it, we check the return value of cdev_device_add() and clear uacce->cdev to avoid calling cdev_device_del in the uacce_remove.
From the CVE record · Linux
The Linux kernel’s uacce cleanup path can hang if cdev_device_add fails and cleanup then calls cdev_device_del. The input does not specify whether an attacker can trigger this condition or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the uacce cleanup fix; affected versions are not specified.