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.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2025022615-CVE-2022-49184-4de2@gregkh/T