CVE-2022-49657 (GCVE-0-2022-49657)

Vulnerability from cvelistv5 – Published: 2025-02-26 02:23 – Updated: 2025-10-01 19:36
VLAI?
Title
usbnet: fix memory leak in error case
Summary
In the Linux kernel, the following vulnerability has been resolved: usbnet: fix memory leak in error case usbnet_write_cmd_async() mixed up which buffers need to be freed in which error case. v2: add Fixes tag v3: fix uninitialized buf pointer
CWE
  • CWE-401 - Missing Release of Memory after Effective Lifetime
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 877bd862f32b815d54ab5fc10a4fd903d7bf3012 , < 3eed421ca5c809da93456f69203d164d5220be3d (git)
Affected: 877bd862f32b815d54ab5fc10a4fd903d7bf3012 , < 5269209f54dd8dfd15f9383f3a3a1fe8370764f8 (git)
Affected: 877bd862f32b815d54ab5fc10a4fd903d7bf3012 , < d5165e657987ff4ba0ace896d4376a3718a9fbc3 (git)
Affected: 877bd862f32b815d54ab5fc10a4fd903d7bf3012 , < 04894ab34faf40ab72a8a5ab5b404bb0606bbbff (git)
Affected: 877bd862f32b815d54ab5fc10a4fd903d7bf3012 , < 0085da9df3dced730027923a6b48f58e9016af91 (git)
Affected: 877bd862f32b815d54ab5fc10a4fd903d7bf3012 , < db89582ff330556188da856e01382ccbf3a5e706 (git)
Affected: 877bd862f32b815d54ab5fc10a4fd903d7bf3012 , < e7b4f69946a38209b4a4f660bf0e4cbed94f9b4b (git)
Affected: 877bd862f32b815d54ab5fc10a4fd903d7bf3012 , < b55a21b764c1e182014630fa5486d717484ac58f (git)
Create a notification for this product.
    Linux Linux Affected: 3.8
Unaffected: 0 , < 3.8 (semver)
Unaffected: 4.9.323 , ≤ 4.9.* (semver)
Unaffected: 4.14.288 , ≤ 4.14.* (semver)
Unaffected: 4.19.252 , ≤ 4.19.* (semver)
Unaffected: 5.4.205 , ≤ 5.4.* (semver)
Unaffected: 5.10.130 , ≤ 5.10.* (semver)
Unaffected: 5.15.54 , ≤ 5.15.* (semver)
Unaffected: 5.18.11 , ≤ 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-49657",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-10-01T19:33:31.536163Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-401",
                "description": "CWE-401 Missing Release of Memory after Effective Lifetime",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-10-01T19:36:47.953Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/usb/usbnet.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3eed421ca5c809da93456f69203d164d5220be3d",
              "status": "affected",
              "version": "877bd862f32b815d54ab5fc10a4fd903d7bf3012",
              "versionType": "git"
            },
            {
              "lessThan": "5269209f54dd8dfd15f9383f3a3a1fe8370764f8",
              "status": "affected",
              "version": "877bd862f32b815d54ab5fc10a4fd903d7bf3012",
              "versionType": "git"
            },
            {
              "lessThan": "d5165e657987ff4ba0ace896d4376a3718a9fbc3",
              "status": "affected",
              "version": "877bd862f32b815d54ab5fc10a4fd903d7bf3012",
              "versionType": "git"
            },
            {
              "lessThan": "04894ab34faf40ab72a8a5ab5b404bb0606bbbff",
              "status": "affected",
              "version": "877bd862f32b815d54ab5fc10a4fd903d7bf3012",
              "versionType": "git"
            },
            {
              "lessThan": "0085da9df3dced730027923a6b48f58e9016af91",
              "status": "affected",
              "version": "877bd862f32b815d54ab5fc10a4fd903d7bf3012",
              "versionType": "git"
            },
            {
              "lessThan": "db89582ff330556188da856e01382ccbf3a5e706",
              "status": "affected",
              "version": "877bd862f32b815d54ab5fc10a4fd903d7bf3012",
              "versionType": "git"
            },
            {
              "lessThan": "e7b4f69946a38209b4a4f660bf0e4cbed94f9b4b",
              "status": "affected",
              "version": "877bd862f32b815d54ab5fc10a4fd903d7bf3012",
              "versionType": "git"
            },
            {
              "lessThan": "b55a21b764c1e182014630fa5486d717484ac58f",
              "status": "affected",
              "version": "877bd862f32b815d54ab5fc10a4fd903d7bf3012",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/usb/usbnet.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.8"
            },
            {
              "lessThan": "3.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.323",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.288",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.252",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.205",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.130",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.54",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.11",
              "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.323",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.288",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.252",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.205",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.130",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.54",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.11",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusbnet: fix memory leak in error case\n\nusbnet_write_cmd_async() mixed up which buffers\nneed to be freed in which error case.\n\nv2: add Fixes tag\nv3: fix uninitialized buf pointer"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:42:43.187Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3eed421ca5c809da93456f69203d164d5220be3d"
        },
        {
          "url": "https://git.kernel.org/stable/c/5269209f54dd8dfd15f9383f3a3a1fe8370764f8"
        },
        {
          "url": "https://git.kernel.org/stable/c/d5165e657987ff4ba0ace896d4376a3718a9fbc3"
        },
        {
          "url": "https://git.kernel.org/stable/c/04894ab34faf40ab72a8a5ab5b404bb0606bbbff"
        },
        {
          "url": "https://git.kernel.org/stable/c/0085da9df3dced730027923a6b48f58e9016af91"
        },
        {
          "url": "https://git.kernel.org/stable/c/db89582ff330556188da856e01382ccbf3a5e706"
        },
        {
          "url": "https://git.kernel.org/stable/c/e7b4f69946a38209b4a4f660bf0e4cbed94f9b4b"
        },
        {
          "url": "https://git.kernel.org/stable/c/b55a21b764c1e182014630fa5486d717484ac58f"
        }
      ],
      "title": "usbnet: fix memory leak in error case",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49657",
    "datePublished": "2025-02-26T02:23:56.417Z",
    "dateReserved": "2025-02-26T02:21:30.434Z",
    "dateUpdated": "2025-10-01T19:36:47.953Z",
    "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…