CVE-2022-49389

usb: usbip: fix a refcount leak in stub_probe()

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:11 AM UTC
Updated: June 17, 2026 at 05:17 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: usb: usbip: fix a refcount leak in stub_probe() usb_get_dev() is called in stub_device_alloc(). When stub_probe() fails after that, usb_put_dev() needs to be called to release the reference. Fix this by moving usb_put_dev() to sdev_free error path handling. Find this by code review.

Affected

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

v ≥ 3.16.58v ≥ 3.18.1103.16.58 ≤ v < 3.173.18.110 ≤ v < 3.193.18.110 ≤ v < 4.9.3183.19 ≤ v < 4.14.2833.19 ≤ v < 4.19.2473.19 ≤ v < 4.9.3183.19 ≤ v < 5.10.1223.19 ≤ v < 5.15.473.19 ≤ v < 5.17.153.19 ≤ v < 5.18.43.19 ≤ v < 5.193.19 ≤ v < 5.4.1984.10 ≤ v < 4.14.2834.15 ≤ v < 4.19.2474.20 ≤ v < 5.4.1985.11 ≤ v < 5.15.475.16 ≤ v < 5.17.155.18 ≤ v < 5.18.45.5 ≤ v < 5.10.1223.16.583.18.1103.193ff67445750a84de67faaf52c6e1895cb09f2c5677e7f91231bf63e3c64eb59a2aaf5754eaea2e69d0f35e23dafa0185f979d0c70463caa658062264
Vendor states this is fixed in 11c65408bd0ba1d9cd1307caa38169292de9cdfb (fixed)
Vendor states this is fixed in 247d3809e45a34d9e1a3a2bb7012e31ed8b46031 (fixed)
Vendor states this is fixed in 2f0ae93ec33c8456cdfbf7876b80403a6318ebce (fixed)
Vendor states this is fixed in 51422046be504515eb5a591adf0f424b62f46804 (fixed)
Vendor states this is fixed in 6bafee2f18af5e5ac125e42960bc65496d0e56a0 (fixed)
Vendor states this is fixed in 8afb048800919d0ab10c57983940eba956339f21 (fixed)
Vendor states this is fixed in 9ec4cbf1cc55d126759051acfe328d489c5d6e60 (fixed)
Vendor states this is fixed in bcbb795a9e78180d74c6ab21518da87e803dfdce (fixed)
Vendor states this is fixed in f20d2d3b3364ce6525c050a8b6b4c54c8c19674d (fixed)
Affected range stops below 3.17, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 3.19 (unaffected)
Vendor states this is fixed in 4.14.283 (unaffected)
Vendor states this is fixed in 4.19.247 (unaffected)
Vendor states this is fixed in 4.9.318 (unaffected)
Vendor states this is fixed in 5.10.122 (unaffected)
Vendor states this is fixed in 5.15.47 (unaffected)
Vendor states this is fixed in 5.17.15 (unaffected)
Vendor states this is fixed in 5.18.4 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.198 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/11c65408bd0ba1d9cd1307caa38169292de9cdfb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/247d3809e45a34d9e1a3a2bb7012e31ed8b46031
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2f0ae93ec33c8456cdfbf7876b80403a6318ebce
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/51422046be504515eb5a591adf0f424b62f46804
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6bafee2f18af5e5ac125e42960bc65496d0e56a0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8afb048800919d0ab10c57983940eba956339f21
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9ec4cbf1cc55d126759051acfe328d489c5d6e60
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bcbb795a9e78180d74c6ab21518da87e803dfdce

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
NVD-CWE-Other

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