Re: [PATCH net v3 1/1] net: ethernet: lantiq_etop: fix memory disclosure

From: Paolo Abeni
Date: Tue Oct 01 2024 - 04:57:52 EST




On 9/23/24 23:49, Aleksander Jan Bajkowski wrote:
When applying padding, the buffer is not zeroed, which results in memory
disclosure. The mentioned data is observed on the wire. This patch uses
skb_put_padto() to pad Ethernet frames properly. The mentioned function
zeroes the expanded buffer.

In case the packet cannot be padded it is silently dropped. Statistics
are also not incremented. This driver does not support statistics in the
old 32-bit format or the new 64-bit format. These will be added in the
future. In its current form, the patch should be easily backported to
stable versions.

Ethernet MACs on Amazon-SE and Danube cannot do padding of the packets
in hardware, so software padding must be applied.

Fixes: 504d4721ee8e ("MIPS: Lantiq: Add ethernet driver")
Signed-off-by: Aleksander Jan Bajkowski <olek2@xxxxx>

For future submissions, please avoid adding the cover letter in case of a single patch.

Thanks,

Paolo