VEX for firmware: saying "not affected", with a reason
An SBOM checked against the NVD produces a list of CVEs, and in embedded firmware most of them do not affect the device. VEX is the way to record that, per CVE and per product, with a reason an auditor can follow.
The four statuses
- Under investigation: you know about it and are checking.
- Affected: the device is vulnerable; say what you will do about it.
- Fixed: a release containing the fix exists.
- Not affected: the device is not vulnerable, with one of the justifications below.
The five justifications, in embedded terms
- Component not present: the SBOM matched by name, but the component is not in this build. Example: a CVE in a Bluetooth stack, on a build with Bluetooth disabled in sdkconfig.
- Vulnerable code not present: the component is there, the vulnerable part is not compiled in. Example: an mbedTLS CVE in DTLS, on a build without DTLS.
- Vulnerable code not in execute path: the code is in the image but never reached. Example: a parser for a file format the application never reads.
- Vulnerable code cannot be controlled by adversary: the input that triggers it does not come from outside. Example: a bug triggered by a configuration value set only at build time.
- Inline mitigations already exist: a protection in the product stops the exploit. Use sparingly, and say which one.
Write reasons an auditor can check
"Not used" is not a reason. "CONFIG_BT_ENABLED is off in this build's sdkconfig, so the Bluedroid stack named in the CVE is not linked" is. Name the evidence: the configuration option, the build that the SBOM describes, the version that fixes it.
Keep it per build, and keep it current
A decision belongs to a product and its builds; a new release may change it. Pinscope keeps one decision per CVE in a project, applies it to every build that contains the component, suggests a status and justification from the CVE and your SBOM for an engineer to confirm, and puts the result into the report for your technical documentation.
Try it
Three devices are free, and no card is needed. Create an account, or read the guide for your platform: ESP32, Zephyr, Raspberry Pi Pico, Linux, ESP8266.
More
- Remote access to an ESP32 without TLS: what it measured and what it costs
- Reaching an ESP32 web server from outside its network
- Updating ESP32 firmware over the internet, with rollback
- Guru Meditation Error: decoding the backtrace, and crashes from the field
- Remote logging: ESP_LOG without a serial cable
- Heap and stack monitoring in the field
- An ESP32 behind CGNAT, 4G or Starlink
- TLS memory usage on the ESP32, and how to reduce it
- Sharing an ESP32 sensor page with anyone, without port forwarding
- ArduinoOTA over the internet, with a rollback
- ESP32 remote access compared: port forwarding, ngrok, Cloudflare Tunnel, Tailscale
- esp_http_server slow? The 250 ms delay and the fix
- Before the first ESP32 ships: a field support checklist
- ESP32 exception decoder: a Guru Meditation backtrace to lines, in the browser