arm_mpam: Fix a NULL pointer dereference on unbinding after an error interrupt
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
arm_mpam: Fix a NULL pointer dereference on unbinding after an error interrupt
If a user unbinds an MSC after mpam_disable() has been run in response to an error interrupt then a dereference of a NULL pointer occurs as mpam_disable() sets the drvdata to NULL. Add an early return to the driver remove callback to avoid this.
From the CVE record · Linux
The Linux kernel arm_mpam driver can dereference a NULL pointer when an MSC is unbound after an error interrupt causes mpam_disable() to run. Triggering this requires an error interrupt followed by a user unbinding the MSC; the input does not specify what access is needed to unbind it.
Anyone running a Linux kernel with the arm_mpam driver should check whether their kernel is affected; affected versions are not specified.