The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Re: CVE-2026-63985: ethtool: eeprom: add more safeties to EEPROM Netlink fallback
       [not found] <2026071903-CVE-2026-63985-56d0@gregkh>
@ 2026-07-30 12:45 ` Siddh Raman Pant
  2026-07-30 12:49   ` gregkh
  0 siblings, 1 reply; 2+ messages in thread
From: Siddh Raman Pant @ 2026-07-30 12:45 UTC (permalink / raw)
  To: gregkh@linuxfoundation.org
  Cc: cve@kernel.org, linux-kernel@vger.kernel.org, gregkh@kernel.org

[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]

On Sun, 19 Jul 2026 16:57:25 +0200, Greg Kroah-Hartman wrote:
> ethtool: eeprom: add more safeties to EEPROM Netlink fallback
> 
> The Netlink fallback path for reading module EEPROM
> (fallback_set_params()) validates that offset < eeprom_len,
> but does not check that offset + length stays within eeprom_len.
> The ioctl equivalent (ethtool_get_any_eeprom() in ioctl.c) has
> always enforced both bounds:
> 
>   if (eeprom.offset + eeprom.len > total_len)
>       return -EINVAL;
> 
> This could lead to surprises in both drivers and device FW.
> Add the missing offset + length validation to fallback_set_params(),
> mirroring the ioctl.
> 
> Similarly - ethtool core in general, and ethtool_get_any_eeprom()
> in particular tries to zero-init all buffers passed to the drivers
> to avoid any extra work of zeroing things out. eeprom_fallback()
> uses a plain kmalloc(), change it to zalloc.
> 
> The Linux kernel CVE team has assigned CVE-2026-63985 to this issue.

IIUC this is a defensive fix. Does it fix any reported problem for it
to be a CVE?

Thanks,
Siddh

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CVE-2026-63985: ethtool: eeprom: add more safeties to EEPROM Netlink fallback
  2026-07-30 12:45 ` CVE-2026-63985: ethtool: eeprom: add more safeties to EEPROM Netlink fallback Siddh Raman Pant
@ 2026-07-30 12:49   ` gregkh
  0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2026-07-30 12:49 UTC (permalink / raw)
  To: Siddh Raman Pant; +Cc: cve@kernel.org, linux-kernel@vger.kernel.org

On Thu, Jul 30, 2026 at 12:45:14PM +0000, Siddh Raman Pant wrote:
> On Sun, 19 Jul 2026 16:57:25 +0200, Greg Kroah-Hartman wrote:
> > ethtool: eeprom: add more safeties to EEPROM Netlink fallback
> > 
> > The Netlink fallback path for reading module EEPROM
> > (fallback_set_params()) validates that offset < eeprom_len,
> > but does not check that offset + length stays within eeprom_len.
> > The ioctl equivalent (ethtool_get_any_eeprom() in ioctl.c) has
> > always enforced both bounds:
> > 
> >   if (eeprom.offset + eeprom.len > total_len)
> >       return -EINVAL;
> > 
> > This could lead to surprises in both drivers and device FW.
> > Add the missing offset + length validation to fallback_set_params(),
> > mirroring the ioctl.
> > 
> > Similarly - ethtool core in general, and ethtool_get_any_eeprom()
> > in particular tries to zero-init all buffers passed to the drivers
> > to avoid any extra work of zeroing things out. eeprom_fallback()
> > uses a plain kmalloc(), change it to zalloc.
> > 
> > The Linux kernel CVE team has assigned CVE-2026-63985 to this issue.
> 
> IIUC this is a defensive fix. Does it fix any reported problem for it
> to be a CVE?

As-is, it seems to fix a vulnerability.  Do you think that is not the
case, and if so, why?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-30 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2026071903-CVE-2026-63985-56d0@gregkh>
2026-07-30 12:45 ` CVE-2026-63985: ethtool: eeprom: add more safeties to EEPROM Netlink fallback Siddh Raman Pant
2026-07-30 12:49   ` gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox