CVE-2022-49619Published Feb 26, 2025 · Feb 26Updated Oct 28
net: sfp: fix memory leak in sfp_probe()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 73970055450eebc6fc36fd170e56cc45889d0093 · < f22ddc8a5278d7fb6369a0aeb0d8775a0aefaaee| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: sfp: fix memory leak in sfp_probe()
sfp_probe() allocates a memory chunk from sfp with sfp_alloc(). When devm_add_action() fails, sfp is not freed, which leads to a memory leak.
We should use devm_add_action_or_reset() instead of devm_add_action().
From the CVE record · Linux
The Linux kernel's sfp_probe() leaks allocated memory if devm_add_action() fails. The input does not establish whether an attacker can trigger this failure or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.