Files
linux-stable-mirror/drivers
Michael Bommarito c55da494df thunderbolt: Limit XDomain response copy to actual frame size
commit 4db2bd2ed4 upstream.

tb_xdomain_copy() copies req->response_size bytes from the received
packet buffer regardless of the actual frame size.  When a short
response arrives, this reads past the valid frame data in the DMA
pool buffer into stale contents from previous transactions.

Use the minimum of frame size and expected response size for the
copy length.

Fixes: cdae7c07e3 ("thunderbolt: Add support for XDomain properties")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4-7
Signed-off-by: Michael Bommarito <michael.bommarito@gmail.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-06-19 13:21:39 +02:00
..
2026-06-01 17:29:22 +02:00
2026-06-19 13:21:38 +02:00
2026-06-19 13:21:39 +02:00