CVE-2026-23206

dpaa2-switch: prevent ZERO_SIZE_PTR dereference when num_ifs is zero

No CVSS score yet EPSS 0.14%

Published 14 Feb 2026 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2026-23206

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-23206 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: prevent ZERO_SIZE_PTR dereference when num_ifs is zero

The driver allocates arrays for ports, FDBs, and filter blocks using kcalloc() with ethsw->sw_attr.num_ifs as the element count. When the device reports zero interfaces (either due to hardware configuration or firmware issues), kcalloc(0, ...) returns ZERO_SIZE_PTR (0x10) instead of NULL.

Later in dpaa2_switch_probe(), the NAPI initialization unconditionally accesses ethsw->ports[0]->netdev, which attempts to dereference ZERO_SIZE_PTR (address 0x10), resulting in a kernel panic.

Add a check to ensure num_ifs is greater than zero after retrieving device attributes. This prevents the zero-sized allocations and subsequent invalid pointer dereference.

Exploitation

EPSS 0.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.33% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 0b1b71370458860579831e77485883fcf2e8fbbe, before 2fcccca88456b592bd668db13aa1d29ed257ca2b
affected from 0b1b71370458860579831e77485883fcf2e8fbbe, before 80165ff16051448d6f840585ebe13f2400415df3
affected from 0b1b71370458860579831e77485883fcf2e8fbbe, before b97415c4362f739e25ec6f71012277086fabdf6f
affected from 0b1b71370458860579831e77485883fcf2e8fbbe, before 4acc40db06ffd0fd92683505342b00c8a7394c60
affected from 0b1b71370458860579831e77485883fcf2e8fbbe, before 155eb99aff2920153bf21217ae29565fff81e6af
affected from 0b1b71370458860579831e77485883fcf2e8fbbe, before ed48a84a72fefb20a82dd90a7caa7807e90c6f66
Other versions: unaffected
Linux
affected 5.13
unaffected before 5.13
unaffected from 5.15.200 up to and including 5.15.*
unaffected from 6.1.163 up to and including 6.1.*
unaffected from 6.6.124 up to and including 6.6.*
unaffected from 6.12.70 up to and including 6.12.*
unaffected from 6.18.10 up to and including 6.18.*
unaffected 6.19 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-23206 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-23206

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-23206
trivy image --scanners vuln IMAGE | grep CVE-2026-23206

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-23206 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.