In the Linux kernel, the following vulnerability has been resolved:
hwrng: cavium - fix NULL but dereferenced coccicheck error
Fix following coccicheck warning: ./drivers/char/hw_random/cavium-rng-vf.c:182:17-20: ERROR: pdev is NULL but dereferenced.
[
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/char/hw_random/cavium-rng-vf.c"
},
"digest": {
"line_hashes": [
"83715658907533177322529628821883880465",
"102919727349186269932450771804643974252",
"106722133535505611146990009175868110280",
"211183296904264436189580245879359406688"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e6205ad58a7ac194abfb33897585b38687d797fa",
"signature_type": "Line",
"id": "CVE-2022-49177-ba529cd6"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "cavium_map_pf_regs",
"file": "drivers/char/hw_random/cavium-rng-vf.c"
},
"digest": {
"function_hash": "122353339232894402548756258067568460360",
"length": 581.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e47b12f9415169eceda6770fcf45802e0c8d2a66",
"signature_type": "Function",
"id": "CVE-2022-49177-ca731e6f"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "cavium_map_pf_regs",
"file": "drivers/char/hw_random/cavium-rng-vf.c"
},
"digest": {
"function_hash": "122353339232894402548756258067568460360",
"length": 581.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e6205ad58a7ac194abfb33897585b38687d797fa",
"signature_type": "Function",
"id": "CVE-2022-49177-ea7d9b66"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/char/hw_random/cavium-rng-vf.c"
},
"digest": {
"line_hashes": [
"83715658907533177322529628821883880465",
"102919727349186269932450771804643974252",
"106722133535505611146990009175868110280",
"211183296904264436189580245879359406688"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e47b12f9415169eceda6770fcf45802e0c8d2a66",
"signature_type": "Line",
"id": "CVE-2022-49177-f0439043"
}
]