In the Linux kernel, the following vulnerability has been resolved:
net: hns3: fix oops when unload drivers paralleling
When unload hclge driver, it tries to disable sriov first for each aedev node from hnae3aedevlist. If user unloads hns3 driver at the time, because it removes all the ae_dev nodes, and it may cause oops.
But we can't simply use hnae3commonlock for this. Because in the process flow of pcidisablesriov(), it will trigger the remove flow of VF, which will also take hnae3commonlock.
To fixes it, introduce a new mutex to protect the unload process.
[
{
"id": "CVE-2025-21802-0421255c",
"signature_version": "v1",
"digest": {
"length": 88.0,
"function_hash": "198992935265891507105127140886954106003"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92e5995773774a3e70257e9c95ea03518268bea5",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c",
"function": "hclgevf_exit"
}
},
{
"id": "CVE-2025-21802-0ac229ca",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"274314600036284259146971624758126222227",
"276338480282329603252406895154660378914",
"190654520074306640195588547441819401440"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cafe9a27e22736d4a01b3933e36225f9857c7988",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hnae3.c"
}
},
{
"id": "CVE-2025-21802-111e986d",
"signature_version": "v1",
"digest": {
"length": 103.0,
"function_hash": "319684726539580820088814479794574459731"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92e5995773774a3e70257e9c95ea03518268bea5",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_enet.c",
"function": "hns3_exit_module"
}
},
{
"id": "CVE-2025-21802-24aef6c0",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"302723588754881878634605298093602894895",
"302747572570001353287665046467049638357"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c640dd3d900cc8988a39c007591f1deee776df4",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hnae3.h"
}
},
{
"id": "CVE-2025-21802-25723b53",
"signature_version": "v1",
"digest": {
"length": 109.0,
"function_hash": "115996968577047209520615263420850770185"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c640dd3d900cc8988a39c007591f1deee776df4",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c",
"function": "hclge_exit"
}
},
{
"id": "CVE-2025-21802-43349205",
"signature_version": "v1",
"digest": {
"length": 88.0,
"function_hash": "198992935265891507105127140886954106003"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@82736bb83fb0221319c85c2e9917d0189cd84e1e",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c",
"function": "hclgevf_exit"
}
},
{
"id": "CVE-2025-21802-472fd4c6",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"175953177852334115568540565944045056307",
"294268269797893919783685700845873569176",
"35091587676230576146946580775449136162",
"249684501685497792968625668963642087204",
"157072548166964761395915608703401278811",
"210760524738864802253146105255715430600",
"190418377378798533041929370960790769762"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cafe9a27e22736d4a01b3933e36225f9857c7988",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c"
}
},
{
"id": "CVE-2025-21802-4777ea77",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"302723588754881878634605298093602894895",
"302747572570001353287665046467049638357"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92e5995773774a3e70257e9c95ea03518268bea5",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hnae3.h"
}
},
{
"id": "CVE-2025-21802-47b56bee",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"274314600036284259146971624758126222227",
"276338480282329603252406895154660378914",
"190654520074306640195588547441819401440"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@82736bb83fb0221319c85c2e9917d0189cd84e1e",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hnae3.c"
}
},
{
"id": "CVE-2025-21802-48f4e571",
"signature_version": "v1",
"digest": {
"length": 88.0,
"function_hash": "198992935265891507105127140886954106003"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c640dd3d900cc8988a39c007591f1deee776df4",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c",
"function": "hclgevf_exit"
}
},
{
"id": "CVE-2025-21802-49ef29a5",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"274314600036284259146971624758126222227",
"276338480282329603252406895154660378914",
"190654520074306640195588547441819401440"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c640dd3d900cc8988a39c007591f1deee776df4",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hnae3.c"
}
},
{
"id": "CVE-2025-21802-4b612ce6",
"signature_version": "v1",
"digest": {
"length": 109.0,
"function_hash": "115996968577047209520615263420850770185"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@82736bb83fb0221319c85c2e9917d0189cd84e1e",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c",
"function": "hclge_exit"
}
},
{
"id": "CVE-2025-21802-580393d5",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"273495235743419164274381710966838675709",
"66926876629364593288430258798477040819",
"132956138754395330324968275703130458353",
"321945963467152057144639298698545399659",
"259661218833960351755945256688765151987",
"305699831345171323699253150620178809737"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92e5995773774a3e70257e9c95ea03518268bea5",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c"
}
},
{
"id": "CVE-2025-21802-5e740b64",
"signature_version": "v1",
"digest": {
"length": 103.0,
"function_hash": "319684726539580820088814479794574459731"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c640dd3d900cc8988a39c007591f1deee776df4",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_enet.c",
"function": "hns3_exit_module"
}
},
{
"id": "CVE-2025-21802-67d7ad91",
"signature_version": "v1",
"digest": {
"length": 103.0,
"function_hash": "319684726539580820088814479794574459731"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@82736bb83fb0221319c85c2e9917d0189cd84e1e",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_enet.c",
"function": "hns3_exit_module"
}
},
{
"id": "CVE-2025-21802-7277ab6b",
"signature_version": "v1",
"digest": {
"length": 109.0,
"function_hash": "115996968577047209520615263420850770185"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cafe9a27e22736d4a01b3933e36225f9857c7988",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c",
"function": "hclge_exit"
}
},
{
"id": "CVE-2025-21802-7ebf4425",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"121508320079035731025336053059044571990",
"11478566928429554251195097025562844926",
"269993216466544222329133830712510405794",
"15725918708506017838106448671380769151",
"226773858184534332101900758931565466437",
"35191603690977568704183191754237511568",
"122133438839319988701310296426751645658"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cafe9a27e22736d4a01b3933e36225f9857c7988",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_enet.c"
}
},
{
"id": "CVE-2025-21802-81769497",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"6511337316917925969339091065719298138",
"96859923864125929232084020632671074491",
"213771449151302165217928349757922775711",
"249684501685497792968625668963642087204",
"157072548166964761395915608703401278811",
"210760524738864802253146105255715430600",
"190418377378798533041929370960790769762"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c640dd3d900cc8988a39c007591f1deee776df4",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c"
}
},
{
"id": "CVE-2025-21802-90dc1265",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"5253715443092300518393761723287150444",
"85272108469084218180129038784390268541",
"313988284535510871006382245577311815044",
"321945963467152057144639298698545399659",
"259661218833960351755945256688765151987",
"305699831345171323699253150620178809737"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c640dd3d900cc8988a39c007591f1deee776df4",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c"
}
},
{
"id": "CVE-2025-21802-9965b4ff",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"302723588754881878634605298093602894895",
"302747572570001353287665046467049638357"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cafe9a27e22736d4a01b3933e36225f9857c7988",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hnae3.h"
}
},
{
"id": "CVE-2025-21802-a5053593",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"175953177852334115568540565944045056307",
"294268269797893919783685700845873569176",
"35091587676230576146946580775449136162",
"249684501685497792968625668963642087204",
"157072548166964761395915608703401278811",
"210760524738864802253146105255715430600",
"190418377378798533041929370960790769762"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92e5995773774a3e70257e9c95ea03518268bea5",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c"
}
},
{
"id": "CVE-2025-21802-a505d668",
"signature_version": "v1",
"digest": {
"length": 88.0,
"function_hash": "198992935265891507105127140886954106003"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cafe9a27e22736d4a01b3933e36225f9857c7988",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c",
"function": "hclgevf_exit"
}
},
{
"id": "CVE-2025-21802-a7942033",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"273495235743419164274381710966838675709",
"66926876629364593288430258798477040819",
"132956138754395330324968275703130458353",
"321945963467152057144639298698545399659",
"259661218833960351755945256688765151987",
"305699831345171323699253150620178809737"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@82736bb83fb0221319c85c2e9917d0189cd84e1e",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c"
}
},
{
"id": "CVE-2025-21802-b3eb715f",
"signature_version": "v1",
"digest": {
"length": 109.0,
"function_hash": "115996968577047209520615263420850770185"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92e5995773774a3e70257e9c95ea03518268bea5",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c",
"function": "hclge_exit"
}
},
{
"id": "CVE-2025-21802-bfb04316",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"274314600036284259146971624758126222227",
"276338480282329603252406895154660378914",
"190654520074306640195588547441819401440"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92e5995773774a3e70257e9c95ea03518268bea5",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hnae3.c"
}
},
{
"id": "CVE-2025-21802-c8943088",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"273495235743419164274381710966838675709",
"66926876629364593288430258798477040819",
"132956138754395330324968275703130458353",
"321945963467152057144639298698545399659",
"259661218833960351755945256688765151987",
"305699831345171323699253150620178809737"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cafe9a27e22736d4a01b3933e36225f9857c7988",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c"
}
},
{
"id": "CVE-2025-21802-cd9478dc",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"302723588754881878634605298093602894895",
"302747572570001353287665046467049638357"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@82736bb83fb0221319c85c2e9917d0189cd84e1e",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hnae3.h"
}
},
{
"id": "CVE-2025-21802-d3725ed2",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"175953177852334115568540565944045056307",
"294268269797893919783685700845873569176",
"35091587676230576146946580775449136162",
"249684501685497792968625668963642087204",
"157072548166964761395915608703401278811",
"210760524738864802253146105255715430600",
"190418377378798533041929370960790769762"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@82736bb83fb0221319c85c2e9917d0189cd84e1e",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c"
}
},
{
"id": "CVE-2025-21802-e10045ba",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"121508320079035731025336053059044571990",
"11478566928429554251195097025562844926",
"269993216466544222329133830712510405794",
"15725918708506017838106448671380769151",
"226773858184534332101900758931565466437",
"35191603690977568704183191754237511568",
"122133438839319988701310296426751645658"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@82736bb83fb0221319c85c2e9917d0189cd84e1e",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_enet.c"
}
},
{
"id": "CVE-2025-21802-efaa247e",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"121508320079035731025336053059044571990",
"11478566928429554251195097025562844926",
"269993216466544222329133830712510405794",
"15725918708506017838106448671380769151",
"226773858184534332101900758931565466437",
"35191603690977568704183191754237511568",
"122133438839319988701310296426751645658"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c640dd3d900cc8988a39c007591f1deee776df4",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_enet.c"
}
},
{
"id": "CVE-2025-21802-f1f89eca",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"121508320079035731025336053059044571990",
"11478566928429554251195097025562844926",
"269993216466544222329133830712510405794",
"15725918708506017838106448671380769151",
"226773858184534332101900758931565466437",
"35191603690977568704183191754237511568",
"122133438839319988701310296426751645658"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92e5995773774a3e70257e9c95ea03518268bea5",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_enet.c"
}
},
{
"id": "CVE-2025-21802-f443d6ae",
"signature_version": "v1",
"digest": {
"length": 103.0,
"function_hash": "319684726539580820088814479794574459731"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cafe9a27e22736d4a01b3933e36225f9857c7988",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns3/hns3_enet.c",
"function": "hns3_exit_module"
}
}
]