CVE-2022-50848 (GCVE-0-2022-50848)

Vulnerability from cvelistv5 – Published: 2025-12-30 12:15 – Updated: 2025-12-30 12:15
VLAI?
Title
drivers: dio: fix possible memory leak in dio_init()
Summary
In the Linux kernel, the following vulnerability has been resolved: drivers: dio: fix possible memory leak in dio_init() If device_register() returns error, the 'dev' and name needs be freed. Add a release function, and then call put_device() in the error path, so the name is freed in kobject_cleanup() and to the 'dev' is freed in release function.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 2e4c77bea3d8b17d94f8ee382411f359b708560f , < affe3cea6b3148fa66796a48640664822ceccd48 (git)
Affected: 2e4c77bea3d8b17d94f8ee382411f359b708560f , < 4b68caa95064ac464f1b261d08ac677e753d1088 (git)
Affected: 2e4c77bea3d8b17d94f8ee382411f359b708560f , < a524e7fed696a4dfef671e0fda3511bfd2dca0cf (git)
Affected: 2e4c77bea3d8b17d94f8ee382411f359b708560f , < da64e01da40c6b71a54144126da53cc3b27201ac (git)
Affected: 2e4c77bea3d8b17d94f8ee382411f359b708560f , < fce9890e1be4c0460dad850cc8c00414a9d25f0f (git)
Affected: 2e4c77bea3d8b17d94f8ee382411f359b708560f , < a0ead7e8da84f4c3759417b8e928b65e0207c646 (git)
Affected: 2e4c77bea3d8b17d94f8ee382411f359b708560f , < 8e002b9fe831b27d4506df6fa60cb33ba0730ac3 (git)
Affected: 2e4c77bea3d8b17d94f8ee382411f359b708560f , < 78fddc0ff971f9874d53c854818cc4aafa144114 (git)
Affected: 2e4c77bea3d8b17d94f8ee382411f359b708560f , < e63e99397b2613d50a5f4f02ed07307e67a190f1 (git)
Create a notification for this product.
    Linux Linux Affected: 2.6.29
