CVE-2022-49184Published Feb 26, 2025 · Feb 26Updated Oct 28
net: sparx5: switchdev: fix possible NULL pointer dereference
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: sparx5: switchdev: fix possible NULL pointer dereference
As the possible failure of the allocation, devm_kzalloc() may return NULL pointer. Therefore, it should be better to check the 'db' in order to prevent the dereference of NULL pointer.
From the CVE record · Linux
The Linux kernel's sparx5 switchdev code may dereference a NULL pointer if a devm_kzalloc() allocation fails. The input does not describe an attacker path or specify whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with sparx5 switchdev should check their deployments; affected versions are not specified.