CVE-2026-78119
Last modified
CVE-2026-78119 is a medium-severity vulnerability rated 6.3/10 on the CVSS scale. The Nuvoton NPCX eSPI driver parses Target-Attached-Flash (TAF) requests in espi_taf_parse() (drivers/espi/espi_npcx.c), taking the 12-bit length field directly out of the request header in the FLASHRXBUF FIFO. For write and RPMC OP1 requests it copied DIV_ROUND_UP(len, 4) words into struct espi_taf_pckt.src, a fixed 16-word (64-byte) member of a static structure, without ever comparing the length against that buffer or against the negotiated eSPI receive payload size (rx-plsize, 64 bytes on all in-tree NPCX/NPCK SoCs). EPSS estimates a 0.11% chance of exploitation in the next 30 days.
Description
The Nuvoton NPCX eSPI driver parses Target-Attached-Flash (TAF) requests in espi_taf_parse() (drivers/espi/espi_npcx.c), taking the 12-bit length field directly out of the request header in the FLASHRXBUF FIFO. For write and RPMC OP1 requests it copied DIV_ROUND_UP(len, 4) words into struct espi_taf_pckt.src, a fixed 16-word (64-byte) member of a static structure, without ever comparing the length against that buffer or against the negotiated eSPI receive payload size (rx-plsize, 64 bytes on all in-tree NPCX/NPCK SoCs). Both the loop counter and the word count were uint8_t, so the copy ran up to 255 iterations. An eSPI controller that emits a flash request whose header claims a payload larger than the negotiated maximum therefore drives up to 239 32-bit stores past the end of the structure — roughly 956 bytes of out-of-bounds write into .bss — from the eSPI flash receive interrupt handler, while the source reads walk past the end of the 18-word FLASHRXBUF register array into neighbouring eSPI registers. The same unvalidated length was then passed on to flash_write() in espi_taf_npcx_flash_write() with the 64-byte src buffer as source, reading up to 4 KB of adjacent controller SRAM into SPI flash at a host-chosen address, where the host can read it back. A related fixed-size stack buffer in taf_npcx_completion_handler() was overflowed by four bytes on the maximum-size completion path on SoCs whose tx-plsize is 64. The defect is reachable only from the eSPI host side, and only by a request that violates the negotiated payload size, so it requires host firmware or bus-level control rather than ordinary host software; a compliant maximum-length write fits the buffer exactly and is handled correctly. Because TAF exists specifically so that the embedded controller arbitrates host access to shared flash (espi_taf_check_read_protect() / espi_taf_check_write_protect()), corrupting controller memory from a host-supplied field crosses the trust boundary the feature asserts; consequences range from controller crash or hang to corruption of driver state that gates the flash protection regions. The fix widens the counters, rejects any request whose word count exceeds both ARRAY_SIZE(FLASHRXBUF) - NPCX_ESPI_FLASH_HEADER_ADDRESS_LEN and NPCX_TAF_RX_PAYLOAD_WORDS (derived from the devicetree rx-plsize), marks such packets with a new invalid_flag so espi_taf_work() answers them with an unsuccessful completion instead of processing them, bounds the transmit payload against FLASHTXBUF, and adds a default case for unsupported cycle types. Only configurations with CONFIG_ESPI_TAF enabled on an NPCX/NPCK target are affected; no in-tree board enables it by default.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 3.6.0, < 4.5.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-78119?
How severe is CVE-2026-78119?
How do I fix CVE-2026-78119?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-7811A vulnerability has been found in 54yyyu code-mcp up to 4cfc…7.3
- CVE-2026-78112A flaw has been found in itsourcecode Hospital Management Sy…6.3
- CVE-2026-78115A vulnerability has been found in SourceCodester Class and E…5.4
- CVE-2026-78116The Broadcom AFBR-S50 time-of-flight sensor driver double-co…5.2
- CVE-2026-78117The Infineon PSOC 6 BLESS HCI driver in drivers/bluetooth/hc…4.2
- CVE-2026-78118The kernel helper z_waitq_head() (kernel/include/wait_q.h) r…7
- CVE-2026-7812A vulnerability was found in 54yyyu code-mcp up to 4cfc46435…7.3
- CVE-2026-78122docker-socket-proxy fails to properly gate read endpoints in…7.4
- CVE-2026-78123strongSwan 5.0.2 through 6.0.7 has an Expired Pointer Derefe…5.9
- CVE-2026-78124strongSwan 5.0.2 through 6.0.7 allows PKCS#7 certificate enu…3.7
- CVE-2026-78125The LearnPress WordPress plugin before 4.0.3 does not perfo…5.3
- CVE-2026-78126strongSwan 4.1.10 through 6.0.7 allows a NULL pointer derefe…5.9
Are you affected by CVE-2026-78119?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
