firmware: arm_scmi: Unregister device notifier before IDR teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 53b8c25df7082edd78a3fc63e359abee0f28fa70 · < 66a0bbf30cc14140fe13f63cd594a7c1ee352b75| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
firmware: arm_scmi: Unregister device notifier before IDR teardown
The requested-devices notifier looks up protocol fwnodes from the active_protocols IDR. During remove, unregister the notifier before releasing and destroying active_protocols so no notifier callback can race with the IDR teardown.
Keep the bus notifier registered until after the protocol state is torn down, matching the existing remove ordering for SCMI bus users.
From the CVE record · Linux
The Linux kernel’s ARM SCMI requested-devices notifier can access protocol state while that state is being torn down during removal. A notifier callback racing with removal could access the IDR during teardown. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels that use the ARM SCMI firmware driver should check their versions; affected versions are not specified.