CVE-2022-49435 (GCVE-0-2022-49435)

Vulnerability from cvelistv5 – Published: 2025-02-26 02:12 – Updated: 2025-05-04 08:37
VLAI?
Title
mfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe()
Summary
In the Linux kernel, the following vulnerability has been resolved: mfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe() It will cause null-ptr-deref when using 'res', if platform_get_resource() returns NULL, so move using 'res' after devm_ioremap_resource() that will check it to avoid null-ptr-deref. And use devm_platform_get_and_ioremap_resource() to simplify code.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: b5e29aa880be84c271be8d0726cec4018bfbfd74 , < 49c1e32e7b3f301642a60448700ec531df981269 (git)
Affected: b5e29aa880be84c271be8d0726cec4018bfbfd74 , < a1d4941d9a24999f680799f9bbde7f57351ca637 (git)
Affected: b5e29aa880be84c271be8d0726cec4018bfbfd74 , < 5289795824b77489803b0802cd9edc13824a2d0b (git)
Affected: b5e29aa880be84c271be8d0726cec4018bfbfd74 , < 2d00158a06efe6bbcd020108634ea0f2ed8b32f7 (git)
Affected: b5e29aa880be84c271be8d0726cec4018bfbfd74 , < 579944b9f38727d9ff570b58f83bc424e8af8398 (git)
Affected: b5e29aa880be84c271be8d0726cec4018bfbfd74 , < 311242c7703df0da14c206260b7e855f69cb0264 (git)
Create a notification for this product.
    Linux Linux Affected: 5.4
Unaffected: 0 , < 5.4 (semver)
Unaffected: 5.4.198 , ≤ 5.4.* (semver)
Unaffected: 5.10.121 , ≤ 5.10.* (semver)
Unaffected: 5.15.46 , ≤ 5.15.* (semver)
Unaffected: 5.17.14 , ≤ 5.17.* (semver)
Unaffected: 5.18.3 , ≤ 5.18.* (semver)
Unaffected: 5.19 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/mfd/davinci_voicecodec.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "49c1e32e7b3f301642a60448700ec531df981269",
              "status": "affected",
              "version": "b5e29aa880be84c271be8d0726cec4018bfbfd74",
              "versionType": "git"
            },
            {
              "lessThan": "a1d4941d9a24999f680799f9bbde7f57351ca637",
              "status": "affected",
              "version": "b5e29aa880be84c271be8d0726cec4018bfbfd74",
              "versionType": "git"
            },
            {
              "lessThan": "5289795824b77489803b0802cd9edc13824a2d0b",
              "status": "affected",
              "version": "b5e29aa880be84c271be8d0726cec4018bfbfd74",
              "versionType": "git"
            },
            {
              "lessThan": "2d00158a06efe6bbcd020108634ea0f2ed8b32f7",
              "status": "affected",
              "version": "b5e29aa880be84c271be8d0726cec4018bfbfd74",
              "versionType": "git"
            },
            {
              "lessThan": "579944b9f38727d9ff570b58f83bc424e8af8398",
              "status": "affected",
              "version": "b5e29aa880be84c271be8d0726cec4018bfbfd74",
              "versionType": "git"
            },
            {
              "lessThan": "311242c7703df0da14c206260b7e855f69cb0264",
              "status": "affected",
              "version": "b5e29aa880be84c271be8d0726cec4018bfbfd74",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/mfd/davinci_voicecodec.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.4"
            },
            {
              "lessThan": "5.4",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.198",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.121",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.46",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.14",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.3",
              "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": "5.4.198",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.121",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.46",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.14",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.3",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe()\n\nIt will cause null-ptr-deref when using \u0027res\u0027, if platform_get_resource()\nreturns NULL, so move using \u0027res\u0027 after devm_ioremap_resource() that\nwill check it to avoid null-ptr-deref.\nAnd use devm_platform_get_and_ioremap_resource() to simplify code."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:37:36.380Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/49c1e32e7b3f301642a60448700ec531df981269"
        },
        {
          "url": "https://git.kernel.org/stable/c/a1d4941d9a24999f680799f9bbde7f57351ca637"
        },
        {
          "url": "https://git.kernel.org/stable/c/5289795824b77489803b0802cd9edc13824a2d0b"
        },
        {
          "url": "https://git.kernel.org/stable/c/2d00158a06efe6bbcd020108634ea0f2ed8b32f7"
        },
        {
          "url": "https://git.kernel.org/stable/c/579944b9f38727d9ff570b58f83bc424e8af8398"
        },
        {
          "url": "https://git.kernel.org/stable/c/311242c7703df0da14c206260b7e855f69cb0264"
        }
      ],
      "title": "mfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49435",
    "datePublished": "2025-02-26T02:12:51.554Z",
    "dateReserved": "2025-02-26T02:08:31.570Z",
    "dateUpdated": "2025-05-04T08:37:36.380Z",
    "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…