CVE-2022-49712 (GCVE-0-2022-49712)

Vulnerability from cvelistv5 – Published: 2025-02-26 02:24 – Updated: 2025-10-01 19:36
VLAI?
Title
usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe
Summary
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. of_node_put() will check NULL pointer.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 24a28e4283510dcd58890379a42b8a7d3201d9d3 , < d85e4e6284a91aa2d1ab004e9d84b9c09b4aa203 (git)
Affected: 24a28e4283510dcd58890379a42b8a7d3201d9d3 , < 0ef6917c0524da5b88496b9706628ffef108b9bb (git)
Affected: 24a28e4283510dcd58890379a42b8a7d3201d9d3 , < 2a598da14856ead80c726b38ba426c68637d9211 (git)
Affected: 24a28e4283510dcd58890379a42b8a7d3201d9d3 , < b75bddfcc18170ce8e3fb695a76ec2dec4ce0ea5 (git)
Affected: 24a28e4283510dcd58890379a42b8a7d3201d9d3 , < 57901c658f77d9ea2e772f35cb38e47efb54c558 (git)
Affected: 24a28e4283510dcd58890379a42b8a7d3201d9d3 , < 46da1e4a8b6329479433b2a4056941dfdd7f3efd (git)
Affected: 24a28e4283510dcd58890379a42b8a7d3201d9d3 , < 727c82d003e0ec64411fd1257a9a57de4ad7a99a (git)
Affected: 24a28e4283510dcd58890379a42b8a7d3201d9d3 , < 4757c9ade34178b351580133771f510b5ffcf9c8 (git)
Create a notification for this product.
    Linux Linux Affected: 3.5
Unaffected: 0 , < 3.5 (semver)
Unaffected: 4.9.320 , ≤ 4.9.* (semver)
Unaffected: 4.14.285 , ≤ 4.14.* (semver)
Unaffected: 4.19.249 , ≤ 4.19.* (semver)
Unaffected: 5.4.200 , ≤ 5.4.* (semver)
Unaffected: 5.10.124 , ≤ 5.10.* (semver)
Unaffected: 5.15.49 , ≤ 5.15.* (semver)
Unaffected: 5.18.6 , ≤ 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-49712",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-10-01T19:32:26.147841Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "description": "CWE-noinfo Not enough information",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-10-01T19:36:45.147Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/udc/lpc32xx_udc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "d85e4e6284a91aa2d1ab004e9d84b9c09b4aa203",
              "status": "affected",
              "version": "24a28e4283510dcd58890379a42b8a7d3201d9d3",
              "versionType": "git"
            },
            {
              "lessThan": "0ef6917c0524da5b88496b9706628ffef108b9bb",
              "status": "affected",
              "version": "24a28e4283510dcd58890379a42b8a7d3201d9d3",
              "versionType": "git"
            },
            {
              "lessThan": "2a598da14856ead80c726b38ba426c68637d9211",
              "status": "affected",
              "version": "24a28e4283510dcd58890379a42b8a7d3201d9d3",
              "versionType": "git"
            },
            {
              "lessThan": "b75bddfcc18170ce8e3fb695a76ec2dec4ce0ea5",
              "status": "affected",
              "version": "24a28e4283510dcd58890379a42b8a7d3201d9d3",
              "versionType": "git"
            },
            {
              "lessThan": "57901c658f77d9ea2e772f35cb38e47efb54c558",
              "status": "affected",
              "version": "24a28e4283510dcd58890379a42b8a7d3201d9d3",
              "versionType": "git"
            },
            {
              "lessThan": "46da1e4a8b6329479433b2a4056941dfdd7f3efd",
              "status": "affected",
              "version": "24a28e4283510dcd58890379a42b8a7d3201d9d3",
              "versionType": "git"
            },
            {
              "lessThan": "727c82d003e0ec64411fd1257a9a57de4ad7a99a",
              "status": "affected",
              "version": "24a28e4283510dcd58890379a42b8a7d3201d9d3",
              "versionType": "git"
            },
            {
              "lessThan": "4757c9ade34178b351580133771f510b5ffcf9c8",
              "status": "affected",
              "version": "24a28e4283510dcd58890379a42b8a7d3201d9d3",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/udc/lpc32xx_udc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.5"
            },
            {
              "lessThan": "3.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.320",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.285",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.249",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.200",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.124",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.49",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.6",
              "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.320",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.285",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.249",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.200",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.124",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.49",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.6",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe\n\nof_parse_phandle() returns a node pointer with refcount\nincremented, we should use of_node_put() on it when not need anymore.\nAdd missing of_node_put() to avoid refcount leak.\nof_node_put() will check NULL pointer."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:43:52.603Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d85e4e6284a91aa2d1ab004e9d84b9c09b4aa203"
        },
        {
          "url": "https://git.kernel.org/stable/c/0ef6917c0524da5b88496b9706628ffef108b9bb"
        },
        {
          "url": "https://git.kernel.org/stable/c/2a598da14856ead80c726b38ba426c68637d9211"
        },
        {
          "url": "https://git.kernel.org/stable/c/b75bddfcc18170ce8e3fb695a76ec2dec4ce0ea5"
        },
        {
          "url": "https://git.kernel.org/stable/c/57901c658f77d9ea2e772f35cb38e47efb54c558"
        },
        {
          "url": "https://git.kernel.org/stable/c/46da1e4a8b6329479433b2a4056941dfdd7f3efd"
        },
        {
          "url": "https://git.kernel.org/stable/c/727c82d003e0ec64411fd1257a9a57de4ad7a99a"
        },
        {
          "url": "https://git.kernel.org/stable/c/4757c9ade34178b351580133771f510b5ffcf9c8"
        }
      ],
      "title": "usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49712",
    "datePublished": "2025-02-26T02:24:28.888Z",
    "dateReserved": "2025-02-26T02:21:30.444Z",
    "dateUpdated": "2025-10-01T19:36:45.147Z",
    "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…