← Back to CVE Explorer

CVE-2026-10684

Full vulnerability record from the local CVENow database.

Description

In subsys/debug/coredump/coredump_shell.c, print_coredump_hdr() used the 16-bit tgt_code field of a stored Zephyr coredump header directly as an index into coredump_target_code2str[], a fixed 7-element array of string pointers, with no bounds check. A stored coredump whose tgt_code is >= 7 causes an out-of-bounds read of a char* up to ~64K entries past the array; that value is passed as the %s argument to shell_print, which dereferences and walks it as a string. The result is either disclosure of device memory contents to the shell user or a crash when the out-of-bounds pointer is unmapped. The defect is reached via the coredump print shell command (cmd_coredump_print_stored_dump -> pretty_print_coredump -> parse_and_print_coredump -> print_coredump_hdr). The tgt_code field is device-generated and in-range during normal crash handling, so triggering requires local shell access plus the ability to stage or corrupt the stored coredump in the flash/in-memory backend. Introduced in v4.2.0 (commit 13abd7fe730) and present through v4.4.0; fixed by clamping out-of-range codes to the 'unknown' (index 0) entry.

Severity
LOW
CVSS score
3.0 (v3.1)
Vulnerability status
Awaiting Analysis
Source identifier
Published
2026-07-29 19:16:43.677000
Last modified
2026-10-24 13:10:00.147000
View original CVE JSON
{
  "id": "CVE-2026-10684",
  "sourceIdentifier": "[email protected]",
  "published": "2026-07-29T19:16:43.677",
  "lastModified": "2026-10-24T13:10:00.147",
  "vulnStatus": "Awaiting Analysis",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In subsys/debug/coredump/coredump_shell.c, print_coredump_hdr() used the 16-bit tgt_code field of a stored Zephyr coredump header directly as an index into coredump_target_code2str[], a fixed 7-element array of string pointers, with no bounds check.\n\nA stored coredump whose tgt_code is >= 7 causes an out-of-bounds read of a char* up to ~64K entries past the array; that value is passed as the %s argument to shell_print, which dereferences and walks it as a string. The result is either disclosure of device memory contents to the shell user or a crash when the out-of-bounds pointer is unmapped.\n\nThe defect is reached via the coredump print shell command (cmd_coredump_print_stored_dump -> pretty_print_coredump -> parse_and_print_coredump -> print_coredump_hdr). The tgt_code field is device-generated and in-range during normal crash handling, so triggering requires local shell access plus the ability to stage or corrupt the stored coredump in the flash/in-memory backend.\n\nIntroduced in v4.2.0 (commit 13abd7fe730) and present through v4.4.0; fixed by clamping out-of-range codes to the 'unknown' (index 0) entry."
    },
    {
      "lang": "es",
      "value": "En subsys/debug/coredump/coredump_shell.c, print_coredump_hdr() usaba el campo tgt_code de 16 bits de un encabezado de volcado de memoria (coredump) de Zephyr almacenado directamente como un índice en coredump_target_code2str[], un array fijo de 7 elementos de punteros a cadenas, sin verificación de límites.\n\nUn volcado de memoria almacenado cuyo tgt_code es >= 7 provoca una lectura fuera de límites de un char hasta ~64K entradas más allá del array; ese valor se pasa como el argumento %s a shell_print, que lo desreferencia y lo recorre como una cadena. El resultado es la divulgación del contenido de la memoria del dispositivo al usuario de la shell o un fallo (crash) cuando el puntero fuera de límites no está mapeado.\n\nEl defecto se alcanza a través del comando de shell de impresión de volcado de memoria (cmd_coredump_print_stored_dump   ->   pretty_print_coredump   ->   parse_and_print_coredump   ->   print_coredump_hdr). El campo tgt_code es generado por el dispositivo y está dentro del rango durante el manejo normal de fallos, por lo que su activación requiere acceso local a la shell más la capacidad de preparar o corromper el volcado de memoria almacenado en el backend de flash/en memoria.\n\nIntroducido en v4.2.0 (commit 13abd7fe730) y presente hasta v4.4.0; corregido al limitar los códigos fuera de rango a la entrada ’unknown’ (índice 0)."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "zephyrproject",
          "product": "zephyr",
          "defaultStatus": "unaffected",
          "collectionURL": "https://github.com/zephyrproject-rtos/zephyr",
          "packageName": "zephyr",
          "programFiles": [
            "subsys/debug/coredump/coredump_shell.c"
          ],
          "versions": [
            {
              "version": "4.2.0",
              "lessThan": "4.3.1",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "4.4.0",
              "lessThan": "4.4.2",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:L",
          "baseScore": 3.0,
          "baseSeverity": "LOW",
          "attackVector": "LOCAL",
          "attackComplexity": "HIGH",
          "privilegesRequired": "HIGH",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "LOW",
          "integrityImpact": "NONE",
          "availabilityImpact": "LOW"
        },
        "exploitabilityScore": 0.5,
        "impactScore": 2.5
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-07-29T18:47:12.610944Z",
          "id": "CVE-2026-10684",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-125"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/zephyrproject-rtos/zephyr/commit/a9226324e8bd1f8adecafb1b6e0603f781dc750c",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-9fw2-4429-49q8",
      "source": "[email protected]"
    }
  ]
}