Detecting and fixing CVE security issues in yocto based embedded Linux distribution
summary
Yocto’s CVE checker compiles scan tools, downloads the NVD JSON feed every few hours, and compares each recipe’s CPE and PV against CVE ranges to produce per-recipe and per-image reports with statuses patched, unpatched or ignored. Fixes require either adding a patch named and tagged with the CVE (example: CVE-2022-30065) or bumping the recipe version; patch filenames and embedded commit messages must include the CVE for detection. Common gotchas: mismatched product/version names, embedded source or binary blobs, and large stacks (one product had ~70 meta-layers), so keep upstream merges and narrow used features.
AI-written summary · about
chapters (26)
- 0:00Intro
- 0:43Motivation
- 2:10poky reference distribution
- 2:22Layered architecture
- 4:36Differences between Debian/Ubuntu and yocto?
- 6:49Bitbake recipe is the source package
- 7:41What is a CVE security issue?
- 9:20CVE data fields
- 10:18Example CVE
- 11:56CPE: Common Platform Enumeration
- 12:49CVE data is buggy
- 13:49Linux distro users?
- 15:20What yocto CVE check does?
- 18:00CVE check output for busybox
- 19:06Yocto community maintenance
- 21:21Update or patch?
- 23:26Update minor version
- 25:49Full distro version updates
- 27:19Problems and limitations in yocto CVE scanning and patching, and CVE scanning in general
- 27:32Fix name matching with CVE_PRODUCT
- 28:06Fix version matching with CVE_VERSION
- 29:00Emedded source code in open source
- 30:11Embedded open source SW inside binaries
- 31:24Bad CVE data
- 32:13Incomplete CVE data
- 34:13Too complex patches
