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 intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
80003es2lan.h
82571.c intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
82571.h
Makefile net: intel: Use *-y instead of *-objs in Makefile 2024-06-10 19:52:44 -07:00
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 e1000e: change I219 (19) devices to ADP 2024-10-08 14:39:22 -07:00
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 e1000e: change k1 configuration on MTP and later platforms 2025-04-02 08:51:41 -07:00
mac.c e1000e: Fix real-time violations on link up 2025-02-10 10:43:48 -08:00
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 e1000e: change usleep_range to udelay in PHY mdic access 2024-04-30 18:40:59 -07:00
phy.h e1000e: Workaround for sporadic MDI error on Meteor Lake systems 2024-03-27 11:44:20 -07:00
ptp.c e1000e: set fixed clock frequency indication for Nahum 11 and Nahum 13 2025-06-17 10:09:24 -07:00
regs.h