mirror of
https://github.com/torvalds/linux.git
synced 2026-09-20 19:01:02 +02:00
imm_buf->len is a user-controlled uint32_t received from the network.
Adding it to imm_data_offset without overflow checking allows a
malicious initiator to send len=0xFFFFFFFF, causing req_size to wrap
around to a small value, bypassing the bounds check, and subsequently
passing a ~4GB length to sg_init_one().
Use check_add_overflow() to detect wrapping before the comparison.
Fixes:
|
||
|---|---|---|
| .. | ||
| ib_dm_mad.h | ||
| ib_srpt.c | ||
| ib_srpt.h | ||
| Kconfig | ||
| Makefile | ||