4.2medium
Out-of-bounds write in Microchip SERCOM-G1 (PIC32CM-JH) async UART RX with 1-byte buffer
- Severity
- 4.2medium CVSS:3.1 by zephyr
- Exploit likelihood
- 0.22% (higher than 8% of CVEs)
- Published
- Last changed
- Assigned by
- zephyr
Description
The Microchip SERCOM-G1 UART driver (drivers/serial/uart_mchp_sercom_g1.c), used by the PIC32CM-JH SoC family, contains an out-of-bounds write in its asynchronous (DMA) receive path. When uart_rx_enable() is invoked with a one-byte receive buffer (len == 1) and CONFIG_UART_MCHP_ASYNC is enabled, the RX-complete ISR starts a single-beat DMA transfer while a received byte is already pending in the SERCOM DATA register. On this SoC the peripheral-triggered DMA start sequencing then writes one byte past the end of the caller-supplied buffer (CWE-787). The overflowed byte's value is the UART RX data supplied by the connected serial peer (adjacent attacker), while its size and location are fixed at one byte immediately after the buffer. Exploitation requires the async UART config (not enabled by default on the in-tree PIC32CM-JH boards) and a consumer that enables RX with a one-byte buffer; impact is limited single-byte memory corruption adjacent to the RX buffer (possible crash / denial of service). The defect shipped in v4.4.0. The fix reads the first byte with the CPU and, for one-byte buffers, performs no DMA at all; for larger buffers it sizes the DMA for the remaining len-1 bytes.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| zephyr | from 4.4.0 before 4.4.2 | CVE List |
| zephyrproject zephyr | from 4.4.0 up to 4.4.1 | NVD |
All scores
| zephyr | 4.2medium CVSS:3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L |
| NVD | 3.1low CVSS:3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
The Microchip SERCOM-G1 UART driver (drivers/serial/uart_mchp_sercom_g1.c), used by the PIC32CM-JH SoC family, contains an out-of-bounds write in its asynchronous (DMA) receive path. When uart_rx_enable() is invoked with a one-byte receive buffer (len == 1) and CONFIG_UART_MCHP_ASYNC is enabled, the RX-complete ISR starts a single-beat DMA transfer while a received byte is already pending in the SERCOM DATA register. On this SoC the peripheral-triggered DMA start sequencing then writes one byte past the end of the caller-supplied buffer (CWE-787). The overflowed byte's value is the UART RX data supplied by the connected serial peer (adjacent attacker), while its size and location are fixed at one byte immediately after the buffer. Exploitation requires the async UART config (not enabled by default on the in-tree PIC32CM-JH boards) and a consumer that enables RX with a one-byte buffer; impact is limited single-byte memory corruption adjacent to the RX buffer (possible crash / denial of service). The defect shipped in v4.4.0. The fix reads the first byte with the CPU and, for one-byte buffers, performs no DMA at all; for larger buffers it sizes the DMA for the remaining len-1 bytes.
NVD (es)
El controlador UART Microchip SERCOM-G1 (drivers/serial/uart_mchp_sercom_g1.c), utilizado por la familia de SoC PIC32CM-JH, contiene una escritura fuera de límites en su ruta de recepción asíncrona (DMA). Cuando se invoca uart_rx_enable() con un búfer de recepción de un byte (len == 1) y CONFIG_UART_MCHP_ASYNC está habilitado, la ISR de RX-completo inicia una transferencia DMA de un solo ciclo mientras un byte recibido ya está pendiente en el registro SERCOM DATA. En este SoC, la secuencia de inicio de DMA activada por periférico luego escribe un byte más allá del final del búfer proporcionado por el llamador (CWE-787). El valor del byte desbordado son los datos UART RX suministrados por el par serie conectado (atacante adyacente), mientras que su tamaño y ubicación están fijados en un byte inmediatamente después del búfer. La explotación requiere la configuración UART asíncrona (no habilitada por defecto en las placas PIC32CM-JH del árbol) y un consumidor que habilite la recepción (RX) con un búfer de un byte; el impacto es una corrupción de memoria de un solo byte limitada adyacente al búfer RX (posible caída / denegación de servicio). El defecto se envió en la v4.4.0. La solución lee el primer byte con la CPU y, para búferes de un byte, no realiza ninguna DMA en absoluto; para búferes más grandes, dimensiona la DMA para los len-1 bytes restantes.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-10644 changed 2026-11-04 | CVE Terms of Use |
| NVD | CVE-2026-10644 changed 2026-10-25 | Public domain |