Skip to content

Commit 4603b44

Browse files
committed
i40e: fix MMIO write access to an invalid page in i40e_clear_hw
jira VULN-72058 cve CVE-2025-38200 commit-author Kyungwook Boo <[email protected]> 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 <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/T/ Reviewed-by: Przemek Kitszel <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Aleksandr Loktionov <[email protected]> Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]> (cherry picked from commit 015bac5) Signed-off-by: Brett Mastbergen <[email protected]>
1 parent 2d8f899 commit 4603b44

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
@@ -1322,10 +1322,11 @@ i40e_status i40e_pf_reset(struct i40e_hw *hw)
13221322
void i40e_clear_hw(struct i40e_hw *hw)
13231323
{
13241324
u32 num_queues, base_queue;
1325-
u32 num_pf_int;
1326-
u32 num_vf_int;
1325+
s32 num_pf_int;
1326+
s32 num_vf_int;
13271327
u32 num_vfs;
1328-
u32 i, j;
1328+
s32 i;
1329+
u32 j;
13291330
u32 val;
13301331
u32 eol = 0x7ff;
13311332

0 commit comments

Comments
 (0)