# CVE-2022-49184: net: sparx5: switchdev: fix possible NULL pointer dereference

- 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.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-02-26T01:55:34.554Z
- Modified: 2026-06-17T05:17:18.583Z
- 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:

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 5.15 before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.2

## 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/b375ea083fa649092cd016ac1f89a2d1fd8f8e8b> (patch)
- <https://git.kernel.org/stable/c/c346791877e6ce923bb21e34b30c6f99326aa5a8> (patch)
- <https://git.kernel.org/stable/c/e7e1fff76c4c57688dc7d53a3b6212182d5628d0> (patch)
- <https://git.kernel.org/stable/c/0906f3a3df07835e37077d8971aac65347f2ed57> (patch)

## Sources

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

---

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