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

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-04-22T13:53:58.925Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-125, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from f4738f56d1dc62aaba69b33702a5ab098f1b8c63 before a079a62883e3365de592cea9f7a669d8115433b0; from f4738f56d1dc62aaba69b33702a5ab098f1b8c63 before 6f3c8795ae9ba74fa10fe979293d1904712d3fb1; from f4738f56d1dc62aaba69b33702a5ab098f1b8c63 before 02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b; from f4738f56d1dc62aaba69b33702a5ab098f1b8c63 before c3fd16c3b98ed726294feab2f94f876290bf7b61; 6.7 (not affected: before 6.7; from 6.12.80 up to 6.12.*; from 6.18.21 up to 6.18.*; from 6.19.11 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.7 before 6.12.80; from 6.13 before 6.18.21; from 6.19 before 6.19.11; 7.0

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2026-31470](https://www.cve.org/CVERecord?id=CVE-2026-31470), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-31470](https://nvd.nist.gov/vuln/detail/CVE-2026-31470), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31470 · Whole record: https://cve.day/CVE-2026-31470.json · Rebuilt by cve.day 2026-11-25T22:59:19.278Z
