Re: bgpd and ldpd pfkey_reply might access uninitialized stack memory

2022-11-07 Thread Claudio Jeker
On Mon, Nov 07, 2022 at 08:12:23PM +0100, Moritz Buhl wrote: > Hi tech, > Dear claudio, > > there could be an uninitialized stack memory access in pfkey_reply. > > It looks like this: > struct sadb_msg hdr, *msg; > ... > > do { > rv = pfkey_read(sd, ); >

bgpd and ldpd pfkey_reply might access uninitialized stack memory

2022-11-07 Thread Moritz Buhl
Hi tech, Dear claudio, there could be an uninitialized stack memory access in pfkey_reply. It looks like this: struct sadb_msg hdr, *msg; ... do { rv = pfkey_read(sd, ); if (rv == -1) return (-1); } while (rv);