grub2/grub-core/net
Darren Kenny 118fe4df3c net/tftp: Fix dangling memory pointer
The static code analysis tool, Parfait, reported that the valid of
file->data was left referencing memory that was freed by the call to
grub_free(data) where data was initialized from file->data.

To ensure that there is no unintentional access to this memory
referenced by file->data we should set the pointer to NULL.

Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>

Patch-Name: 2021-02-security/018-net-tftp-Fix-dangling-memory-pointer.patch
2021-02-27 14:46:20 +00:00
..
drivers efinet: Setting DNS server from UEFI protocol 2020-03-07 12:21:23 +00:00
arp.c Add Virtual LAN support. 2017-05-03 13:03:50 +02:00
bootp.c bootp: Improve allocation handling in parse_dhcp6_option 2020-07-26 23:38:34 +01:00
dns.c malloc: Use overflow checking primitives where we do complex allocations 2020-07-24 22:42:22 +01:00
ethernet.c Add Virtual LAN support. 2017-05-03 13:03:50 +02:00
http.c net: read bracketed ipv6 addrs and port numbers 2020-03-07 12:21:23 +00:00
icmp6.c net: fix ipv6 routing 2016-02-25 22:38:52 +03:00
icmp.c arp, icmp: Fix handling in case of oversized or invalid packets. 2015-03-27 12:18:25 +01:00
ip.c bootp: New net_bootp6 command 2020-03-07 12:21:23 +00:00
net.c net/net: Fix possible dereference to of a NULL pointer 2021-02-27 14:46:20 +00:00
netbuff.c arp, icmp: Fix handling in case of oversized or invalid packets. 2015-03-27 12:18:25 +01:00
tcp.c tcp: fix memory leaks 2016-01-16 20:59:50 +03:00
tftp.c net/tftp: Fix dangling memory pointer 2021-02-27 14:46:20 +00:00
udp.c * grub-core/disk/ahci.c: Add needed explicit cast. 2013-08-21 21:02:14 +02:00