CVE-2022-49619

net: sfp: fix memory leak in sfp_probe()

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:23 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.14.2894.14 ≤ v < 4.14.2894.14 ≤ v < 4.19.2534.14 ≤ v < 5.10.1324.14 ≤ v < 5.15.564.14 ≤ v < 5.18.134.14 ≤ v < 5.194.14 ≤ v < 5.4.2074.15 ≤ v < 4.19.2534.20 ≤ v < 5.4.2075.11 ≤ v < 5.15.565.16 ≤ v < 5.18.135.5 ≤ v < 5.10.1325.19 rc15.19 rc25.19 rc35.19 rc473970055450eebc6fc36fd170e56cc45889d0093
Vendor states this is fixed in 0a18d802d65cf662644fd1d369c86d84a5630652 (fixed)
Vendor states this is fixed in 1545bc727625ea6e8decd717e5d1e8cc704ccf8f (fixed)
Vendor states this is fixed in 204543581a2f26bb3b997a304c0bd06926ba7f15 (fixed)
Vendor states this is fixed in 67dc32542a1fb7790d0853cf4a5cf859ac6a2002 (fixed)
Vendor states this is fixed in 9ec5a97f327a89031fce6cfc3e95543c53936638 (fixed)
Vendor states this is fixed in ede990cfc42775bd0141e21f37ee365dcaeeb50f (fixed)
Vendor states this is fixed in f22ddc8a5278d7fb6369a0aeb0d8775a0aefaaee (fixed)
Vendor states this is fixed in 4.14 (unaffected)
Vendor states this is fixed in 4.14.289 (unaffected)
Vendor states this is fixed in 4.19.253 (unaffected)
Vendor states this is fixed in 5.10.132 (unaffected)
Vendor states this is fixed in 5.15.56 (unaffected)
Vendor states this is fixed in 5.18.13 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.207 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0a18d802d65cf662644fd1d369c86d84a5630652
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1545bc727625ea6e8decd717e5d1e8cc704ccf8f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/204543581a2f26bb3b997a304c0bd06926ba7f15
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/67dc32542a1fb7790d0853cf4a5cf859ac6a2002
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9ec5a97f327a89031fce6cfc3e95543c53936638
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ede990cfc42775bd0141e21f37ee365dcaeeb50f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f22ddc8a5278d7fb6369a0aeb0d8775a0aefaaee

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card