This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1791893 and then change the status of the bug to 'Confirmed'. If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'. This change has been made by an automated script, maintained by the Ubuntu Kernel Team. ** Changed in: linux (Ubuntu) Status: New => Incomplete ** Tags added: bionic -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1791893 Title: Trailing garbage data when sending on an AF_PACKET socket Status in linux package in Ubuntu: Incomplete Bug description: When sending an Ethernet frame on an packet socket (AF_PACKET, SOCK_RAW), an additional 14 bytes of trailing data is sent on the interface. The extra 14 bytes are present regardless of the packet size. The extra data could be garbage/uninitialised kernel memory. Expected result: The raw Ethernet frame is sent on the interface. Actual result: The raw Ethernet frame plus an additional 14 bytes of unknown data is sent on the interface. Steps to reproduce: The attached test program inject.c can be used to reproduce the issue. # In window 1. Send an EAP packet without any payload. gcc inject.c -o inject sudo ./inject lo # Simultaneously in window 2. Tcpdump shows a payload of 14 bytes. sudo tcpdump -i lo -enlx 07:45:45.005652 02:00:00:00:00:01 > 02:00:00:00:00:00, ethertype EAPOL (0x888e), length 28: EAP packet (0) v64, len 0 0x0000: 4000 0000 0000 0000 4000 0000 0000 Running strace on the "inject" program shows that send(2) is indeed called with the correct buffer size. The extra 14 bytes appear to be added by the kernel, and this might leak kernel memory. Ubuntu release: Ubuntu 18.04.1 LTS Package version: 4.15.0-33.36 The issue could not be reproduced on linux-image-4.15.0-22-generic or linux-image-4.15.0-23-generic. uname -a: Linux ubuntu 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1791893/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp