CVE-2022-50036 (GCVE-0-2022-50036)
Vulnerability from cvelistv5
Published
2025-06-18 11:01
Modified
2025-06-18 11:01
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/sun4i: dsi: Prevent underflow when computing packet sizes Currently, the packet overhead is subtracted using unsigned arithmetic. With a short sync pulse, this could underflow and wrap around to near the maximal u16 value. Fix this by using signed subtraction. The call to max() will correctly handle any negative numbers that are produced. Apply the same fix to the other timings, even though those subtractions are less likely to underflow.
Impacted products
Vendor Product Version
Linux Linux Version: 133add5b5ad42b7bb5fcd59d681aef6475d08600
Version: 133add5b5ad42b7bb5fcd59d681aef6475d08600
Version: 133add5b5ad42b7bb5fcd59d681aef6475d08600
Version: 133add5b5ad42b7bb5fcd59d681aef6475d08600
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a1e7908f78f5a7f53f8cd83c7dcdfec974c95f26",
              "status": "affected",
              "version": "133add5b5ad42b7bb5fcd59d681aef6475d08600",
              "versionType": "git"
            },
            {
              "lessThan": "98e28de472ef248352f04f87e29e634ebb0ec240",
              "status": "affected",
              "version": "133add5b5ad42b7bb5fcd59d681aef6475d08600",
              "versionType": "git"
            },
            {
              "lessThan": "fb837f5b83461624e525727a8f4add14b201147e",
              "status": "affected",
              "version": "133add5b5ad42b7bb5fcd59d681aef6475d08600",
              "versionType": "git"
            },
            {
              "lessThan": "82a1356a933d8443139f8886f11b63c974a09a67",
              "status": "affected",
              "version": "133add5b5ad42b7bb5fcd59d681aef6475d08600",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.18"
            },
            {
              "lessThan": "4.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.138",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.138",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.63",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.4",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/sun4i: dsi: Prevent underflow when computing packet sizes\n\nCurrently, the packet overhead is subtracted using unsigned arithmetic.\nWith a short sync pulse, this could underflow and wrap around to near\nthe maximal u16 value. Fix this by using signed subtraction. The call to\nmax() will correctly handle any negative numbers that are produced.\n\nApply the same fix to the other timings, even though those subtractions\nare less likely to underflow."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-06-18T11:01:37.844Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a1e7908f78f5a7f53f8cd83c7dcdfec974c95f26"
        },
        {
          "url": "https://git.kernel.org/stable/c/98e28de472ef248352f04f87e29e634ebb0ec240"
        },
        {
          "url": "https://git.kernel.org/stable/c/fb837f5b83461624e525727a8f4add14b201147e"
        },
        {
          "url": "https://git.kernel.org/stable/c/82a1356a933d8443139f8886f11b63c974a09a67"
        }
      ],
      "title": "drm/sun4i: dsi: Prevent underflow when computing packet sizes",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50036",
    "datePublished": "2025-06-18T11:01:37.844Z",
    "dateReserved": "2025-06-18T10:57:27.396Z",
    "dateUpdated": "2025-06-18T11:01:37.844Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50036\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-06-18T11:15:32.003\",\"lastModified\":\"2025-06-18T13:47:40.833\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ndrm/sun4i: dsi: Prevent underflow when computing packet sizes\\n\\nCurrently, the packet overhead is subtracted using unsigned arithmetic.\\nWith a short sync pulse, this could underflow and wrap around to near\\nthe maximal u16 value. Fix this by using signed subtraction. The call to\\nmax() will correctly handle any negative numbers that are produced.\\n\\nApply the same fix to the other timings, even though those subtractions\\nare less likely to underflow.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/sun4i: dsi: Prevenir el subdesbordamiento al calcular el tama\u00f1o de los paquetes. Actualmente, la sobrecarga de paquetes se resta mediante aritm\u00e9tica sin signo. Con un pulso de sincronizaci\u00f3n corto, esto podr\u00eda desbordarse y volver a la normalidad hasta cerca del valor m\u00e1ximo u16. Se soluciona mediante la resta con signo. La llamada a max() gestionar\u00e1 correctamente cualquier n\u00famero negativo generado. Aplique la misma correcci\u00f3n a las dem\u00e1s temporizaciones, aunque estas restas tienen menos probabilidad de desbordarse.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/82a1356a933d8443139f8886f11b63c974a09a67\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/98e28de472ef248352f04f87e29e634ebb0ec240\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a1e7908f78f5a7f53f8cd83c7dcdfec974c95f26\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fb837f5b83461624e525727a8f4add14b201147e\",\"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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…