namjaejeon / ksmbd-tools

ksmbd kernel server userspace utilities
GNU General Public License v2.0
52 stars 42 forks source link

RPC parsing fixes #186

Closed mmakassikis closed 1 year ago

mmakassikis commented 1 year ago

It is possible to crash ksmbd.mountd by sending invalid RPC requests.

This series adds some missing checks that fix crashes turned up by fuzzing the RPC code. The last commit is quite large as callers to ndrwrite* functions are modifed to check the return value and exit early. This is a mechanical change, but it's possible I missed something in the process.

mmakassikis commented 1 year ago

I pushed an updated version:

mmakassikis commented 1 year ago

Updated the branch:

namjaejeon commented 1 year ago

Applied. Thanks for your patches!