diff --git a/kernel/kernel/Networking/NetworkManager.cpp b/kernel/kernel/Networking/NetworkManager.cpp index 733ec5efdc..1f5f876fe1 100644 --- a/kernel/kernel/Networking/NetworkManager.cpp +++ b/kernel/kernel/Networking/NetworkManager.cpp @@ -121,6 +121,8 @@ namespace Kernel void NetworkManager::on_receive(NetworkInterface& interface, BAN::ConstByteSpan packet) { + if (packet.size() < sizeof(EthernetHeader)) + return; auto ethernet_header = packet.as(); switch (ethernet_header.ether_type)