In the Linux kernel, the following vulnerability has been resolved:
net: hns3: fix kernel crash when devlink reload during pf initialization
The devlink reload process will access the hardware resources, but the register operation is done before the hardware is initialized. So, processing the devlink reload during initialization may lead to kernel crash. This patch fixes this by taking devl_lock during initialization.
[
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"8566904070726142885510317940438512732",
"285401060677586564249316420941424718631",
"74009836116761737824168815557735114341",
"270190916680233446063829995528568931381",
"32475526011786655817052715364836953530",
"286013006238561685539167163683544952368",
"224355064019458526301599145208974691653",
"81843233794792206111737173928875338475",
"310994204654491832249599624253585949177",
"324244936248201508096930639542823937900"
]
},
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@93305b77ffcb042f1538ecc383505e87d95aa05a",
"id": "CVE-2024-36021-447ad6c9",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"8566904070726142885510317940438512732",
"285401060677586564249316420941424718631",
"74009836116761737824168815557735114341",
"270190916680233446063829995528568931381",
"32475526011786655817052715364836953530",
"286013006238561685539167163683544952368",
"224355064019458526301599145208974691653",
"81843233794792206111737173928875338475",
"310994204654491832249599624253585949177",
"324244936248201508096930639542823937900"
]
},
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@50b69054f455dcdb34bd6b22764c7579b270eef3",
"id": "CVE-2024-36021-48aff86c",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "40805466111307816990225754966324689975",
"length": 4593.0
},
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c",
"function": "hclge_init_ae_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7ca0f73e5e2da3c129935b97f3a0877cce8ebdf5",
"id": "CVE-2024-36021-694b9b76",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "261047998409028913408052018504307490020",
"length": 4499.0
},
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c",
"function": "hclge_init_ae_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@50b69054f455dcdb34bd6b22764c7579b270eef3",
"id": "CVE-2024-36021-6a1164ba",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"8566904070726142885510317940438512732",
"285401060677586564249316420941424718631",
"74009836116761737824168815557735114341",
"270190916680233446063829995528568931381",
"32475526011786655817052715364836953530",
"286013006238561685539167163683544952368",
"224355064019458526301599145208974691653",
"81843233794792206111737173928875338475",
"310994204654491832249599624253585949177",
"324244936248201508096930639542823937900"
]
},
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b550dae55901c2cc9075d6a7155a71b4f516e86",
"id": "CVE-2024-36021-a197f048",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "40805466111307816990225754966324689975",
"length": 4593.0
},
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c",
"function": "hclge_init_ae_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b550dae55901c2cc9075d6a7155a71b4f516e86",
"id": "CVE-2024-36021-bfc0ecd9",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "40805466111307816990225754966324689975",
"length": 4593.0
},
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c",
"function": "hclge_init_ae_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@93305b77ffcb042f1538ecc383505e87d95aa05a",
"id": "CVE-2024-36021-cfb7cddd",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"8566904070726142885510317940438512732",
"285401060677586564249316420941424718631",
"74009836116761737824168815557735114341",
"270190916680233446063829995528568931381",
"32475526011786655817052715364836953530",
"286013006238561685539167163683544952368",
"224355064019458526301599145208974691653",
"81843233794792206111737173928875338475",
"310994204654491832249599624253585949177",
"324244936248201508096930639542823937900"
]
},
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7ca0f73e5e2da3c129935b97f3a0877cce8ebdf5",
"id": "CVE-2024-36021-e6d09bb2",
"deprecated": false,
"signature_version": "v1"
}
]