firmware: arm_ffa: Fix memory leak by freeing notifier callback node
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.12.376.15.66.16In the Linux kernel, the following vulnerability has been resolved:
firmware: arm_ffa: Fix memory leak by freeing notifier callback node
Commit e0573444edbf ("firmware: arm_ffa: Add interfaces to request notification callbacks") adds support for notifier callbacks by allocating and inserting a callback node into a hashtable during registration of notifiers. However, during unregistration, the code only removes the node from the hashtable without freeing the associated memory, resulting in a memory leak.
Resolve the memory leak issue by ensuring the allocated notifier callback node is properly freed after it is removed from the hashtable entry.
From the CVE record · Linux
The Linux kernel’s ARM FF-A notifier callback code removes a callback node during unregistration without freeing its memory. This causes a memory leak; the input does not specify an attacker action, required access, or user interaction.
Engineers running Linux kernels with ARM FF-A notifier callback support should check whether their kernel includes the fix; affected versions are not specified.