CVE-2026-139458: PCI/P2PDMA: Safely terminate ACS redirect lists
In the Linux kernel, the following vulnerability has been resolved:
PCI/P2PDMA: Safely terminate ACS redirect lists
seqbuf marks an overflow by setting len to size + 1. The ACS diagnostic path unconditionally writes a terminator to buffer[len - 1], so a path with enough ACS ports to fill the 128-byte buffer writes one byte beyond the buffer when verbose diagnostics are requested.
Use seqbufstr() to terminate truncated output safely and remove the final semicolon only when the buffer did not overflow.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Use seq_buf_str() to terminate truncated ACS diagnostic output safely, and remove the final semicolon only when the buffer did not overflow.
Event History
Frequently Asked Questions
When can this out-of-bounds write occur?
It occurs when verbose ACS diagnostics are requested and the ACS redirect list is long enough to fill the 128-byte diagnostic buffer. Under that condition, the diagnostic path writes a terminator one byte beyond the buffer.
What component or workflow is affected?
The issue is in the Linux kernel PCI/P2PDMA ACS diagnostic path. Systems not invoking verbose ACS diagnostics are not described as reaching the vulnerable write.
What is the remediation?
Apply a kernel update containing the referenced fixes. The fix uses seq_buf_str() to safely terminate truncated output and avoids removing the final semicolon when the buffer has overflowed.