7.0high
dpaa2-switch: add bounds check for if_id in IRQ handler
- Severity
- 7.0high CVSS:3.1 by Linux
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: dpaa2-switch: add bounds check for if_id in IRQ handler The IRQ handler extracts if_id from the upper 16 bits of the hardware status register and uses it to index into ethsw->ports[] without validation. Since if_id can be any 16-bit value (0-65535) but the ports array is only allocated with sw_attr.num_ifs elements, this can lead to an out-of-bounds read potentially. Add a bounds check before accessing the array, consistent with the existing validation in dpaa2_switch_rx().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 24ab724f8a4661b2dc8e696b41df93bdc108f7a1 before 77611cab5bdfff7a070ae574bbfba20a1de99d1b, from 24ab724f8a4661b2dc8e696b41df93bdc108f7a1 before 34b56c16efd61325d80bf1d780d0e176be662f59, from 24ab724f8a4661b2dc8e696b41df93bdc108f7a1 before f89e33c9c37f0001b730e23b3b05ab7b1ecface2, from 24ab724f8a4661b2dc8e696b41df93bdc108f7a1 before 2447edc367800ba914acf7ddd5d250416b45fb31, from 24ab724f8a4661b2dc8e696b41df93bdc108f7a1 before 1b381a638e1851d8cfdfe08ed9cdbec5295b18c9, from 24ab724f8a4661b2dc8e696b41df93bdc108f7a1 before 31a7a0bbeb006bac2d9c81a2874825025214b6d8, 5.15 Not affected: before 5.15, from 5.15.200 up to 5.15.*, from 6.1.163 up to 6.1.*, from 6.6.124 up to 6.6.*, from 6.12.70 up to 6.12.*, from 6.18.10 up to 6.18.* | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: dpaa2-switch: add bounds check for if_id in IRQ handler The IRQ handler extracts if_id from the upper 16 bits of the hardware status register and uses it to index into ethsw->ports[] without validation. Since if_id can be any 16-bit value (0-65535) but the ports array is only allocated with sw_attr.num_ifs elements, this can lead to an out-of-bounds read potentially. Add a bounds check before accessing the array, consistent with the existing validation in dpaa2_switch_rx().
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: dpaa2-switch: añadir comprobación de límites para if_id en el manejador IRQ El manejador IRQ extrae if_id de los 16 bits superiores del registro de estado del hardware y lo utiliza para indexar en ethsw->ports[] sin validación. Dado que if_id puede ser cualquier valor de 16 bits (0-65535) pero el array de puertos solo se asigna con elementos sw_attr.num_ifs, esto puede llevar a una posible lectura fuera de límites. Añadir una comprobación de límites antes de acceder al array, consistente con la validación existente en dpaa2_switch_rx().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23180 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-23180 changed 2026-10-19 | Public domain |