CVE-2022-49389 (GCVE-0-2022-49389)

Vulnerability from cvelistv5 – Published: 2025-02-26 02:11 – Updated: 2025-10-01 19:46
VLAI?
Title
usb: usbip: fix a refcount leak in stub_probe()
Summary
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.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 3ff67445750a84de67faaf52c6e1895cb09f2c56 , < 6bafee2f18af5e5ac125e42960bc65496d0e56a0 (git)
Affected: 3ff67445750a84de67faaf52c6e1895cb09f2c56 , < f20d2d3b3364ce6525c050a8b6b4c54c8c19674d (git)
Affected: 3ff67445750a84de67faaf52c6e1895cb09f2c56 , < 247d3809e45a34d9e1a3a2bb7012e31ed8b46031 (git)
Affected: 3ff67445750a84de67faaf52c6e1895cb09f2c56 , < 2f0ae93ec33c8456cdfbf7876b80403a6318ebce (git)
Affected: 3ff67445750a84de67faaf52c6e1895cb09f2c56 , < bcbb795a9e78180d74c6ab21518da87e803dfdce (git)
Affected: 3ff67445750a84de67faaf52c6e1895cb09f2c56 , < 51422046be504515eb5a591adf0f424b62f46804 (git)
Affected: 3ff67445750a84de67faaf52c6e1895cb09f2c56 , < 8afb048800919d0ab10c57983940eba956339f21 (git)
Affected: 3ff67445750a84de67faaf52c6e1895cb09f2c56 , < 11c65408bd0ba1d9cd1307caa38169292de9cdfb (git)
Affected: 3ff67445750a84de67faaf52c6e1895cb09f2c56 , < 9ec4cbf1cc55d126759051acfe328d489c5d6e60 (git)
Affected: 77e7f91231bf63e3c64eb59a2aaf5754eaea2e69 (git)
Affected: d0f35e23dafa0185f979d0c70463caa658062264 (git)
Create a notification for this product.
    Linux Linux Affected: 3.19
Unaffected: 0 , < 3.19 (semver)
Unaffected: 4.9.318 , ≤ 4.9.* (semver)
Unaffected: 4.14.283 , ≤ 4.14.* (semver)
Unaffected: 4.19.247 , ≤ 4.19.* (semver)
Unaffected: 5.4.198 , ≤ 5.4.* (semver)
Unaffected: 5.10.122 , ≤ 5.10.* (semver)
Unaffected: 5.15.47 , ≤ 5.15.* (semver)
Unaffected: 5.17.15 , ≤ 5.17.* (semver)
Unaffected: 5.18.4 , ≤ 5.18.* (semver)
Unaffected: 5.19 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 5.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2022-49389",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-10-01T19:41:37.910870Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "description": "CWE-noinfo Not enough information",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-10-01T19:46:51.414Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/usbip/stub_dev.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "6bafee2f18af5e5ac125e42960bc65496d0e56a0",
              "status": "affected",
              "version": "3ff67445750a84de67faaf52c6e1895cb09f2c56",
              "versionType": "git"
            },
            {
              "lessThan": "f20d2d3b3364ce6525c050a8b6b4c54c8c19674d",
              "status": "affected",
              "version": "3ff67445750a84de67faaf52c6e1895cb09f2c56",
              "versionType": "git"
            },
            {
              "lessThan": "247d3809e45a34d9e1a3a2bb7012e31ed8b46031",
              "status": "affected",
              "version": "3ff67445750a84de67faaf52c6e1895cb09f2c56",
              "versionType": "git"
            },
            {
              "lessThan": "2f0ae93ec33c8456cdfbf7876b80403a6318ebce",
              "status": "affected",
              "version": "3ff67445750a84de67faaf52c6e1895cb09f2c56",
              "versionType": "git"
            },
            {
              "lessThan": "bcbb795a9e78180d74c6ab21518da87e803dfdce",
              "status": "affected",
              "version": "3ff67445750a84de67faaf52c6e1895cb09f2c56",
              "versionType": "git"
            },
            {
              "lessThan": "51422046be504515eb5a591adf0f424b62f46804",
              "status": "affected",
              "version": "3ff67445750a84de67faaf52c6e1895cb09f2c56",
              "versionType": "git"
            },
            {
              "lessThan": "8afb048800919d0ab10c57983940eba956339f21",
              "status": "affected",
              "version": "3ff67445750a84de67faaf52c6e1895cb09f2c56",
              "versionType": "git"
            },
            {
              "lessThan": "11c65408bd0ba1d9cd1307caa38169292de9cdfb",
              "status": "affected",
              "version": "3ff67445750a84de67faaf52c6e1895cb09f2c56",
              "versionType": "git"
            },
            {
              "lessThan": "9ec4cbf1cc55d126759051acfe328d489c5d6e60",
              "status": "affected",
              "version": "3ff67445750a84de67faaf52c6e1895cb09f2c56",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "77e7f91231bf63e3c64eb59a2aaf5754eaea2e69",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "d0f35e23dafa0185f979d0c70463caa658062264",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/usbip/stub_dev.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.19"
            },
            {
              "lessThan": "3.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.318",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.283",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.247",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.198",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.122",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.47",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.15",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.318",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.283",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.247",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.198",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.122",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.47",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.15",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.4",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "3.16.58",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "3.18.110",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: usbip: fix a refcount leak in stub_probe()\n\nusb_get_dev() is called in stub_device_alloc(). When stub_probe() fails\nafter that, usb_put_dev() needs to be called to release the reference.\n\nFix this by moving usb_put_dev() to sdev_free error path handling.\n\nFind this by code review."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T12:44:33.103Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/6bafee2f18af5e5ac125e42960bc65496d0e56a0"
        },
        {
          "url": "https://git.kernel.org/stable/c/f20d2d3b3364ce6525c050a8b6b4c54c8c19674d"
        },
        {
          "url": "https://git.kernel.org/stable/c/247d3809e45a34d9e1a3a2bb7012e31ed8b46031"
        },
        {
          "url": "https://git.kernel.org/stable/c/2f0ae93ec33c8456cdfbf7876b80403a6318ebce"
        },
        {
          "url": "https://git.kernel.org/stable/c/bcbb795a9e78180d74c6ab21518da87e803dfdce"
        },
        {
          "url": "https://git.kernel.org/stable/c/51422046be504515eb5a591adf0f424b62f46804"
        },
        {
          "url": "https://git.kernel.org/stable/c/8afb048800919d0ab10c57983940eba956339f21"
        },
        {
          "url": "https://git.kernel.org/stable/c/11c65408bd0ba1d9cd1307caa38169292de9cdfb"
        },
        {
          "url": "https://git.kernel.org/stable/c/9ec4cbf1cc55d126759051acfe328d489c5d6e60"
        }
      ],
      "title": "usb: usbip: fix a refcount leak in stub_probe()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49389",
    "datePublished": "2025-02-26T02:11:22.834Z",
    "dateReserved": "2025-02-26T02:08:31.561Z",
    "dateUpdated": "2025-10-01T19:46:51.414Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…