CVE-2026-43205: dpaa2-switch: validate num_ifs to prevent out-of-bounds write

Published May 6, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

dpaa2-switch: validate numifs to prevent out-of-bounds write

The driver obtains swattr.numifs from firmware via dpswgetattributes() but never validates it against DPSWMAXIF (64). This value controls iteration in dpaa2switchfdbgetfloodcfg(), which writes port indices into the fixed-size cfg->ifid[DPSWMAXIF] array. When firmware reports numifs >= 64, the loop can write past the array bounds.

Add a bound check for numifs in dpaa2switchinit().

dpaa2switchfdbgetfloodcfg() appends the control interface (port numifs) after all matched ports. When numifs == DPSWMAXIF and all ports match the flood filter, the loop fills all 64 slots and the control interface write overflows by one entry.

The check uses >= because numifs == DPSWMAXIF is also functionally broken.

buildifidbitmap() silently drops any ID >= 64: if (id[i] < DPSWMAXIF) bmap[id[i] / 64] |= ...

Affected Software

8 affected components
Linux dpaa2-switch (Linux kernel)
Linux Linux kernel>=5.13<5.15.202
Linux Linux kernel>=5.16<6.1.165
Linux Linux kernel>=6.2<6.6.128
Linux Linux kernel>=6.7<6.12.75
Linux Linux kernel>=6.13<6.18.16
Linux Linux kernel>=6.19<6.19.6
Linux Linux kernel=7.0-rc1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Add a bound check for num_ifs in dpaa2_switch_init(), rejecting values >= DPSW_MAX_IF before they are used by the driver.

Event History

May 6, 2026
CVE Published
via MITRE·11:28 AM
Data Sourced
via MITRE·11:28 AM
Description
Data Sourced
via NVD·12:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·01:03 PM
DescriptionSeverityAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203