{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-89470",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-89470"
  ],
  "published": "2026-09-11T19:47:07Z",
  "summary": "power: supply: cros_usbpd: Limit port counts to EC_USB_PD_MAX_PORTS",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: cros_usbpd: Limit port counts to EC_USB_PD_MAX_PORTS\n\nCurrently the cros_usbpd-charger driver probe iterates based on raw\ncharger port count returned by the embedded controller. The only check\nis against the number of USB PD ports which the embedded controller\nalso defines. A malicious embedded controller could return an inaccurate\nport count (up to 255) resulting in an out of bounds write and\nsubsequent memory corruption.\n\nUpdate helper functions in cros_usbpd-charger to limit port counts to\nEC_USB_PD_MAX_PORTS.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.188",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-89470"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e951b65ef1699439079b723ca5c72cbe44771647"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3ce9218639ff62d011eb8aca0943aa670a654c7b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/dce1750ddbd3380b1f6090dda2b07d2ebea2261d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3262977a05b23d1be9fc86727a2b490ec997543e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fd5f289cca04ad869b34fc9ccb647670bfdb60ac"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4b1f2be1e1b74a50386ba718de3d62bfcf5ee701"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/304a29ac55ba3ee6eceaf7d83d09cd9709f3bf60"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/657cd3a42e937276262c0a8ae6b01a87004309de"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-09-14T12:06:03Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 8.4,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The OOB write is in cros_usbpd_charger_probe() on the Chrome OS EC platform path (LPC/eSPI/I2C/SPI/UART/ISHTP \u2192 cros_ec_cmd_xfer_status \u2192 MFD cell cros-usbpd-charger). Port counts come from the onboard EC, not from network packets or a USB-C partner, so the highest defensible vector is local.\nAC:L - A malicious or compromised EC fully controls both u8 replies (EC_CMD_USB_PD_PORTS and EC_CMD_CHARGE_PORT_COUNT). Setting them equal and greater than 8 (for example both 255) passes the relative sanity check and makes the probe loop overflow ports[EC_USB_PD_MAX_PORTS] deterministically, with no race or layout lottery.\nPR:N - ec_device_probe() auto-adds the charger cell when the EC advertises USB-PD and probe then trusts EC replies with no Linux capability or credential check. Supply-chain or already-compromised EC firmware needs no host account, matching other firmware-at-probe kernel CNA scores.\nUI:N - The charger driver probes automatically during Chrome OS EC MFD bring-up at boot or module load. No victim action such as plugging a cable, mounting a filesystem, or opening a device node is required.\nS:U - Impact is kernel slab corruption and possible code execution on the same host that runs the charger driver. This is not a VM escape, IOMMU/DMA boundary bypass, or other cross-authority breakout.\nC:H - The probe writes up to 247 pointers past the 8-entry ports[] array in the kmalloc'd charger_data (about 1976 bytes on 64-bit), corrupting adjacent slab objects. That heap overflow can be turned into an arbitrary-read primitive, not a small bounded leak.\nI:H - The overflow stores attacker-timed port_data pointers past ports[] (and can also overflow each port's name[] via sprintf for i>=10), enabling adjacent-object corruption, control-flow hijack, and arbitrary write.\nA:H - Smashing charger_data's trailing notifier_block and neighboring slab objects during probe can oops or panic the kernel on Chromebooks and other Chrome OS EC systems, a full availability loss."
    }
  }
}
