idpf: fix memory leak of flow steer list on rmmod
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:
idpf: fix memory leak of flow steer list on rmmod
The flow steering list maintains entries that are added and removed as ethtool creates and deletes flow steering rules. Module removal with active entries causes memory leak as the list is not properly cleaned up.
Prevent this by iterating through the remaining entries in the list and freeing the associated memory during module removal. Add a spinlock (flow_steer_list_lock) to protect the list access from multiple threads.
From the CVE record · Linux
The Linux kernel's idpf module does not clean up flow steering list entries when the module is removed. Removing the module while flow steering rules remain active causes a memory leak. The input does not specify whether an attacker can trigger this or what access or interaction would be required.
Engineers running Linux kernels with the idpf module should check their versions; affected versions are not specified.