CVE-2026-43205

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

No CVSS score yet EPSS 0.18%

Published 6 May 2026 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2026-43205

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-43205 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

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

The driver obtains sw_attr.num_ifs from firmware via dpsw_get_attributes() but never validates it against DPSW_MAX_IF (64). This value controls iteration in dpaa2_switch_fdb_get_flood_cfg(), which writes port indices into the fixed-size cfg->if_id[DPSW_MAX_IF] array. When firmware reports num_ifs >= 64, the loop can write past the array bounds.

Add a bound check for num_ifs in dpaa2_switch_init().

dpaa2_switch_fdb_get_flood_cfg() appends the control interface (port num_ifs) after all matched ports. When num_ifs == DPSW_MAX_IF 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 num_ifs == DPSW_MAX_IF is also functionally broken.

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

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.23% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 539dda3c5d190c5088b5e57944b1b482fcb464de, before a26dda3bae469c8e4e1b1993ad33dafa32d0fc28
affected from 539dda3c5d190c5088b5e57944b1b482fcb464de, before a3034a8d56174dd6464c46823438f25797910a8d
affected from 539dda3c5d190c5088b5e57944b1b482fcb464de, before b690635d4719214892855b79ce018d4b1672ac96
affected from 539dda3c5d190c5088b5e57944b1b482fcb464de, before 8b841fd529db9faf8bc678d429d4bf4e98b10900
affected from 539dda3c5d190c5088b5e57944b1b482fcb464de, before 89764cf44544e943230f5e03b8c40a90da26537c
affected from 539dda3c5d190c5088b5e57944b1b482fcb464de, before c18493f750208eb4ff1198fc5a02786b8b2d70a6
affected from 539dda3c5d190c5088b5e57944b1b482fcb464de, before 8a5752c6dcc085a3bfc78589925182e4e98468c5
Other versions: unaffected
Linux
affected 5.13
unaffected before 5.13
unaffected from 5.15.202 up to and including 5.15.*
unaffected from 6.1.165 up to and including 6.1.*
unaffected from 6.6.128 up to and including 6.6.*
unaffected from 6.12.75 up to and including 6.12.*
unaffected from 6.18.16 up to and including 6.18.*
unaffected from 6.19.6 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-43205 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-43205

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-43205
trivy image --scanners vuln IMAGE | grep CVE-2026-43205

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-43205 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.