CVE-2022-50509 (GCVE-0-2022-50509)

Vulnerability from cvelistv5 – Published: 2025-10-07 15:19 – Updated: 2026-05-11 19:20
VLAI
Title
media: coda: Add check for kmalloc
Summary
In the Linux kernel, the following vulnerability has been resolved: media: coda: Add check for kmalloc As the kmalloc may return NULL pointer, it should be better to check the return value in order to avoid NULL poineter dereference, same as the others.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: cb1d3a336371e35c3920cc50a701c5403c255644 , < d308c4a035b636756786af91e5f39f9d92d7d42a (git)
Affected: cb1d3a336371e35c3920cc50a701c5403c255644 , < 11e32126b3e56c3156fb610d793732acd2bdac4f (git)
Affected: cb1d3a336371e35c3920cc50a701c5403c255644 , < ba9cc9e2035f7a45f5222543265daf7cd51f2530 (git)
Affected: cb1d3a336371e35c3920cc50a701c5403c255644 , < 7a2c66429b04e85fee44d6d9f455327bf23cf49c (git)
Affected: cb1d3a336371e35c3920cc50a701c5403c255644 , < d9b37ea8869e4e6da90c07a310d819a78cbd23d2 (git)
Affected: cb1d3a336371e35c3920cc50a701c5403c255644 , < 441c05485cf1a29eef05c1fd8281716815283315 (git)
Affected: cb1d3a336371e35c3920cc50a701c5403c255644 , < aa17a252dbde432095e390e2092205d4debb12e1 (git)
Affected: cb1d3a336371e35c3920cc50a701c5403c255644 , < 0209e70ad496c1fcd85c2ec70e6736fd09f95d14 (git)
Affected: cb1d3a336371e35c3920cc50a701c5403c255644 , < 6e5e5defdb8b0186312c2f855ace175aee6daf9b (git)
Create a notification for this product.
Linux Linux Affected: 3.19
Unaffected: 0 , < 3.19 (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/media/platform/chips-media/coda-bit.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "d308c4a035b636756786af91e5f39f9d92d7d42a",
              "status": "affected",
              "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
              "versionType": "git"
            },
            {
              "lessThan": "11e32126b3e56c3156fb610d793732acd2bdac4f",
              "status": "affected",
              "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
              "versionType": "git"
            },
            {
              "lessThan": "ba9cc9e2035f7a45f5222543265daf7cd51f2530",
              "status": "affected",
              "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
              "versionType": "git"
            },
            {
              "lessThan": "7a2c66429b04e85fee44d6d9f455327bf23cf49c",
              "status": "affected",
              "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
              "versionType": "git"
            },
            {
              "lessThan": "d9b37ea8869e4e6da90c07a310d819a78cbd23d2",
              "status": "affected",
              "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
              "versionType": "git"
            },
            {
              "lessThan": "441c05485cf1a29eef05c1fd8281716815283315",
              "status": "affected",
              "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
              "versionType": "git"
            },
            {
              "lessThan": "aa17a252dbde432095e390e2092205d4debb12e1",
              "status": "affected",
              "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
              "versionType": "git"
            },
            {
              "lessThan": "0209e70ad496c1fcd85c2ec70e6736fd09f95d14",
              "status": "affected",
              "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
              "versionType": "git"
            },
            {
              "lessThan": "6e5e5defdb8b0186312c2f855ace175aee6daf9b",
              "status": "affected",
              "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/platform/chips-media/coda-bit.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.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": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.303",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: coda: Add check for kmalloc\n\nAs the kmalloc may return NULL pointer,\nit should be better to check the return value\nin order to avoid NULL poineter dereference,\nsame as the others."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:20:48.461Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d308c4a035b636756786af91e5f39f9d92d7d42a"
        },
        {
          "url": "https://git.kernel.org/stable/c/11e32126b3e56c3156fb610d793732acd2bdac4f"
        },
        {
          "url": "https://git.kernel.org/stable/c/ba9cc9e2035f7a45f5222543265daf7cd51f2530"
        },
        {
          "url": "https://git.kernel.org/stable/c/7a2c66429b04e85fee44d6d9f455327bf23cf49c"
        },
        {
          "url": "https://git.kernel.org/stable/c/d9b37ea8869e4e6da90c07a310d819a78cbd23d2"
        },
        {
          "url": "https://git.kernel.org/stable/c/441c05485cf1a29eef05c1fd8281716815283315"
        },
        {
          "url": "https://git.kernel.org/stable/c/aa17a252dbde432095e390e2092205d4debb12e1"
        },
        {
          "url": "https://git.kernel.org/stable/c/0209e70ad496c1fcd85c2ec70e6736fd09f95d14"
        },
        {
          "url": "https://git.kernel.org/stable/c/6e5e5defdb8b0186312c2f855ace175aee6daf9b"
        }
      ],
      "title": "media: coda: Add check for kmalloc",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50509",
    "datePublished": "2025-10-07T15:19:06.661Z",
    "dateReserved": "2025-10-04T15:39:19.466Z",
    "dateUpdated": "2026-05-11T19:20:48.461Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50509",
      "date": "2026-07-08",
      "epss": "0.0015",
      "percentile": "0.0461"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50509\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-10-07T16:15:33.300\",\"lastModified\":\"2026-06-17T05:23:41.507\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmedia: coda: Add check for kmalloc\\n\\nAs the kmalloc may return NULL pointer,\\nit should be better to check the return value\\nin order to avoid NULL poineter dereference,\\nsame as the others.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/media/platform/chips-media/coda-bit.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"cb1d3a336371e35c3920cc50a701c5403c255644\",\"lessThan\":\"d308c4a035b636756786af91e5f39f9d92d7d42a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cb1d3a336371e35c3920cc50a701c5403c255644\",\"lessThan\":\"11e32126b3e56c3156fb610d793732acd2bdac4f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cb1d3a336371e35c3920cc50a701c5403c255644\",\"lessThan\":\"ba9cc9e2035f7a45f5222543265daf7cd51f2530\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cb1d3a336371e35c3920cc50a701c5403c255644\",\"lessThan\":\"7a2c66429b04e85fee44d6d9f455327bf23cf49c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cb1d3a336371e35c3920cc50a701c5403c255644\",\"lessThan\":\"d9b37ea8869e4e6da90c07a310d819a78cbd23d2\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cb1d3a336371e35c3920cc50a701c5403c255644\",\"lessThan\":\"441c05485cf1a29eef05c1fd8281716815283315\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cb1d3a336371e35c3920cc50a701c5403c255644\",\"lessThan\":\"aa17a252dbde432095e390e2092205d4debb12e1\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cb1d3a336371e35c3920cc50a701c5403c255644\",\"lessThan\":\"0209e70ad496c1fcd85c2ec70e6736fd09f95d14\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"cb1d3a336371e35c3920cc50a701c5403c255644\",\"lessThan\":\"6e5e5defdb8b0186312c2f855ace175aee6daf9b\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/media/platform/chips-media/coda-bit.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"3.19\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"3.19\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"4.9.337\",\"lessThanOrEqual\":\"4.9.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"4.14.303\",\"lessThanOrEqual\":\"4.14.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"4.19.270\",\"lessThanOrEqual\":\"4.19.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.4.229\",\"lessThanOrEqual\":\"5.4.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.163\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.86\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.0.16\",\"lessThanOrEqual\":\"6.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.2\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-476\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"3.19\",\"versionEndExcluding\":\"4.9.337\",\"matchCriteriaId\":\"F5C9AB36-1335-46C4-AE68-045ACEB0954D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.10\",\"versionEndExcluding\":\"4.14.303\",\"matchCriteriaId\":\"1E7450AD-4739-46F0-B81B-C02E7B35A97B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.15\",\"versionEndExcluding\":\"4.19.270\",\"matchCriteriaId\":\"AE8904A3-99BE-4E49-9682-1F90A6373F4F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.20\",\"versionEndExcluding\":\"5.4.229\",\"matchCriteriaId\":\"A0C0D95E-414A-445E-941B-3EF6A4D3A093\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.5\",\"versionEndExcluding\":\"5.10.163\",\"matchCriteriaId\":\"D05D31FC-BD74-4F9E-B1D8-9CED62BE6F65\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.86\",\"matchCriteriaId\":\"47237296-55D1-4ED4-8075-D00FC85A61EE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"6.0.16\",\"matchCriteriaId\":\"C720A569-3D93-4D77-95F6-E2B3A3267D9F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.1\",\"versionEndExcluding\":\"6.1.2\",\"matchCriteriaId\":\"77239F4B-6BB2-4B9E-A654-36A52396116C\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0209e70ad496c1fcd85c2ec70e6736fd09f95d14\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/11e32126b3e56c3156fb610d793732acd2bdac4f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/441c05485cf1a29eef05c1fd8281716815283315\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/6e5e5defdb8b0186312c2f855ace175aee6daf9b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/7a2c66429b04e85fee44d6d9f455327bf23cf49c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/aa17a252dbde432095e390e2092205d4debb12e1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ba9cc9e2035f7a45f5222543265daf7cd51f2530\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/d308c4a035b636756786af91e5f39f9d92d7d42a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/d9b37ea8869e4e6da90c07a310d819a78cbd23d2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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…