What’s Vulnerable › Vulnerabilities
CVE-2022-49134: mlxsw: spectrum: Guard against invalid local ports
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum: Guard against invalid local ports When processing events generated by the device's firmware, the driver protects itself from events reported for non-existent local ports, but not for the CPU port (local port 0), which exists, but does not have all the fields as any local port. This can result in a NULL pointer dereference when trying access 'struct mlxsw_sp_port' fields which are not initialized for CPU port. Commit 63b08b1f6834 ("mlxsw: spectrum: Protect driver from buggy firmware") already handled such issue by bailing early when processing a PUDE event reported for the CPU port. Generalize the approach by moving the check to a common function and making use of it in all relevant places.
Affected products
- Linux kernel: before 5.17.3 — fixed in 5.17.3
How to fix
Upgrade to a fixed version: Linux kernel 5.17.3. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/4cad27ba2e5a5843a7fab5aa30de2b8e8c3db3a8
- https://git.kernel.org/stable/c/bcdfd615f83b4bd04678109bf18022d1476e4bbf
Get alerted when CVE-2022-49134 or the next vulnerability affects your stack