---
title: "CWE-1310: Missing Ability to Patch ROM Code"
url: https://radicalnotion.ai/cwe/cwe-1310
type: cwe
description: "Missing an ability to patch ROM code may leave a System or System-on-Chip (SoC) in a vulnerable state."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1310: Missing Ability to Patch ROM Code

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 1
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

Missing an ability to patch ROM code may leave a System or System-on-Chip (SoC) in a vulnerable state.

A System or System-on-Chip (SoC) that implements a boot process utilizing security mechanisms such as Root-of-Trust (RoT) typically starts by executing code from a Read-only-Memory (ROM) component.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | This issue could be introduced during hardware architecture and design and can be identified later during Testing. |
| Implementation | This issue could be introduced during implementation and can be identified later during Testing. |
| Integration | This issue could be introduced during integration and can be identified later during Testing. |
| Manufacturing | This issue could be introduced during manufacturing and can be identified later during Testing. |

## Applicable platforms

**Technologies:** System on Chip (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Varies by Context, Reduce Maintainability | Because the code in ROM is immutable, the ROM does not have the ability to patch after the system gets shipped. Hence any security vulnerabilities discovered in the ROM code can never be fixed for the systems that are already in use. Thus the system can be left in a vulnerable state where an adversary can compromise the SoC.. |

## Potential mitigations

### Architecture and Design, Implementation

Secure patch support to allow ROM code to be patched on the next boot.

Effectiveness: Moderate. Some parts of the hardware initialization or signature verification done to authenticate patches will always be "not patchable."

### Architecture and Design, Implementation

Support patches that can be programmed in-field or during manufacturing through hardware fuses. This feature can be used for limited patching of devices after shipping, or for the next batch of silicon devices manufactured, without changing the full device ROM.

Effectiveness: Moderate. Patches that use hardware fuses will have limitations in terms of size and the number of patches that can be supported. Note that some parts of the hardware initialization or signature verification done to authenticate patches will always be "not patchable."

## Demonstrative examples

### Example 1

A System-on-Chip (SOC) implements a Root-of-Trust (RoT) in ROM to boot secure code. However, at times this ROM code might have security vulnerabilities and need to be patched. Since ROM is immutable, it can be impossible to patch.

ROM does not have built-in application-programming interfaces (APIs) to patch if the code is vulnerable. Implement mechanisms to patch the vulnerable ROM code.

### Example 2

The example code is taken from the SoC peripheral wrapper inside the buggy OpenPiton SoC of HACK@DAC'21. The wrapper is used for connecting the communications between SoC peripherals, such as crypto-engines, direct memory access (DMA), reset controllers, JTAG, etc. The secure implementation of the SoC wrapper should allow users to boot from a ROM for Linux (i\_bootrom\_linux) or from a patchable ROM (i\_bootrom\_patch) if the Linux bootrom has security or functional issues.The example code is taken from the SoC peripheral wrapper inside the buggy OpenPiton SoC of HACK@DAC'21. The wrapper is used for connecting the communications between SoC peripherals, such as crypto-engines, direct memory access (DMA), reset controllers, JTAG, etc. The secure implementation of the SoC wrapper should allow users to boot from a ROM for Linux (i\_bootrom\_linux) or from a patchable ROM (i\_bootrom\_patch) if the Linux bootrom has security or functional issues.

Bad code:

```systemverilog
...
    bootrom i_bootrom_patch (
        .clk_i                   ,
        .req_i      ( rom_req   ),
        .addr_i     ( rom_addr  ),
        .rdata_o    ( rom_rdata_patch )
    );
    bootrom_linux i_bootrom_linux (
        .clk_i                   ,
        .req_i      ( rom_req   ),
        .addr_i     ( rom_addr  ),
        .rdata_o    ( rom_rdata_linux )
    );
assign rom_rdata = (ariane_boot_sel_i) ? rom_rdata_linux : rom_rdata_linux;
...
```

Good code:

```systemverilog
...
    bootrom i_bootrom_patch (
        .clk_i                   ,
        .req_i      ( rom_req   ),
        .addr_i     ( rom_addr  ),
        .rdata_o    ( rom_rdata_patch )
    );
    bootrom_linux i_bootrom_linux (
        .clk_i                   ,
        .req_i      ( rom_req   ),
        .addr_i     ( rom_addr  ),
        .rdata_o    ( rom_rdata_linux )
    );
assign rom_rdata = (ariane_boot_sel_i) ? rom_rdata_patch : rom_rdata_linux;
...
```

The above implementation causes the ROM data to be hardcoded for the linux system (rom\_rdata\_linux) regardless of the value of ariane\_boot\_sel\_i. Therefore, the data (rom\_rdata\_patch) from the patchable ROM code is never used \[REF-1396\].

This weakness disables the ROM's ability to be patched. If attackers uncover security vulnerabilities in the ROM, the users must replace the entire device. Otherwise, the weakness exposes the system to a vulnerable state forever.

A fix to this issue is to enable rom\_rdata to be selected from the patchable rom (rom\_rdata\_patch) \[REF-1397\].

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-55338 | Windows BitLocker Security Feature Bypass Vulnerability | medium | 6.1 | - | No | 2025-10-14 |

## Related attack patterns (CAPEC)

- [CAPEC-682](https://radicalnotion.ai/capec/capec-682): Exploitation of Firmware or ROM Code with Unpatchable Vulnerabilities

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-1329](https://radicalnotion.ai/cwe/cwe-1329) | Reliance on Component That is Not Updateable |

## Frequently asked questions

### What is CWE-1310?

Missing an ability to patch ROM code may leave a System or System-on-Chip (SoC) in a vulnerable state.

### What CVEs are caused by CWE-1310?

1 recorded CVE is attributed to CWE-1310: CVE-2025-55338.

### How do you prevent CWE-1310?

Secure patch support to allow ROM code to be patched on the next boot.

### What are the consequences of CWE-1310?

Exploiting CWE-1310 can lead to: Varies by Context, Reduce Maintainability.

### Is CWE-1310 actively exploited?

1 recorded CVE is caused by CWE-1310; it is not currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/1310.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-1310). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
