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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49184.json"
}[
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49184-072868ea",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e7e1fff76c4c57688dc7d53a3b6212182d5628d0",
"digest": {
"length": 1097.0,
"function_hash": "40307432134661205660623173071538750678"
},
"target": {
"function": "sparx5_fdma_tx_alloc",
"file": "drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49184-3202f3c3",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c346791877e6ce923bb21e34b30c6f99326aa5a8",
"digest": {
"line_hashes": [
"46557833712834380710229260734879234007",
"322705189585670195553370430103466093794",
"61489768159256445362367094920712197969",
"37212960539837578857794156053350607984"
],
"threshold": 0.9
},
"target": {
"file": "drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c"
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49184-6bfd9c2c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c346791877e6ce923bb21e34b30c6f99326aa5a8",
"digest": {
"length": 1097.0,
"function_hash": "40307432134661205660623173071538750678"
},
"target": {
"function": "sparx5_fdma_tx_alloc",
"file": "drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49184-74985740",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0906f3a3df07835e37077d8971aac65347f2ed57",
"digest": {
"length": 1097.0,
"function_hash": "40307432134661205660623173071538750678"
},
"target": {
"function": "sparx5_fdma_tx_alloc",
"file": "drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49184-815a6eb9",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0906f3a3df07835e37077d8971aac65347f2ed57",
"digest": {
"line_hashes": [
"46557833712834380710229260734879234007",
"322705189585670195553370430103466093794",
"61489768159256445362367094920712197969",
"37212960539837578857794156053350607984"
],
"threshold": 0.9
},
"target": {
"file": "drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c"
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49184-8b3f02f9",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e7e1fff76c4c57688dc7d53a3b6212182d5628d0",
"digest": {
"line_hashes": [
"46557833712834380710229260734879234007",
"322705189585670195553370430103466093794",
"61489768159256445362367094920712197969",
"37212960539837578857794156053350607984"
],
"threshold": 0.9
},
"target": {
"file": "drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c"
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49184-9ad7f641",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b375ea083fa649092cd016ac1f89a2d1fd8f8e8b",
"digest": {
"length": 1097.0,
"function_hash": "40307432134661205660623173071538750678"
},
"target": {
"function": "sparx5_fdma_tx_alloc",
"file": "drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49184-d76e7c28",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b375ea083fa649092cd016ac1f89a2d1fd8f8e8b",
"digest": {
"line_hashes": [
"46557833712834380710229260734879234007",
"322705189585670195553370430103466093794",
"61489768159256445362367094920712197969",
"37212960539837578857794156053350607984"
],
"threshold": 0.9
},
"target": {
"file": "drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c"
},
"signature_type": "Line"
}
]