Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess serial-recovery console locally
-
DeliverySend first upload with malformed CBOR or missing off/data
-
ExploitBypass flash_area_open while fap stays NULL
-
ExecutionEpilogue calls boot_handle_enc_fw(NULL)
-
Persistflash_area_read dereferences NULL
-
ImpactBootloader hard fault, transient recovery DoS
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a non-default MCUboot build with encrypted-image support enabled (MCUBOOT_ENC_IMAGES, i.e. Zephyr CONFIG_BOOT_ENCRYPT_IMAGE or a Mynewt BOOTUTIL_ENCRYPT_* syscfg) AND an active serial-recovery transport, built specifically on the Zephyr or Mynewt port - the Espressif, NuttX, Cypress and Mbed ports are not affected. The attacker needs local access to the serial-recovery console (AV:L), but no authentication (serial recovery is unauthenticated by design); the trigger is the first upload command on a fresh recovery session carrying a malformed CBOR map or a packet missing the off/data members, which exploits default-true zero-initialized statics (curr_off == img_size, primary-slot match). LIMITING FACTORS: local/console access only (not remotely reachable); non-default encrypted-image configuration; port-specific (Zephyr/Mynewt only); and the crash only manifests on targets that trap NULL (MPU or null-pointer-exception detection) - on targets where address 0x0 is mapped readable flash the read returns an error and execution continues, producing no DoS. |
| Impact | This is a low-priority issue despite being pre-authentication. The signals align consistently toward low real-world risk rather than conflicting. The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L = 4.0) shows the key limiter is AV:L: exploitation requires local access to the serial-recovery console, not network reachability. The only impact is A:L (transient availability loss) with C:N/I:N - consistent with the description's statement that fap is a hard NULL, not an attacker-controlled value, so there is no memory-corruption or information-disclosure primitive and image authentication is unaffected. No EPSS score was provided in the input, so exploitation probability cannot be quantified. The CVE is NOT in CISA KEV, and no working exploit code is referenced (only the fix commit and GHSA advisory). The vuln.today decision label is 'this_month', indicating routine patch-cycle urgency rather than emergency. Two structural limiters further reduce priority: (1) it requires a non-default build (MCUBOOT_ENC_IMAGES / CONFIG_BOOT_ENCRYPT_IMAGE) on only the Zephyr or Mynewt ports, and (2) whether the NULL dereference actually faults is platform-dependent - targets mapping 0x0 as readable flash merely return an error and continue. Crucially, as the advisory notes, serial recovery is unauthenticated by design and already lets a console attacker write the secondary slot, so the net added capability is only a low-value transient crash. Net: a genuine but minor DoS, correctly rated low/medium - not a widespread or high-urgency threat. |
| Exploit ScenarioDerived | An attacker with local access to a device's serial-recovery console (e.g. physical UART/USB on an embedded device built with encrypted images) sends the very first serial-recovery upload command carrying a malformed CBOR payload or a packet missing the off/data members. Because img_num, curr_off and img_size are zero-initialized statics on a fresh session, the guarding conditions are default-true, so the MCUBOOT_ENC_IMAGES epilogue calls boot_handle_enc_fw() with a NULL flash_area, dereferenced in flash_area_read(). On NULL-trapping targets this hard-faults the bootloader. No working public exploit code is referenced; only the fix commit is available. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
NULL pointer dereference in MCUboot's serial-recovery image-upload handler (bs_upload) crashes the bootloader during a recovery session on non-default encrypted-image builds, affecting releases 2.0.0 through 2.4.x (fixed in 2.5.0). The first upload command on a fresh session carrying a malformed CBOR map, or a packet missing the off/data members, jumps to the shared epilogue before flash_area_open() has populated fap; in MCUBOOT_ENC_IMAGES builds that epilogue unconditionally calls boot_handle_enc_fw(fap), which dereferences the NULL flash_area. Reachable unauthenticated (CVSS PR:N) from the local serial console (AV:L) on the Zephyr and Mynewt ports only, the result is a transient bootloader denial of service and only on targets that trap NULL; there is no memory corruption, information leak or impact on image authentication, no public exploit identified at time of analysis, and the reported CVSS is only 4.0 with a this_month priority label.
RemediationAI
Vendor-released patch: upgrade to MCUboot 2.5.0, the first release containing the fix; the upstream change is commit 400f9a7242641655948b08acac19932f56d9881f (PR #2837), which guards the encrypted-image epilogue with 'if (rc == 0 && fap != NULL)' and an img_num bounds check before calling boot_handle_enc_fw(); the release lines that have not taken a backport remain affected per the advisory at https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-777r-3chm-p78c. Where 2.5.0 cannot be deployed promptly, the affected code path can be removed at build time by disabling encrypted-image support (Zephyr CONFIG_BOOT_ENCRYPT_IMAGE or the Mynewt BOOTUTIL_ENCRYPT_* syscfg), which preprocesses the vulnerable call out of the epilogue but forfeits encrypted firmware image support, or by building without the serial-recovery transport (Zephyr CONFIG_MCUBOOT_SERIAL), which removes the reachable handler at the cost of losing field recovery over UART; because serial recovery is unauthenticated by design, physical/serial-console access should also be treated as a trust boundary. The related unconditional flash_area_close(fap) in the same epilogue is a benign no-op on the ports that reach it and needs no separate mitigation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MCUboot is a secure bootloader for 32-bit microcontrollers, and its serial recovery mode speaks a CBOR-encoded command protocol over a UART so a host can push firmware into the secondary slot without a debugger. bs_upload() in boot/boot_serial/src/boot_serial.c declares 'const struct flash_area *fap = NULL' and only assigns it later via flash_area_open(); two early validation failures (a CBOR map that fails to decode at line 942, or a packet missing off/data at lines 958-962) branch to out_invalid_data while fap is still NULL. The MCUBOOT_ENC_IMAGES epilogue at lines 1198-1211 runs without an rc check and, when the zero-initialized statics make curr_off == img_size and the primary-slot test true, calls boot_handle_enc_fw(fap); that function (boot/boot_serial/src/boot_serial_encryption.c:286) passes the pointer to boot_image_load_header(), whose first statement (boot/bootutil/src/bootutil_public.c:772) calls flash_area_read(fa_p, 0, ...) and dereferences the NULL flash_area - CWE-476. The defect was introduced by commit c9fa6088 (2023-08-09), which changed boot_handle_enc_fw() to accept the caller's fap, and first shipped in v2.0.0. The unconditional flash_area_close(fap) in the same epilogue is a safe no-op on the ports that reach it and does not contribute. Failure mode is configuration- and platform-dependent: builds without MCUBOOT_ENC_IMAGES preprocess the call away, and where address 0x0 is mapped readable flash the read simply returns an error and execution continues, so a hard fault occurs only on targets with MPU or null-pointer-exception detection.
Know when Mcuboot gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Serial-recovery console access is local (AV:L), unauthenticated by design (PR:N), reliably triggered on first command (AC:L); only transient availability loss (A:L), no confidentiality or integrity impact.
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
MCUboot's serial-recovery image-upload handler bs_upload() in boot/boot_serial/src/boot_serial.c declares const struct flash_area *fap = NULL and assigns it only via flash_area_open() part-way through the function. Two early validation failures (goto out_invalid_data) - a CBOR map that fails to decode, or an upload packet missing the off/data members - branch past the open while fap is still NULL, then fall into the shared epilogue. In MCUBOOT_ENC_IMAGES builds that epilogue unconditionally calls boot_handle_enc_fw(fap), which reaches boot_image_load_header() and flash_area_read() and dereferences the NULL flash_area.
The defect is reachable pre-authentication: the trigger is the very first serial-recovery upload command carrying a malformed payload. The guarding conditions are default-true on a fresh recovery session - img_num, curr_off and img_size are zero-initialized statics, so curr_off == img_size and the primary-slot test both hold. It requires a non-default build: encrypted images (MCUBOOT_ENC_IMAGES / Zephyr CONFIG_BOOT_ENCRYPT_IMAGE) together with an active serial-recovery transport, on the Zephyr or Mynewt port (the two that build both boot/boot_serial/src/boot_serial.c and boot_serial_encryption.c with MCUBOOT_ENC_IMAGES).
The impact is a transient denial of service of the bootloader during recovery. fap is a hard NULL rather than an attacker-controlled value, so there is no memory-corruption or information-leak primitive and image authentication is unaffected. Whether the dereference faults is platform-dependent - on targets where address 0x0 is mapped readable flash the read merely returns an error and execution continues, while targets that trap NULL (MPU / null-pointer-exception detection) take a hard fault. Because serial recovery is unauthenticated by design and already permits the console attacker to write the secondary slot, the added capability is only a low-value transient crash.
The related unconditional flash_area_close(fap) call in the same epilogue is a safe no-op on the ports that reach it, so it does not contribute to the dereference.
The affected ports are the Zephyr port - boot/zephyr/CMakeLists.txt compiles boot_serial.c under CONFIG_MCUBOOT_SERIAL and boot_serial_encryption.c under CONFIG_BOOT_ENCRYPT_IMAGE - and the Mynewt port, whose mcuboot_config.h defines MCUBOOT_SERIAL unconditionally and MCUBOOT_ENC_IMAGES under any BOOTUTIL_ENCRYPT_ syscfg, with boot/boot_serial/pkg.yml declaring no explicit source list so the whole directory is built. The Espressif port is not affected**: it compiles boot_serial.c but not boot_serial_encryption.c, and defines no MCUBOOT_ENC_IMAGES, so the #ifdef MCUBOOT_ENC_IMAGES block containing the call is preprocessed away. The NuttX, Cypress and Mbed ports do not build boot_serial.c at all.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Related Vulnerabilities in MCUboot Memory Safety and Crypto Flaws
View all 8Pre-authentication stack memory corruption in MCUboot's encrypted serial-recovery upload path (versions 1.9.0 through 2.
MCUboot 1.1.0 and later can be driven to boot un-revalidated firmware in the primary slot because security-critical inva
Unbounded CBOR recursion in MCUboot's serial-recovery command parser lets an unauthenticated party crash or hang a devic
EUVD-2026-124789
GHSA-fwvg-qqfx-4m7g
NVD
CVE.org
EPSS
Exploit-DB