{"id":"CVE-2022-49134","published":"2025-02-26T01:55:08Z","modified":"2026-05-11T18:53:49Z","title":"mlxsw: spectrum: Guard against invalid local ports","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: spectrum: Guard against invalid local ports\n\nWhen processing events generated by the device's firmware, the driver\nprotects itself from events reported for non-existent local ports, but\nnot for the CPU port (local port 0), which exists, but does not have all\nthe fields as any local port.\n\nThis can result in a NULL pointer dereference when trying access\n'struct mlxsw_sp_port' fields which are not initialized for CPU port.\n\nCommit 63b08b1f6834 (\"mlxsw: spectrum: Protect driver from buggy firmware\")\nalready handled such issue by bailing early when processing a PUDE event\nreported for the CPU port.\n\nGeneralize the approach by moving the check to a common function and\nmaking use of it in all relevant places.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00234,"percentile":0.14535,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/4cad27ba2e5a5843a7fab5aa30de2b8e8c3db3a8","tags":[]},{"url":"https://git.kernel.org/stable/c/bcdfd615f83b4bd04678109bf18022d1476e4bbf","tags":[]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":2.91},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 28b1987ef5064dd5c43538ba1168ef7b801f3cad, < 4cad27ba2e5a5843a7fab5aa30de2b8e8c3db3a8",">= 28b1987ef5064dd5c43538ba1168ef7b801f3cad, < bcdfd615f83b4bd04678109bf18022d1476e4bbf"]},{"vendor":"Linux","product":"Linux","versions":["5.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:48:13.504357Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-55089","exploited":false,"provenance":"source"}}