CVE-2022-50570 (GCVE-0-2022-50570)
Vulnerability from cvelistv5
Published
2025-10-22 13:23
Modified
2026-08-05 08:59
Summary
In the Linux kernel, the following vulnerability has been resolved: platform/chrome: fix memory corruption in ioctl If "s_mem.bytes" is larger than the buffer size it leads to memory corruption.
Impacted products
Vendor Product Version
Linux Linux Version: eda2e30c6684d67288edb841c6125d48c608a242
Version: eda2e30c6684d67288edb841c6125d48c608a242
Version: eda2e30c6684d67288edb841c6125d48c608a242
Version: eda2e30c6684d67288edb841c6125d48c608a242
Version: eda2e30c6684d67288edb841c6125d48c608a242
Version: eda2e30c6684d67288edb841c6125d48c608a242
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/platform/chrome/cros_ec_chardev.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "e548f9503c4b3292a60a63fe77dccea62999a35a",
              "status": "affected",
              "version": "eda2e30c6684d67288edb841c6125d48c608a242",
              "versionType": "git"
            },
            {
              "lessThan": "868fc93b615b9f6c2b0b1894536618fa6cd66acc",
              "status": "affected",
              "version": "eda2e30c6684d67288edb841c6125d48c608a242",
              "versionType": "git"
            },
            {
              "lessThan": "fd1d3b265784a2243fcaef06aebfb2f8ee733cec",
              "status": "affected",
              "version": "eda2e30c6684d67288edb841c6125d48c608a242",
              "versionType": "git"
            },
            {
              "lessThan": "f143f1d9a8e5c6c9db3de81ca270191226fcce36",
              "status": "affected",
              "version": "eda2e30c6684d67288edb841c6125d48c608a242",
              "versionType": "git"
            },
            {
              "lessThan": "0c2e18924504208644d18415667895a4ac54cf2a",
              "status": "affected",
              "version": "eda2e30c6684d67288edb841c6125d48c608a242",
              "versionType": "git"
            },
            {
              "lessThan": "8a07b45fd3c2dda24fad43639be5335a4595196a",
              "status": "affected",
              "version": "eda2e30c6684d67288edb841c6125d48c608a242",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/platform/chrome/cros_ec_chardev.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.220",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.150",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.75",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.17",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.220",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.150",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.75",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.17",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.3",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/chrome: fix memory corruption in ioctl\n\nIf \"s_mem.bytes\" is larger than the buffer size it leads to memory\ncorruption."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The bug is reached only through a local ioctl (CROS_EC_DEV_IOCRDMEM) on the Cros EC misc character device (/dev/cros_ec) via cros_ec_chardev_ioctl \u2192 cros_ec_chardev_ioctl_readmem; it is not reachable from network packet processing or physical bus injection.\nAC:L - An attacker who can open the device fully controls s_mem.bytes/offset and can set bytes \u003e EC_MEMMAP_SIZE (255); unsigned underflow in cros_ec_lpc_readmem\u2019s bounds check then lets cmd_readmem write past the stack buffer with no race or other condition outside the attacker\u2019s control.\nPR:L - Neither open nor the readmem ioctl path checks capabilities\u2014only device-node permissions\u2014and /dev/cros_ec is intended for userspace EC tools, with Chrome OS cros_ec-access group access and Linux deployments that grant udev/uaccess, so real root is not required.\nUI:N - The attacker opens /dev/cros_ec and issues CROS_EC_DEV_IOCRDMEM themselves; no separate victim action such as mounting a filesystem or opening a crafted file is required.\nS:U - Impact is kernel stack memory corruption within the host OS privilege boundary via the platform chrome chardev driver; this is ordinary local kernel compromise, not a VM escape or IOMMU/cross-authority bypass.\nC:H - The out-of-bounds stack write is memory corruption that, per kernel CVSS guidance, can be leveraged for information disclosure and full compromise once control-flow is hijacked.\nI:H - cmd_readmem writes an attacker-chosen number of bytes into the fixed-size s_mem.buffer on the kernel stack (cros_ec_lpc_read_bytes loops length times into dest), producing an out-of-bounds write exploitable for integrity compromise and control-flow hijacking.\nA:H - Stack buffer overflow past s_mem.buffer can oops/panic the kernel (stack canary, corrupted frames, or large I/O reads into kernel stack), which is high availability impact under kernel CVSS guidance."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:59:10.542Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/e548f9503c4b3292a60a63fe77dccea62999a35a"
        },
        {
          "url": "https://git.kernel.org/stable/c/868fc93b615b9f6c2b0b1894536618fa6cd66acc"
        },
        {
          "url": "https://git.kernel.org/stable/c/fd1d3b265784a2243fcaef06aebfb2f8ee733cec"
        },
        {
          "url": "https://git.kernel.org/stable/c/f143f1d9a8e5c6c9db3de81ca270191226fcce36"
        },
        {
          "url": "https://git.kernel.org/stable/c/0c2e18924504208644d18415667895a4ac54cf2a"
        },
        {
          "url": "https://git.kernel.org/stable/c/8a07b45fd3c2dda24fad43639be5335a4595196a"
        }
      ],
      "title": "platform/chrome: fix memory corruption in ioctl",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50570",
    "datePublished": "2025-10-22T13:23:26.495Z",
    "dateReserved": "2025-10-22T13:20:23.760Z",
    "dateUpdated": "2026-08-05T08:59:10.542Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


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.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • 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…