# CVE-2026-31470: virt: tdx-guest: Fix handling of host controlled 'quote' buffer length

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-787, CWE-125
- **Published:** 2026-04-22T13:53:58.925Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< a079a62883e3365de592cea9f7a669d8115433b0; \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< 6f3c8795ae9ba74fa10fe979293d1904712d3fb1; \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< 02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b; \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< c3fd16c3b98ed726294feab2f94f876290bf7b61
- Anyone running Linux 6.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

virt: tdx-guest: Fix handling of host controlled 'quote' buffer length

Validate host controlled value \`quote\_buf-\>out\_len\` that determines how
many bytes of the quote are copied out to guest userspace. In TDX
environments with remote attestation, quotes are not considered private,
and can be forwarded to an attestation server.

Catch scenarios where the host specifies a response length larger than
the guest's allocation, or otherwise races modifying the response while
the guest consumes it.

This prevents contents beyond the pages allocated for \`quote\_buf\`
(up to TSM\_REPORT\_OUTBLOB\_MAX) from being read out to guest userspace,
and possibly forwarded in attestation requests.

Recall that some deployments want per-container configs-tsm-report
interfaces, so the leak may cross container protection boundaries, not
just local root.

## Affected and fixed versions

- Linux: \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< a079a62883e3365de592cea9f7a669d8115433b0; \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< 6f3c8795ae9ba74fa10fe979293d1904712d3fb1; \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< 02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b; \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< c3fd16c3b98ed726294feab2f94f876290bf7b61 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31470. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31470.md
Affected: Linux >= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, < a079a62883e3365de592cea9f7a669d8115433b0; >= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, < 6f3c8795ae9ba74fa10fe979293d1904712d3fb1; >= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, < 02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b; >= f4738f56d1dc62aaba69b33…
Fixed in: Linux 6f3c8795ae9ba74fa10fe979293d1904712d3fb1, Linux 02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31470 being exploited?

There is no confirmed exploitation: CVE-2026-31470 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31470?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31470?

Linux \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< a079a62883e3365de592cea9f7a669d8115433b0; \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< 6f3c8795ae9ba74fa10fe979293d1904712d3fb1; \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< 02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b; \>= f4738f56d1dc62aaba69b33702a5ab098f1b8c63, \< c3fd16c3b98ed726294feab2f94f876290bf7b61; Linux 6.7.

### Is there a fix for CVE-2026-31470?

Yes. Fixed in Linux 6f3c8795ae9ba74fa10fe979293d1904712d3fb1, Linux 02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-31470?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a079a62883e3365de592cea9f7a669d8115433b0>
- patch: <https://git.kernel.org/stable/c/6f3c8795ae9ba74fa10fe979293d1904712d3fb1>
- patch: <https://git.kernel.org/stable/c/02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b>
- patch: <https://git.kernel.org/stable/c/c3fd16c3b98ed726294feab2f94f876290bf7b61>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31470>

HTML: <https://flawdb.com/CVE-2026-31470> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31470>
