Linux
dpaa2-switch: add bounds check for if_id in IRQ handler
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 24ab724f8a4661b2dc8e696b41df93bdc108f7a1, < 77611cab5bdfff7a070ae574bbfba20a1de99d1b
- >= 24ab724f8a4661b2dc8e696b41df93bdc108f7a1, < 34b56c16efd61325d80bf1d780d0e176be662f59
- >= 24ab724f8a4661b2dc8e696b41df93bdc108f7a1, < f89e33c9c37f0001b730e23b3b05ab7b1ecface2
- >= 24ab724f8a4661b2dc8e696b41df93bdc108f7a1, < 2447edc367800ba914acf7ddd5d250416b45fb31
- >= 24ab724f8a4661b2dc8e696b41df93bdc108f7a1, < 1b381a638e1851d8cfdfe08ed9cdbec5295b18c9
- >= 24ab724f8a4661b2dc8e696b41df93bdc108f7a1, < 31a7a0bbeb006bac2d9c81a2874825025214b6d8
Fixed in 77611cab5bdfff7a070ae574bbfba20a1de99d1b, 34b56c16efd61325d80bf1d780d0e176be662f59, f89e33c9c37f0001b730e23b3b05ab7b1ecface2, 2447edc367800ba914acf7ddd5d250416b45fb31, 1b381a638e1851d8cfdfe08ed9cdbec5295b18c9, 31a7a0bbeb006bac2d9c81a2874825025214b6d8
- 5.15
Fixed in 0, 5.15.200, 6.1.163, 6.6.124, 6.12.70, 6.18.10, 6.19
Mitigation
Upgrade Linux to 77611cab5bdfff7a070ae574bbfba20a1de99d1b or 34b56c16efd61325d80bf1d780d0e176be662f59 or f89e33c9c37f0001b730e23b3b05ab7b1ecface2 or 2447edc367800ba914acf7ddd5d250416b45fb31 or 1b381a638e1851d8cfdfe08ed9cdbec5295b18c9 or 31a7a0bbeb006bac2d9c81a2874825025214b6d8 or later.
Upgrade Linux to 0 or 5.15.200 or 6.1.163 or 6.6.124 or 6.12.70 or 6.18.10 or 6.19 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.