Unaffected: 0 , < 2.6.29 (semver)
Unaffected: 4.9.337 , ≤ 4.9.* (semver)
Unaffected: 4.14.303 , ≤ 4.14.* (semver)
Unaffected: 4.19.270 , ≤ 4.19.* (semver)
Unaffected: 5.4.229 , ≤ 5.4.* (semver)
Unaffected: 5.10.163 , ≤ 5.10.* (semver)
Unaffected: 5.15.86 , ≤ 5.15.* (semver)
Unaffected: 6.0.16 , ≤ 6.0.* (semver)
Unaffected: 6.1.2 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/dio/dio.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "affe3cea6b3148fa66796a48640664822ceccd48",
              "status": "affected",
              "version": "2e4c77bea3d8b17d94f8ee382411f359b708560f",
              "versionType": "git"
            },
            {
              "lessThan": "4b68caa95064ac464f1b261d08ac677e753d1088",
              "status": "affected",
              "version": "2e4c77bea3d8b17d94f8ee382411f359b708560f",
              "versionType": "git"
            },
            {
              "lessThan": "a524e7fed696a4dfef671e0fda3511bfd2dca0cf",
              "status": "affected",
              "version": "2e4c77bea3d8b17d94f8ee382411f359b708560f",
              "versionType": "git"
            },
            {
              "lessThan": "da64e01da40c6b71a54144126da53cc3b27201ac",
              "status": "affected",
              "version": "2e4c77bea3d8b17d94f8ee382411f359b708560f",
              "versionType": "git"
            },
            {
              "lessThan": "fce9890e1be4c0460dad850cc8c00414a9d25f0f",
              "status": "affected",
              "version": "2e4c77bea3d8b17d94f8ee382411f359b708560f",
              "versionType": "git"
            },
            {
              "lessThan": "a0ead7e8da84f4c3759417b8e928b65e0207c646",
              "status": "affected",
              "version": "2e4c77bea3d8b17d94f8ee382411f359b708560f",
              "versionType": "git"
            },
            {
              "lessThan": "8e002b9fe831b27d4506df6fa60cb33ba0730ac3",
              "status": "affected",
              "version": "2e4c77bea3d8b17d94f8ee382411f359b708560f",
              "versionType": "git"
            },
            {
              "lessThan": "78fddc0ff971f9874d53c854818cc4aafa144114",
              "status": "affected",
              "version": "2e4c77bea3d8b17d94f8ee382411f359b708560f",
              "versionType": "git"
            },
            {
              "lessThan": "e63e99397b2613d50a5f4f02ed07307e67a190f1",
              "status": "affected",
              "version": "2e4c77bea3d8b17d94f8ee382411f359b708560f",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/dio/dio.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.29"
            },
            {
              "lessThan": "2.6.29",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.337",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.303",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.86",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.337",
                  "versionStartIncluding": "2.6.29",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.303",
                  "versionStartIncluding": "2.6.29",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "2.6.29",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "2.6.29",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "2.6.29",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "2.6.29",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "2.6.29",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "2.6.29",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "2.6.29",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers: dio: fix possible memory leak in dio_init()\n\nIf device_register() returns error, the \u0027dev\u0027 and name needs be\nfreed. Add a release function, and then call put_device() in the\nerror path, so the name is freed in kobject_cleanup() and to the\n\u0027dev\u0027 is freed in release function."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-30T12:15:25.776Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/affe3cea6b3148fa66796a48640664822ceccd48"
        },
        {
          "url": "https://git.kernel.org/stable/c/4b68caa95064ac464f1b261d08ac677e753d1088"
        },
        {
          "url": "https://git.kernel.org/stable/c/a524e7fed696a4dfef671e0fda3511bfd2dca0cf"
        },
        {
          "url": "https://git.kernel.org/stable/c/da64e01da40c6b71a54144126da53cc3b27201ac"
        },
        {
          "url": "https://git.kernel.org/stable/c/fce9890e1be4c0460dad850cc8c00414a9d25f0f"
        },
        {
          "url": "https://git.kernel.org/stable/c/a0ead7e8da84f4c3759417b8e928b65e0207c646"
        },
        {
          "url": "https://git.kernel.org/stable/c/8e002b9fe831b27d4506df6fa60cb33ba0730ac3"
        },
        {
          "url": "https://git.kernel.org/stable/c/78fddc0ff971f9874d53c854818cc4aafa144114"
        },
        {
          "url": "https://git.kernel.org/stable/c/e63e99397b2613d50a5f4f02ed07307e67a190f1"
        }
      ],
      "title": "drivers: dio: fix possible memory leak in dio_init()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50848",
    "datePublished": "2025-12-30T12:15:25.776Z",
    "dateReserved": "2025-12-30T12:06:07.134Z",
    "dateUpdated": "2025-12-30T12:15:25.776Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50848\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-30T13:15:59.460\",\"lastModified\":\"2025-12-31T20:43:05.160\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ndrivers: dio: fix possible memory leak in dio_init()\\n\\nIf device_register() returns error, the \u0027dev\u0027 and name needs be\\nfreed. Add a release function, and then call put_device() in the\\nerror path, so the name is freed in kobject_cleanup() and to the\\n\u0027dev\u0027 is freed in release function.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/4b68caa95064ac464f1b261d08ac677e753d1088\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/78fddc0ff971f9874d53c854818cc4aafa144114\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8e002b9fe831b27d4506df6fa60cb33ba0730ac3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a0ead7e8da84f4c3759417b8e928b65e0207c646\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a524e7fed696a4dfef671e0fda3511bfd2dca0cf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/affe3cea6b3148fa66796a48640664822ceccd48\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/da64e01da40c6b71a54144126da53cc3b27201ac\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e63e99397b2613d50a5f4f02ed07307e67a190f1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fce9890e1be4c0460dad850cc8c00414a9d25f0f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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…