CVE-2022-49184
JSON

5.5medium

net: sparx5: switchdev: fix possible NULL pointer dereference

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.26% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 10615907e9b51c9ae92f3a6ecabd01c482f20f32 before b375ea083fa649092cd016ac1f89a2d1fd8f8e8b, from 10615907e9b51c9ae92f3a6ecabd01c482f20f32 before c346791877e6ce923bb21e34b30c6f99326aa5a8, from 10615907e9b51c9ae92f3a6ecabd01c482f20f32 before e7e1fff76c4c57688dc7d53a3b6212182d5628d0, from 10615907e9b51c9ae92f3a6ecabd01c482f20f32 before 0906f3a3df07835e37077d8971aac65347f2ed57, 5.15
Not affected: before 5.15, from 5.15.33 up to 5.15.*, from 5.16.19 up to 5.16.*, from 5.17.2 up to 5.17.*, from 5.18 up to *
CVE List
linux linux_kernelfrom 5.15 before 5.15.33, from 5.16 before 5.16.19, from 5.17 before 5.17.2NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: sparx5: switchdev: se corrige la posible desreferencia de puntero NULL. Como es posible que la asignación falle, devm_kzalloc() puede devolver un puntero NULL. Por lo tanto, es mejor comprobar la 'db' para evitar la desreferencia de puntero NULL.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49184 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-49184 changed 2026-06-17Public domain