mbox series

[0/2] harden libkmod-builtin with wrong modules.builtin.modinfo

Message ID 20210413112315.18907-1-sw0312.kim@samsung.com (mailing list archive)
Headers show
Series harden libkmod-builtin with wrong modules.builtin.modinfo | expand

Message

Seung-Woo Kim April 13, 2021, 11:23 a.m. UTC
The wrong data in modules.builtin.modinfo can cause overflow or
double free from modinfo with libkmod-builtin. Fix the error
cases with strict checking.

Seung-Woo Kim (2):
  libkmod: fix an overflow with wrong modules.builtin.modinfo
  libkmod: fix possible double free with wrong modules.builtin.modinfo

 libkmod/libkmod-builtin.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Lucas De Marchi April 17, 2021, 8:58 p.m. UTC | #1
On Tue, Apr 13, 2021 at 08:23:13PM +0900, Seung-Woo Kim wrote:
>The wrong data in modules.builtin.modinfo can cause overflow or
>double free from modinfo with libkmod-builtin. Fix the error
>cases with strict checking.
>
>Seung-Woo Kim (2):
>  libkmod: fix an overflow with wrong modules.builtin.modinfo
>  libkmod: fix possible double free with wrong modules.builtin.modinfo


both commits applied,

thanks
Lucas De Marchi

>
> libkmod/libkmod-builtin.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>-- 
>2.19.2
>