# CVE-2022-49134: mlxsw: spectrum: Guard against invalid local ports

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-02-26T01:55:08.293Z
- Modified: 2026-06-17T05:17:10.870Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 28b1987ef5064dd5c43538ba1168ef7b801f3cad before 4cad27ba2e5a5843a7fab5aa30de2b8e8c3db3a8; from 28b1987ef5064dd5c43538ba1168ef7b801f3cad before bcdfd615f83b4bd04678109bf18022d1476e4bbf; 5.4 (not affected: before 5.4; from 5.17.3 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: before 5.17.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4cad27ba2e5a5843a7fab5aa30de2b8e8c3db3a8> (patch)
- <https://git.kernel.org/stable/c/bcdfd615f83b4bd04678109bf18022d1476e4bbf> (patch)

## Sources

- CVE List: [CVE-2022-49134](https://www.cve.org/CVERecord?id=CVE-2022-49134), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49134](https://nvd.nist.gov/vuln/detail/CVE-2022-49134), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49134 · Whole record: https://cve.day/CVE-2022-49134.json · Rebuilt by cve.day 2026-11-25T22:58:20.208Z
