CVE-2022-49134
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
26/02/2025
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
mlxsw: spectrum: Guard against invalid local ports<br />
<br />
When processing events generated by the device&#39;s firmware, the driver<br />
protects itself from events reported for non-existent local ports, but<br />
not for the CPU port (local port 0), which exists, but does not have all<br />
the fields as any local port.<br />
<br />
This can result in a NULL pointer dereference when trying access<br />
&#39;struct mlxsw_sp_port&#39; fields which are not initialized for CPU port.<br />
<br />
Commit 63b08b1f6834 ("mlxsw: spectrum: Protect driver from buggy firmware")<br />
already handled such issue by bailing early when processing a PUDE event<br />
reported for the CPU port.<br />
<br />
Generalize the approach by moving the check to a common function and<br />
making use of it in all relevant places.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.17.3 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



