# CVE-2026-23206: dpaa2-switch: prevent ZERO\_SIZE\_PTR dereference when num\_ifs is zero

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-14 · Modified: 2026-11-05
- Aliases: UBUNTU-CVE-2026-23206, DEBIAN-CVE-2026-23206
- Record: https://cvemate.com/vulnerability/CVE-2026-23206 · JSON: https://cvemate.com/vulnerability/CVE-2026-23206/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.137%, percentile 3.302%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 149)

- debian linux (Debian): \< 6.1.164-1 \| \< 6.12.73-1 \| \< 6.18.10-1
- ubuntu linux (Ubuntu): \< 5.15.0-185.195 \| \< 6.8.0-117.117 \| All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1111.118 \| \< 6.8.0-1055.58 \| All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1111.118~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1057.60~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1111.118+fips1 \| \< 6.8.0-1055.58+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1116.125 \| \< 6.8.0-1056.62
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 26)

- <https://git.kernel.org/stable/c/2fcccca88456b592bd668db13aa1d29ed257ca2b>
- <https://git.kernel.org/stable/c/80165ff16051448d6f840585ebe13f2400415df3>
- <https://git.kernel.org/stable/c/b97415c4362f739e25ec6f71012277086fabdf6f>
- <https://git.kernel.org/stable/c/4acc40db06ffd0fd92683505342b00c8a7394c60>
- <https://git.kernel.org/stable/c/155eb99aff2920153bf21217ae29565fff81e6af>
- <https://git.kernel.org/stable/c/ed48a84a72fefb20a82dd90a7caa7807e90c6f66>
- <https://ubuntu.com/security/CVE-2026-23206>
- <https://www.cve.org/CVERecord?id=CVE-2026-23206>
- <https://git.kernel.org/linus/ed48a84a72fefb20a82dd90a7caa7807e90c6f66>
- <https://ubuntu.com/security/notices/USN-8278-1>
- <https://ubuntu.com/security/notices/USN-8289-1>
- <https://ubuntu.com/security/notices/USN-8296-1>
- <https://ubuntu.com/security/notices/USN-8296-2>
- <https://ubuntu.com/security/notices/USN-8289-2>
- <https://ubuntu.com/security/notices/USN-8278-2>
- <https://ubuntu.com/security/notices/USN-8393-1>
- <https://ubuntu.com/security/notices/USN-8440-1>
- <https://ubuntu.com/security/notices/USN-8493-1>
- <https://ubuntu.com/security/notices/USN-8499-1>
- <https://ubuntu.com/security/notices/USN-8493-2>

---

Data as of 2026-12-05T04:45:04.983Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
