CVE-2026-90015

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/09/2026
Last modified:
19/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> xhci: fix lost bounce buffers on TDs spanning several ring segments<br /> <br /> When a TD reaches a link TRB with data that is not aligned to the<br /> endpoint&amp;#39;s wMaxPacketSize, xhci_align_td() stages the unalignable tail<br /> through the bounce buffer of the ring segment holding that link TRB.<br /> xhci_unmap_td_bounce_buffer() later unmaps it and, for IN transfers,<br /> copies the data back into the URB&amp;#39;s buffer.<br /> <br /> The enqueue path records the segment that was bounced in td-&gt;bounce_seg,<br /> under the assumption that a TD never spans more than two ring segments.<br /> That assumption does not hold: a TD large enough to span three or more<br /> segments crosses several link TRBs and can be bounced at each of them.<br /> Only the last one survives in td-&gt;bounce_seg, so every earlier bounce<br /> buffer is neither copied back nor DMA unmapped.<br /> <br /> The URB still completes with actual_length equal to the requested length<br /> and no error, so the transfer looks successful while a wMaxPacketSize<br /> sized hole in the destination buffer silently keeps its previous<br /> contents. It also leaks a DMA mapping per dropped bounce.<br /> <br /> Any sufficiently large and fragmented bulk transfer can hit this. It was<br /> found with a USB mass storage device behind xHCI backing a dm-verity<br /> target with 512 byte hash blocks, where the stale data is detected rather<br /> than silently consumed. The device enumerates as SuperSpeed, so<br /> wMaxPacketSize is 1024, while dm-bufio issues one 512 byte bio per hash<br /> block. verity_prefetch_io() makes the block layer merge hundreds of them<br /> into a single request of up to 512 scatterlist entries of 512 bytes each.<br /> At 256 TRBs per ring segment such a TD spans three segments, and every<br /> segment boundary falls on an odd multiple of 512, i.e. unaligned to<br /> wMaxPacketSize. dm-bufio then caches a hash block holding stale data and<br /> dm-verity declares the metadata block corrupted:<br /> <br /> device-mapper: verity: 8:2: metadata block 10850 is corrupted<br /> <br /> A reproducer running this under qemu is available at<br /> https://github.com/baloo/xhci-verity<br /> <br /> The bounce state (bounce_buf, bounce_dma, bounce_len, bounce_offs)<br /> already lives on the ring segment, so there is nothing extra to track.<br /> Keep recording the last bounced segment in td-&gt;bounce_seg and, on<br /> completion, walk the segments from td-&gt;start_seg up to it, unmapping<br /> every segment that still has a pending bounce.<br /> <br /> Stopping at td-&gt;bounce_seg rather than td-&gt;end_seg matters: a bounce<br /> implies the TD continues past that segment&amp;#39;s link TRB, so bounce_seg is<br /> always strictly before end_seg, and a later TD may already have started<br /> in end_seg and been bounced there. Walking that far would copy a foreign<br /> bounce buffer into this URB and unmap it twice. It also keeps the walk<br /> correct if a TD ever wraps the whole ring so that end_seg == start_seg.<br /> <br /> [mn: Add ring-&gt;num_segs check to prevent unlikely infinite for loop.]

Impact