Re: [PATCH] usb: image: mdc800: change kmalloc() to kzalloc()

From: Oliver Neukum

Date: Wed Sep 02 2026 - 05:37:06 EST




On 01.09.26 16:30, Greg Kroah-Hartman wrote:

With old hardware like this, let's just stick to this "obviously
correct" patch, and if someone with the hardware ever shows up, we can
then test short message information like this. As-is, this prevents a
simple "leak kernel memory to userspace with a hand-crafted-device" bug.

You are not wrong, but if I put on my security person hat I cannot
ignore that we are still leaking information among users. That is
the obvious fixes would be memsets in open(), not in init()

Regards
Oliver