linux/drivers/net/ethernet/intel/e1000e
Vitaly Lifshits 90fb7db49c e1000e: fix heap overflow in e1000_set_eeprom
Fix a possible heap overflow in e1000_set_eeprom function by adding
input validation for the requested length of the change in the EEPROM.
In addition, change the variable type from int to size_t for better
code practices and rearrange declarations to RCT.

Cc: stable@vger.kernel.org
Fixes: bc7f75fa97 ("[E1000E]: New pci-express e1000 driver (currently for ICH9 devices only)")
Co-developed-by: Mikael Wessel <post@mikaelkw.online>
Signed-off-by: Mikael Wessel <post@mikaelkw.online>
Signed-off-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2025-09-02 11:09:00 -07:00
..
80003es2lan.c
80003es2lan.h
82571.c
82571.h
Makefile
defines.h e1000e: ignore uninitialized checksum word on tgp 2025-07-21 10:31:09 -07:00
e1000.h net: e1000e: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2025-04-11 11:58:58 -07:00
e1000e_trace.h
ethtool.c e1000e: fix heap overflow in e1000_set_eeprom 2025-09-02 11:09:00 -07:00
hw.h
ich8lan.c e1000e: disregard NVM checksum on tgp when valid checksum bit is not set 2025-07-21 10:31:09 -07:00
ich8lan.h
mac.c
mac.h
manage.c
manage.h
netdev.c time/timecounter: Fix the lie that struct cyclecounter is const 2025-07-01 15:38:25 +02:00
nvm.c e1000e: ignore uninitialized checksum word on tgp 2025-07-21 10:31:09 -07:00
nvm.h
param.c
phy.c
phy.h
ptp.c e1000e: set fixed clock frequency indication for Nahum 11 and Nahum 13 2025-06-17 10:09:24 -07:00
regs.h