virt: tdx-guest: Fix handling of host controlled 'quote' buffer length
Summary
| CVE | CVE-2026-31470 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-04-22 14:16:43 UTC |
| Updated | 2026-04-22 14:16:43 UTC |
| 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. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected f4738f56d1dc62aaba69b33702a5ab098f1b8c63 a079a62883e3365de592cea9f7a669d8115433b0 git |
Not specified |
| CNA |
Linux |
Linux |
affected f4738f56d1dc62aaba69b33702a5ab098f1b8c63 6f3c8795ae9ba74fa10fe979293d1904712d3fb1 git |
Not specified |
| CNA |
Linux |
Linux |
affected f4738f56d1dc62aaba69b33702a5ab098f1b8c63 02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b git |
Not specified |
| CNA |
Linux |
Linux |
affected f4738f56d1dc62aaba69b33702a5ab098f1b8c63 c3fd16c3b98ed726294feab2f94f876290bf7b61 git |
Not specified |
| CNA |
Linux |
Linux |
affected 6.7 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.7 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.80 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.21 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.19.11 6.19.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.0 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/c3fd16c3b98ed726294feab2f94f876290bf7b61 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/6f3c8795ae9ba74fa10fe979293d1904712d3fb1 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/a079a62883e3365de592cea9f7a669d8115433b0 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.