# unsignedchad/cve-2026-21155-sve-2026-3546 architecture

> Architecture diagram of the GitHub repository unsignedchad/cve-2026-21155-sve-2026-3546, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/unsignedchad/cve-2026-21155-sve-2026-3546
- Repository: https://github.com/unsignedchad/cve-2026-21155-sve-2026-3546

## Overview

This repository documents a Samsung S-Boot security exploit and provides a proof-of-concept image builder and flashing launcher. The user workflow is to prepare a replacement-logo UP_PARAM archive from a device-specific stock archive, flash it through download mode, then reboot to trigger the bootloader’s logo decode. The README describes the vulnerable signature-check and decode stages, but their firmware implementations are not repository source files; the only sampled implementation is the archive builder.

Main entry points: [`poc/build_control_up_param.py`](https://github.com/unsignedchad/cve-2026-21155-sve-2026-3546/blob/main/poc/build_control_up_param.py) (Archive builder), [`poc/flash_control.sh`](https://github.com/unsignedchad/cve-2026-21155-sve-2026-3546/blob/main/poc/flash_control.sh) (Flash launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_poc["Proof of concept"]
  node_builder["Archive builder"]
  node_replacement["Replacement logo archive"]
  node_flasher["Flash launcher<br/>[flash_control.sh]"]
end

subgraph group_firmware["Bootloader vulnerability"]
  node_signature["Signature check"]
  node_dispatcher["Flash dispatcher"]
  node_upparam[("UP_PARAM partition")]
  node_logo["Boot logo archive"]
  node_decoder["JPEG decoder"]
  node_buffer["Decode destination"]
end

node_engineer(("PoC operator"))
node_stock["Stock UP_PARAM"]
node_device["Samsung device"]

node_engineer -->|"runs"| node_builder
node_stock -->|"supplies archive"| node_builder
node_builder -->|"builds archive"| node_replacement
node_engineer -->|"runs"| node_flasher
node_replacement -->|"provides image"| node_flasher
node_flasher -->|"flashes over USB"| node_device
node_signature -->|"permits unsigned write"| node_dispatcher
node_dispatcher -->|"writes partition"| node_upparam
node_upparam -->|"stores logo archive"| node_logo
node_logo -->|"supplies JPEG"| node_decoder
node_decoder -->|"overwrites"| node_buffer

click node_builder "https://github.com/unsignedchad/cve-2026-21155-sve-2026-3546/blob/main/poc/build_control_up_param.py"
click node_flasher "https://github.com/unsignedchad/cve-2026-21155-sve-2026-3546/blob/main/poc/flash_control.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_builder,node_replacement,node_flasher toneBlue
class node_signature,node_dispatcher,node_upparam,node_logo,node_decoder,node_buffer toneAmber
class node_engineer,node_stock,node_device toneIndigo
```

## Components

### Proof of concept

- [Archive builder](https://github.com/unsignedchad/cve-2026-21155-sve-2026-3546/blob/main/poc/build_control_up_param.py): `poc/build_control_up_param.py`
- **Replacement logo archive**
- [Flash launcher](https://github.com/unsignedchad/cve-2026-21155-sve-2026-3546/blob/main/poc/flash_control.sh): `poc/flash_control.sh`

### Bootloader vulnerability

- **Signature check**
- **Flash dispatcher**
- **UP_PARAM partition**
- **Boot logo archive**
- **JPEG decoder**
- **Decode destination**

### Other components

- **PoC operator**
- **Stock UP_PARAM**
- **Samsung device**

## Connections

- PoC operator → Archive builder: runs (evidence: `README.md`)
- Stock UP_PARAM → Archive builder: supplies archive (evidence: `README.md`)
- Archive builder → Replacement logo archive: builds archive (evidence: `poc/build_control_up_param.py`)
- PoC operator → Flash launcher: runs (evidence: `README.md`)
- Replacement logo archive → Flash launcher: provides image (evidence: `README.md`)
- Flash launcher → Samsung device: flashes over USB (evidence: `README.md`)
- Signature check → Flash dispatcher: permits unsigned write (evidence: `README.md`)
- Flash dispatcher → UP_PARAM partition: writes partition (evidence: `README.md`)
- UP_PARAM partition → Boot logo archive: stores logo archive (evidence: `README.md`)
- Boot logo archive → JPEG decoder: supplies JPEG (evidence: `README.md`)
- JPEG decoder → Decode destination: overwrites (evidence: `README.md`)
