{"id":"CVE-2026-43205","aliases":["CVE-2026-43205"],"related":[],"kind":"vulnerability","state":"published","title":"dpaa2-switch: validate num_ifs to prevent out-of-bounds write","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndpaa2-switch: validate num_ifs to prevent out-of-bounds write\n\nThe driver obtains sw_attr.num_ifs from firmware via dpsw_get_attributes()\nbut never validates it against DPSW_MAX_IF (64). This value controls\niteration in dpaa2_switch_fdb_get_flood_cfg(), which writes port indices\ninto the fixed-size cfg->if_id[DPSW_MAX_IF] array. When firmware reports\nnum_ifs >= 64, the loop can write past the array bounds.\n\nAdd a bound check for num_ifs in dpaa2_switch_init().\n\ndpaa2_switch_fdb_get_flood_cfg() appends the control interface (port\nnum_ifs) after all matched ports. When num_ifs == DPSW_MAX_IF and all\nports match the flood filter, the loop fills all 64 slots and the control\ninterface write overflows by one entry.\n\nThe check uses >= because num_ifs == DPSW_MAX_IF is also functionally\nbroken.\n\nbuild_if_id_bitmap() silently drops any ID >= 64:\n      if (id[i] < DPSW_MAX_IF)\n          bmap[id[i] / 64] |= ...","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndpaa2-switch: validate num_ifs to prevent out-of-bounds write\n\nThe driver obtains sw_attr.num_ifs from firmware via dpsw_get_attributes()\nbut never validates it against DPSW_MAX_IF (64). This value controls\niteration in dpaa2_switch_fdb_get_flood_cfg(), which writes port indices\ninto the fixed-size cfg->if_id[DPSW_MAX_IF] array. When firmware reports\nnum_ifs >= 64, the loop can write past the array bounds.\n\nAdd a bound check for num_ifs in dpaa2_switch_init().\n\ndpaa2_switch_fdb_get_flood_cfg() appends the control interface (port\nnum_ifs) after all matched ports. When num_ifs == DPSW_MAX_IF and all\nports match the flood filter, the loop fills all 64 slots and the control\ninterface write overflows by one entry.\n\nThe check uses >= because num_ifs == DPSW_MAX_IF is also functionally\nbroken.\n\nbuild_if_id_bitmap() silently drops any ID >= 64:\n      if (id[i] < DPSW_MAX_IF)\n          bmap[id[i] / 64] |= ...","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: dpaa2-switch: validar num_ifs para prevenir una escritura fuera de límites El controlador obtiene sw_attr.num_ifs del firmware a través de dpsw_get_attributes() pero nunca lo valida contra DPSW_MAX_IF (64). Este valor controla la iteración en dpaa2_switch_fdb_get_flood_cfg(), que escribe índices de puerto en el array de tamaño fijo cfg  ->  if_id[DPSW_MAX_IF]. Cuando el firmware informa num_ifs mayor o igual que 64, el bucle puede escribir más allá de los límites del array. Añadir una comprobación de límites para num_ifs en dpaa2_switch_init(). dpaa2_switch_fdb_get_flood_cfg() añade la interfaz de control (puerto num_ifs) después de todos los puertos coincidentes. Cuando num_ifs == DPSW_MAX_IF y todos los puertos coinciden con el filtro de inundación, el bucle llena las 64 ranuras y la escritura de la interfaz de control desborda en una entrada. La comprobación usa >= porque num_ifs == DPSW_MAX_IF también está funcionalmente roto. build_if_id_bitmap() descarta silenciosamente cualquier ID mayor o igual que 64: si (id[i] < DPSW_MAX_IF) bmap[id[i] / 64] |= ...","source":"nvd"}],"published":"2026-05-06T11:28:10.270Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"539dda3c5d190c5088b5e57944b1b482fcb464de","fixed":"a26dda3bae469c8e4e1b1993ad33dafa32d0fc28","status":"affected"},{"type":"git","introduced":"539dda3c5d190c5088b5e57944b1b482fcb464de","fixed":"a3034a8d56174dd6464c46823438f25797910a8d","status":"affected"},{"type":"git","introduced":"539dda3c5d190c5088b5e57944b1b482fcb464de","fixed":"b690635d4719214892855b79ce018d4b1672ac96","status":"affected"},{"type":"git","introduced":"539dda3c5d190c5088b5e57944b1b482fcb464de","fixed":"8b841fd529db9faf8bc678d429d4bf4e98b10900","status":"affected"},{"type":"git","introduced":"539dda3c5d190c5088b5e57944b1b482fcb464de","fixed":"89764cf44544e943230f5e03b8c40a90da26537c","status":"affected"},{"type":"git","introduced":"539dda3c5d190c5088b5e57944b1b482fcb464de","fixed":"c18493f750208eb4ff1198fc5a02786b8b2d70a6","status":"affected"},{"type":"git","introduced":"539dda3c5d190c5088b5e57944b1b482fcb464de","fixed":"8a5752c6dcc085a3bfc78589925182e4e98468c5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","status":"unaffected"},{"type":"semver","introduced":"5.15.202","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.165","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.128","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.13","fixed":"5.15.202"},{"status":"affected","introduced":"5.16","fixed":"6.1.165"},{"status":"affected","introduced":"6.2","fixed":"6.6.128"},{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a26dda3bae469c8e4e1b1993ad33dafa32d0fc28","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a3034a8d56174dd6464c46823438f25797910a8d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b690635d4719214892855b79ce018d4b1672ac96","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8b841fd529db9faf8bc678d429d4bf4e98b10900","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89764cf44544e943230f5e03b8c40a90da26537c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c18493f750208eb4ff1198fc5a02786b8b2d70a6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a5752c6dcc085a3bfc78589925182e4e98468c5","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43205","url":"https://www.cve.org/CVERecord?id=CVE-2026-43205","licence":"CVE Terms of Use","modified":"2026-05-11T22:20:00.994Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43205","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43205","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.728Z","epss":{"score":0.00139,"percentile":0.03454,"date":"2026-12-01T12:00:22.000Z"}}