Skip to content

Commit 0732e6e

Browse files
committed
i40e: fix MMIO write access to an invalid page in i40e_clear_hw
jira VULN-72063 cve CVE-2025-38200 commit-author Kyungwook Boo <bookyungwook@gmail.com> commit 015bac5 When the device sends a specific input, an integer underflow can occur, leading to MMIO write access to an invalid page. Prevent the integer underflow by changing the type of related variables. Signed-off-by: Kyungwook Boo <bookyungwook@gmail.com> Link: https://lore.kernel.org/lkml/ffc91764-1142-4ba2-91b6-8c773f6f7095@gmail.com/T/ Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> (cherry picked from commit 015bac5) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 4801881 commit 0732e6e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/net/ethernet/intel/i40e/i40e_common.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,10 +1209,11 @@ i40e_status i40e_pf_reset(struct i40e_hw *hw)
12091209
void i40e_clear_hw(struct i40e_hw *hw)
12101210
{
12111211
u32 num_queues, base_queue;
1212-
u32 num_pf_int;
1213-
u32 num_vf_int;
1212+
s32 num_pf_int;
1213+
s32 num_vf_int;
12141214
u32 num_vfs;
1215-
u32 i, j;
1215+
s32 i;
1216+
u32 j;
12161217
u32 val;
12171218
u32 eol = 0x7ff;
12181219

0 commit comments

Comments
 (0)