CVE-2026-102949
published medium CVSS 3.1 · 6.4Stale completion after I2C timeout causes use-after-return of transfer buffer in Intel SEDI I2C driver
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| zephyrproject | — | zephyr3.5.0 to < 4.3.2 · 4.4.0 to < 4.5.0 · Other versions: unaffected | Affected | Not stated | zephyr |
Description
The Intel SEDI I2C controller driver (drivers/i2c/i2c_sedi.c, used on Intel ISH platforms) waits for each asynchronous transfer with k_sem_take() on a per-controller completion semaphore and a 1 s timeout. When the wait times out, i2c_sedi_api_full_io() aborts the transfer via SEDI_I2C_ABORT_TRANSFER, but if the controller's completion interrupt fires between the timeout expiring and the abort masking interrupts, the callback k_sem_give()s the semaphore and the token is never discarded. The next transfer on that bus then takes the stale token immediately and returns success (the stale context->err is usually 0) while the controller is still executing it. The HAL interrupt handler (or DMA) keeps copying received bytes into the caller's msgs[i].buf. Since I2C callers typically pass stack buffers, this writes into a stack frame that has already been returned from, and the caller also consumes incomplete data. The desynchronization can persist across later transfers. Triggering the race requires a transfer to complete just after the 1 s timeout. A device on the I2C bus that controls clock stretching (for example a malicious or tampered peripheral) can steer this timing, and it also supplies the bytes that get written. Exploitation therefore needs physical access to the bus and is timing-dependent. The impact is corruption of kernel or thread stack memory with data the peripheral controls, which can lead to a crash or potentially to code execution. The fix calls k_sem_reset() and clears context->err after the abort, while the transfer mutex is still held.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- zephyr · cna
- Vector string
- CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| zephyrproject | zephyr | 3.5.0 to < 4.3.2 (affected · semver)4.4.0 to < 4.5.0 (affected · semver)Default: unaffected | zephyr · cna |
Weaknesses
1- CWE-416 use-after-free
References
2- Fix commit https://github.com/zephyrproject-rtos/zephyr/commit/628c432817b08e43ffa032876f37efd1bc946c13
- GHSA-cq29-vfwj-ph7w https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-cq29-vfwj-ph7w
Provider assertions
2zephyr · cna
Stale completion after I2C timeout causes use-after-return of transfer buffer in Intel SEDI I2C driver
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 048190ec3db2951dc79c894b5e984d17b318652621eab7588ec3c74a3febd5bf
- Ingested
- 23 Nov 2026, 18:50:24 UTC
- Source record
- Official CVE record