Bug 2348353 (CVE-2022-49619) - CVE-2022-49619 kernel: net: sfp: fix memory leak in sfp_probe()
Summary: CVE-2022-49619 kernel: net: sfp: fix memory leak in sfp_probe()
Keywords:
Status: NEW
Alias: CVE-2022-49619
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:26 UTC by OSIDB Bzimport
Modified: 2025-03-16 14:10 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:26:29 UTC
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().

Comment 1 Avinash Hanwate 2025-02-26 06:57:45 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022615-CVE-2022-49619-bba8@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.