Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-79976 Overview
CVE-2026-79976 is a NULL pointer dereference vulnerability [CWE-476] in the Zephyr RTOS Management Component Transport Protocol (MCTP) over I2C+GPIO target binding. The flaw resides in subsys/pmci/mctp/mctp_i2c_gpio_target.c, where the pseudo-register state (b->reg_addr and b->rxtx) is not cleared on I2C STOP. A controller on the shared management bus can trigger a dereference of a freed packet buffer by issuing two ordinary transactions without authentication. The result is a fatal exception on targets that trap accesses to address 0, causing device reset or halt.
Critical Impact
An adjacent attacker with controller access to the shared management bus can cause a denial of service on affected MCTP targets with no authentication required.
Affected Products
- Zephyr RTOS builds with CONFIG_MCTP=y (experimental subsystem)
- Zephyr RTOS builds with CONFIG_MCTP_I2C_GPIO_TARGET=y
- Embedded management controllers and BMC-adjacent endpoints using the MCTP-over-I2C+GPIO target binding
Discovery Timeline
- 2026-10-21 - CVE-2026-79976 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-79976
Vulnerability Analysis
The MCTP-over-I2C+GPIO target binding emulates a small pseudo-register file. The bus controller first writes a register number and then writes or reads payload bytes. The selected register b->reg_addr and the data-phase flag b->rxtx persist across I2C STOP events. After a completed transfer, the target still has a data register selected while the referenced packet buffer has been consumed and set to NULL by mctp_i2c_gpio_target_stop().
A controller can re-enter the same branch with a NULL buffer using two transactions. First, a packet write to MCTP_I2C_GPIO_RX_MSG_ADDR followed by STOP delivers and frees b->rx_pkt. Then a bare read transaction followed by STOP invokes the failing read_requested() call, which leaves stale state untouched. The I2C driver still delivers the STOP callback, which calls mctp_bus_rx() with a NULL packet. The dereference occurs in the I2C target interrupt handler.
A symmetric case exists on the transmit side. The stale MCTP_I2C_GPIO_TX_MSG_ADDR selection dereferences b->tx_pkt->end after b->tx_pkt has been cleared. It also signals b->tx_complete a second time, causing the next outbound packet to be dropped.
Root Cause
The root cause is incomplete state reset in the I2C STOP handler. The target binding fails to invalidate b->reg_addr and b->rxtx after each transfer completes. This allows subsequent transactions to reference freed packet buffers through the stale register selection.
Attack Vector
An attacker must have the ability to act as a controller on the shared management bus. This includes compromised firmware on a peer MCTP endpoint or on the Baseboard Management Controller (BMC). No authentication is required and no attacker-controlled value is written. On targets that trap address 0 accesses, exploitation produces a fatal exception. On parts where address 0 is readable, the impact degrades to a malformed packet buffer delivered to the MCTP stack and dropped transmit packets.
// Patch: subsys/pmci/mctp/mctp_i2c_gpio_target.c
}
}
+ /* After stop, a new register must be selected */
+ b->reg_addr = MCTP_I2C_GPIO_INVALID_ADDR;
+ b->rxtx = false;
+
return 0;
}
// Source: https://github.com/zephyrproject-rtos/zephyr/commit/60f7fee438504de29f2473d7a8d0535235b983ef
Detection Methods for CVE-2026-79976
Indicators of Compromise
- Unexpected device resets or halts on MCTP targets reachable from the shared management bus
- Fatal exceptions in the I2C target interrupt handler referencing NULL packet buffers
- Dropped outbound MCTP packets following back-to-back controller transactions without register selection
Detection Strategies
- Audit Zephyr build configurations for CONFIG_MCTP=y and CONFIG_MCTP_I2C_GPIO_TARGET=y to identify exposed devices
- Instrument MCTP target handlers to log transactions where b->rx_pkt or b->tx_pkt is NULL at STOP time
- Correlate BMC and peer endpoint firmware integrity events with MCTP target reset telemetry
Monitoring Recommendations
- Monitor system logs on BMCs and management controllers for repeated MCTP target faults or watchdog resets
- Track firmware versions across all MCTP endpoints sharing a bus to identify vulnerable Zephyr builds
- Alert on any peer endpoint acting as controller when the device role should be target-only
How to Mitigate CVE-2026-79976
Immediate Actions Required
- Update affected Zephyr RTOS builds to include commit 60f7fee438504de29f2473d7a8d0535235b983ef
- Inventory all devices built with CONFIG_MCTP_I2C_GPIO_TARGET=y and prioritize those on shared BMC buses
- Verify firmware integrity on all peer MCTP endpoints and BMCs that can act as bus controllers
Patch Information
The fix resets b->reg_addr to MCTP_I2C_GPIO_INVALID_ADDR and clears b->rxtx on every STOP. A new register must be selected before any data phase can run again. Refer to the Zephyr commit 60f7fee and the GitHub Security Advisory GHSA-76fx-m4mf-24gq for full details.
Workarounds
- Disable CONFIG_MCTP_I2C_GPIO_TARGET where the experimental MCTP subsystem is not required
- Restrict controller capability on the management bus to trusted endpoints only
- Apply firmware signing and secure boot on all peer MCTP endpoints to reduce the risk of compromised controllers
# Verify Zephyr build configuration excludes vulnerable target
grep -E 'CONFIG_MCTP(_I2C_GPIO_TARGET)?=y' build/zephyr/.config
# Rebuild with the subsystem disabled if not required
# In prj.conf:
# CONFIG_MCTP_I2C_GPIO_TARGET=n
west build -b <board> -p always
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

