Skip to contentSkip to conversation

Minor bugs in sctp_getsockopt()

DISCUSSION David Laight 1 participant 1 message May 20, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

I've found 2 minor bugs in sctp_getsockopt().

sctp_getsockopt_peer_auth_chunks() fails to allow for the header structure when checking the length of the user buffer. So it can write beyond the end of the user buffer.

sctp_getsockopt_pr_streamstatus() fails to do the copy_to_user() when streamoute is NULL.

I found these in the middle of writing another patch. So generating the patch is tricky.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)