net: airoha: fix foe_check_time allocation size
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
06.18.407.1.57.2In the Linux kernel, the following vulnerability has been resolved:
net: airoha: fix foe_check_time allocation size
foe_check_time is declared as u16 pointer but was allocated with only ppe_num_entries bytes instead of ppe_num_entries * sizeof(u16).
When airoha_ppe_foe_verify_entry() is called with hash >= ppe_num_entries/2, it writes beyond the allocated buffer, causing heap buffer overflow and potential kernel crash.
From the CVE record · Linux
The Linux kernel allocates too little memory for airoha's foe_check_time array. If airoha_ppe_foe_verify_entry() receives a hash at or above half the number of PPE entries, it writes beyond the allocation and may crash the kernel. The input does not establish whether an attacker can trigger this over a network or locally, or whether authentication or user interaction is required.
Engineers running Linux kernels with the airoha component should check their systems; affected versions are not specified.