CVE-2026-99855: nvmet: pci-epf: require SGLs to match the command data length

Published Nov 30, 2026
·
Updated

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

nvmet: pci-epf: require SGLs to match the command data length

The PCI endpoint target sends the host every byte a read command's SGL describes, even when the SGL describes more than the command transfers. The excess is kmalloc() memory the command never wrote, so the host receives stale target memory. Any successful read can do this, including Identify.

nvmetpciepfallocioddatabuf() allocates each segment at the length of its SGL data descriptor, but sets req->transferlen from iod->datalen, the length the command implies. Once the command completes, nvmetpciepftransferioddata() sends every segment in full. Nothing compares the descriptor lengths with iod->datalen, and the MDTS check only bounds iod->datalen.

Fail the command with Data SGL Length Invalid when the data descriptors do not add up to iod->datalen, before any segment is allocated. The tcp and rdma transports take the data length from the SGL itself, so there most commands already reject a mismatch in nvmetchecktransferlen(). PRP lists are built from iod->datalen and are unaffected.

Found by code inspection.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Before allocating any data segment, verify that the SGL descriptor lengths sum to iod->data_len; if they do not, fail the command with Data SGL Length Invalid.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:17 PM
Data Sourced
via MITRE·01:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203