Skip to main content
Network Thinking Solutions Logo

CVE-2026-23206

Linux kernel: dpaa2-switch: prevent ZERO_SIZE_PTR dereference when num_ifs is zero

All CVEs
CVE-2026-23206Published 2/14/2026

Linux kernel: dpaa2-switch: prevent ZERO_SIZE_PTR dereference when num_ifs is zero

Vendor advisory
CVSS5.5Medium

Overview

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.

Published
2/14/2026
Last modified
11/5/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.13, < 5.15.200

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.1.163

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.124

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.70

Verify advisory

Source
linux kernel
linux
≥ 6.13, < 6.18.10

Verify advisory

Source
linux kernel
linux
6.19

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 0b1b71370458860579831e77485883fcf2e8fbbe, < 2fcccca88456b592bd668db13aa1d29ed257ca2b

Verify advisory

Source
Linux
Linux
≥ 0b1b71370458860579831e77485883fcf2e8fbbe, < 80165ff16051448d6f840585ebe13f2400415df3

Verify advisory

Source
Linux
Linux
≥ 0b1b71370458860579831e77485883fcf2e8fbbe, < b97415c4362f739e25ec6f71012277086fabdf6f

Verify advisory

Source
Linux
Linux
≥ 0b1b71370458860579831e77485883fcf2e8fbbe, < 4acc40db06ffd0fd92683505342b00c8a7394c60

Verify advisory

Source
Linux
Linux
≥ 0b1b71370458860579831e77485883fcf2e8fbbe, < 155eb99aff2920153bf21217ae29565fff81e6af

Verify advisory

Source
Linux
Linux
≥ 0b1b71370458860579831e77485883fcf2e8fbbe, < ed48a84a72fefb20a82dd90a7caa7807e90c6f66

Verify advisory

Source
Linux
Linux
5.13

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.