mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
The loopback move_data() performs a memcpy into the registered DMB
without checking whether offset + size exceeds the DMB length. Unlike
real ISM hardware, which enforces memory region bounds natively, the
software loopback has no such protection.
A peer-supplied out-of-bounds offset or oversized write would result in
an OOB write past the allocated kernel buffer. Add an explicit bounds
check before the memcpy to reject such requests with -EINVAL.
Fixes:
|
||
|---|---|---|
| .. | ||
| dibs_loopback.c | ||
| dibs_loopback.h | ||
| dibs_main.c | ||
| Kconfig | ||
| Makefile | ||