net: hns3: fix kernel crash when devlink reload during pf initialization
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.85, 6.6.26, 6.8.5
- CVEs
- CVE-2024-36021
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 07:38 UTC · Revision 1
Source evidence
net: hns3: fix kernel crash when devlink reload during pf initialization
core-osv · Original sourcePublished 30 May 2024, 14:59 UTC
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.
osv:CVE-2024-36021
Kernel
Fixed versions: 6.1.85, 6.6.26, 6.8.5
Complete source record
{
"id": "783836de224ce177972de7a1caa16bd98b1fa5126d7e3ce35c8f4c982d32d77b",
"url": "https://osv.dev/vulnerability/CVE-2024-36021",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: hns3: fix kernel crash when devlink reload during pf initialization",
"summary": "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.",
"evidence": "osv:CVE-2024-36021",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.85",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.26",
"evidence": "/affected/1/ranges"
},
{
"value": "6.8.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-36021",
"aliases": [
"CVE-2024-36021"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b741269b275953786832805df329851299ab4de7"
},
{
"fixed": "50b69054f455dcdb34bd6b22764c7579b270eef3"
},
{
"fixed": "1b550dae55901c2cc9075d6a7155a71b4f516e86"
},
{
"fixed": "7ca0f73e5e2da3c129935b97f3a0877cce8ebdf5"
},
{
"fixed": "93305b77ffcb042f1538ecc383505e87d95aa05a"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36021.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.15.0"
},
{
"fixed": "6.1.85"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.26"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.8.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36021.json"
}
}
],
"modified": "2026-10-28T02:30:50.379780783Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1b550dae55901c2cc9075d6a7155a71b4f516e86",
"https://git.kernel.org/stable/c/50b69054f455dcdb34bd6b22764c7579b270eef3",
"https://git.kernel.org/stable/c/7ca0f73e5e2da3c129935b97f3a0877cce8ebdf5",
"https://git.kernel.org/stable/c/93305b77ffcb042f1538ecc383505e87d95aa05a",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36021.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-36021",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36021.json"
}
},
"related_cves": [
{
"value": "CVE-2024-36021",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 518660,
"published_at": "2024-05-30T14:59:45.757+00:00"
}