~registry/kmod/master

Viewing all changes in revision 1187.

  • Committer: Lucas De Marchi
  • Date: 2020-01-20 19:15:38 UTC
  • Revision ID: git-v1:f975f6bfcc88ce8cb653efa580ea73a8c22e17df
libkmod: reset was_space on second pass

The softdep config parser uses a 2-pass approach to use a single
allocation for all the softdep struct. However "was_space" variable
isn't reset between them. This can lead to a buffer overflow.

Reported-by: Jorge Lucangeli Obes <jorgelo@google.com>
Link: https://lore.kernel.org/linux-modules/CAKYuF5QhGCPCazHQjN-=kFc5kHs7Ok8WqmmGLo31CiOEN8TYdA@mail.gmail.com

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: