feat(sbom): CVEs for FreeRTOS, lwIP, Mbed TLS and wolfSSL in firmware trees #351

Merged
sharang merged 1 commits from feat/firmware-cves into main 2026-09-23 15:13:10 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 c08e8fb7f4 feat(sbom): CVEs for FreeRTOS, lwIP, Mbed TLS and wolfSSL in firmware trees
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 9m22s
A microcontroller project vendors its RTOS, TCP/IP stack and TLS library
as source. No manifest names them, so no SBOM listed their versions and
no CVE was ever matched against them, although that is where the
published vulnerabilities of an embedded product are.

- embedded_versions: reads each library's version from the header that
  states it (tskKERNEL_VERSION_NUMBER, LWIP_VERSION_*,
  MBEDTLS_VERSION_STRING, LIBWOLFSSL_VERSION_STRING), vendor directories
  included, into SBOM entries (`embedded`, with the library's license).
- nvd_cpe: the NVD matching the CODESYS runtime used, made generic. Every
  CVE of a product is fetched by CPE and its affected ranges matched
  here. FreeRTOS kernel CVEs are filed under the `o` part and its TCP/IP
  stack under `a`, so the products are asked for with `cpe:2.3:*:`.
- The scan adds the entries before the CVE stage and matches them in NVD
  after OSV. The CODESYS match now uses the same code.

Verified against NVD: all four CPE names return CVEs; a trimmed real
FreeRTOS response is a unit-test fixture (10.0.1, 10.3.1, 10.5.1, 10.6.2).
Nightly target fw-embedded-libs (FreeRTOS 10.3.1, lwIP 2.1.2, Mbed TLS
2.16.2; version defines only) finds the three libraries and 49 CVEs;
no other baseline changed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-23 17:03:28 +02:00