VEX: how to document that a CVE doesn't affect you (so someone else can check it)
What a VEX document is, the four statuses and five 'not affected' justifications, which formats exist and how to record it in Yocto with CVE_STATUS so it travels with the code. With an example of what isn't a valid justification.
Your scanner says the firmware has 400 CVEs. You go through them and 380 don’t affect you: the package isn’t there, the driver isn’t built, the vulnerable function is never called. Good work. Now the awkward question: where is that written down?
If it’s in someone’s head or in a spreadsheet, the work is lost with the next release, and nobody outside (a customer, an auditor, a market surveillance authority) can check it. That’s what VEX is for.
What the CRA asks for, and what it doesn’t
The CRA doesn’t mention VEX by name. What it requires is that the product is placed on the market without known exploitable vulnerabilities (Annex I, Part I) and that you identify and document the product’s vulnerabilities and components (Annex I, Part II, with the SBOM).
The Commission guidance (C(2026) 5252) makes the key point in paragraph 235: a vulnerability being reported in a component does not, in itself, mean it’s exploitable or that it applies to your product. You have to investigate and confirm it. And paragraph 237 leaves the decision to you, based on risk: severity, exploitability and impact.
In other words: the CRA doesn’t ask for zero CVEs. It asks you to have analysed each one and to be able to explain it. VEX is the standard way of writing that analysis down.
What a VEX document is
VEX (Vulnerability Exploitability eXchange) is a document that goes with the SBOM and states, for each product–vulnerability pair, whether the product is affected. What makes it useful is that the format is closed: CISA’s minimum requirements (April 2023) define four statuses:
| Status | Means | Requires |
|---|---|---|
not_affected |
The vulnerability doesn’t affect the product | A justification from the fixed list or, failing that, an impact statement |
affected |
It does, and something needs doing | An action statement: what fixes or mitigates it, and what users can do |
fixed |
The release contains the fix | — |
under_investigation |
Still being analysed | Expected to change once the analysis is done |
The last two matter more than they seem. under_investigation is honest and allowed: it beats leaving a CVE with no status, or marking it dismissed without having looked at it.
The five “not affected” justifications
For not_affected, CISA defines five justifications. With firmware examples:
- Component not present (
component_not_present). The vulnerable package isn’t in the image. Example: annscdCVE in an image that doesn’t install it. - Vulnerable code not present (
vulnerable_code_not_present). The component is there, but built without the vulnerable part. This is the justification that dismisses the most kernel CVEs: the fixed file belongs to a driver your.configdoesn’t build. We covered it in the article on kernel CVEs. - Vulnerable code not in execute path (
vulnerable_code_not_in_execute_path). It’s in the binary, but your product never calls it. Example: a library function your application doesn’t use. - Vulnerable code cannot be controlled by adversary (
vulnerable_code_cannot_be_controlled_by_adversary). The code runs, but nobody outside can manipulate the input that triggers the bug. Example: a parser that only reads a signed configuration file. - Inline mitigations already exist (
inline_mitigations_already_exist). A built-in protection prevents exploitation. CISA sets the bar high: the attacker can’t bypass it, the user can’t disable it, and it blocks the known attack vectors.
The practical rule for all of them: whatever you write, someone else must be able to check. “The foo driver isn’t in the release 2.3 .config” can be checked. “We don’t think it applies” can’t.
An example of what doesn’t work
This week brought CVE-2026-98432, a use-after-free in the Linux kernel’s IPv4 TCP code, CVSS 9.8, present since 4.4. The public remote-root exploit was demonstrated against servers with an MPTCP listener.
The temptation is to mark it not_affected because your kernel has no MPTCP. That doesn’t hold: the bug is in net/ipv4/tcp_ipv4.c, which is built into any kernel with networking, and according to several security advisories it can also be triggered over plain TCP. The known exploit using MPTCP doesn’t mean the vulnerable code is absent or unreachable.
The honest answer here is affected, with an action statement: “fixed in firmware release X, which ships kernel 6.6.159” or, if your BSP is on a branch with no fix such as 5.4, “fix backported to our kernel in release X”. And once you ship that release, fixed.
Formats
Four formats are in use, and they all say roughly the same thing:
- OpenVEX: the simplest, built only for VEX. It uses exactly CISA’s statuses and justifications.
- CycloneDX: VEX goes inside the SBOM itself or in a separate document, with its own, somewhat more detailed, list of states and justifications.
- CSAF: the security advisory format (many vendors use it for their advisories), with a VEX profile.
- SPDX 3.0: includes VEX relationships in its security profile. It’s what Yocto generates.
You don’t need the perfect one. You need it to be machine-readable, tied to a specific product release, and updated with every release.
This is what a statement looks like in OpenVEX (example):
{
"@context": "https://openvex.dev/ns/v0.2.0",
"@id": "https://example.com/vex/router-x-2.3.json",
"author": "Example security team",
"timestamp": "2026-11-05T09:00:00Z",
"version": 1,
"statements": [
{
"vulnerability": { "name": "CVE-2026-12345" },
"products": [ { "@id": "pkg:generic/example/[email protected]" } ],
"status": "not_affected",
"justification": "vulnerable_code_not_present",
"impact_statement": "The affected driver (CONFIG_FOO) is not built into the release 2.3 kernel."
}
]
}
In Yocto: CVE_STATUS, which travels with the code
Yocto’s big advantage is that the dismissal can live in the recipe itself, next to the code it refers to, instead of in a separate document someone forgets to update. You do it with CVE_STATUS, in the format “reason: description”:
CVE_STATUS[CVE-2026-12345] = "not-applicable-config: CONFIG_FOO is not enabled in our kernel"
If you have many with the same reason, CVE_STATUS_GROUPS bundles them:
CVE_STATUS_GROUPS += "CVE_STATUS_NO_WIN"
CVE_STATUS_NO_WIN = "CVE-2026-0001 CVE-2026-0002"
CVE_STATUS_NO_WIN[status] = "not-applicable-platform: only affects Windows"
The reasons aren’t free text: Yocto maps them to a status using the table in meta/conf/cve-check-map.conf. The most useful ones:
Reason in CVE_STATUS |
Yocto status | In VEX |
|---|---|---|
not-applicable-config |
Ignored | not affected: vulnerable code not present |
not-applicable-platform |
Ignored | not affected: vulnerable code not present |
fixed-version |
Patched | fixed |
backported-patch |
Patched | fixed |
cpe-incorrect |
Ignored | the scanner matched the CVE to the wrong component |
disputed |
Ignored | the CVE itself is disputed |
Two practical details:
- Security patches are picked up automatically. If you add a patch to
SRC_URIwith aCVE: CVE-2026-12345line in its header, Yocto marks that CVE as fixed without you writing anything else. - “Not in execute path”, “cannot be controlled” and “mitigation exists” have no reason of their own. For those, use
ignoredwith a clear description, or record them in a separate VEX.
What each Yocto release produces:
- Scarthgap (5.0, LTS): the
cve-checkclass produces a JSON report with each CVE’s status, andvex.bbclassgenerates the data for external tools. If you enable SPDX 3.0 (in Scarthgap the default SBOM is SPDX 2.2; see the SBOM article), the statuses end up in the SBOM as VEX relationships. By default (SPDX_INCLUDE_VEX = "current") only CVEs not already fixed in the upstream version are included. - Wrynose (6.0, LTS): the
cve-checkclass is gone. It’s replaced bysbom-cve-check, which analyses the image’s SPDX SBOM. The recommended fragment (core/yocto/sbom-cve-check) setsSPDX_INCLUDE_VEX = "all"and makes the kernel’s SBOM record which source files are compiled, so CVEs in code that isn’t in the image can be dismissed automatically.
Either way, CVE_STATUS is the source: what you write in the recipe is what ends up in the SBOM.
In Buildroot
Buildroot doesn’t generate VEX. What it has is <PACKAGE>_IGNORE_CVES in each package’s .mk, which makes Buildroot’s tooling stop listing that CVE. The convention is a comment above it with the reason. It works as a record, but if you need to deliver a VEX, you’ll have to generate it separately from those comments and your triage.
What to do this week
- Decide where the VEX lives: in the recipes with
CVE_STATUSif you use Yocto, or in an OpenVEX file per release, next to the SBOM. - Move the dismissals you already have (spreadsheets, tickets, emails) into that format, each with its justification from the list.
- Use
under_investigationfor what you haven’t looked at yet. Don’t mark it dismissed. - Review dismissals with every release: a CVE that didn’t affect you can start to if you change the
.config, update a package or enable a feature. - Keep the SBOM and VEX of every released version: it’s the first thing a customer will ask for, and what you need to report on time if a CVE starts being exploited.
If you’d like to start with your image
The Quick Scan gives you your image’s SBOM and its prioritised CVEs within 48 business hours, with every dismissal and its verifiable reason: what needs fixing, what can wait, and what you can document in your VEX as not affecting you. If you’d like to go through your case first, book 30 minutes.
Does your product have to comply with the CRA?
Start with a €1,900 Quick Scan or book 30 minutes to talk it through.