]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: reset was_space on second pass
authorLucas De Marchi <lucas.demarchi@intel.com>
Mon, 20 Jan 2020 19:15:38 +0000 (16:15 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 20 Jan 2020 19:15:38 +0000 (16:15 -0300)
commitf975f6bfcc88ce8cb653efa580ea73a8c22e17df
tree840680600fa632c736efee74e8d91e69bb928c2a
parent81dbf2bee644ef035d054e2101fceea86c50e07d
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
libkmod/libkmod-config.c