net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start()
In the Linux kernel, the following vulnerability has been resolved: net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start() sparx_stats_init() calls create_singlethread_workqueue() and not checked the ret value, which may return NULL. And a null-ptr-deref may happen: sparx_stats_init() create_singlethread_workqueue() # failed, sparx5->stats_queue is NULL queue_delayed_work() queue_delayed_work_on() __queue_delayed_work() # warning here, but continue __queue_work() # access wq->flags, null-ptr-deref Check the ret value and return -ENOMEM if it is NULL. So as sparx5_start().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.80, 6.0.10
- CVEs
- CVE-2022-49806
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 20:32 UTC · Revision 1
Source evidence
net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start()
core-osv · Original sourcePublished 1 May 2025, 14:09 UTC
In the Linux kernel, the following vulnerability has been resolved: net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start() sparx_stats_init() calls create_singlethread_workqueue() and not checked the ret value, which may return NULL. And a null-ptr-deref may happen: sparx_stats_init() create_singlethread_workqueue() # failed, sparx5->stats_queue is NULL queue_delayed_work() queue_delayed_work_on() __queue_delayed_work() # warning here, but continue __queue_work() # access wq->flags, null-ptr-deref Check the ret value and return -ENOMEM if it is NULL. So as sparx5_start().
osv:CVE-2022-49806
Kernel
Fixed versions: 5.15.80, 6.0.10
Complete source record
{
"id": "08c3cd87688be24c5311f737456c9264b99f948f0ead5c3cdfcf76b7f51d5d81",
"url": "https://osv.dev/vulnerability/CVE-2022-49806",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start() sparx_stats_init() calls create_singlethread_workqueue() and not checked the ret value, which may return NULL. And a null-ptr-deref may happen: sparx_stats_init() create_singlethread_workqueue() # failed, sparx5->stats_queue is NULL queue_delayed_work() queue_delayed_work_on() __queue_delayed_work() # warning here, but continue __queue_work() # access wq->flags, null-ptr-deref Check the ret value and return -ENOMEM if it is NULL. So as sparx5_start().",
"evidence": "osv:CVE-2022-49806",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.80",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-49806",
"aliases": [
"CVE-2022-49806"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2"
},
{
"fixed": "80e590aeb132887102c3fa79d99b338f099dc952"
},
{
"fixed": "456327e565dc49d18b2f595f39f47df8a36f1057"
},
{
"fixed": "639f5d006e36bb303f525d9479448c412b720c39"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49806.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.14.0"
},
{
"fixed": "5.15.80"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.0.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49806.json"
}
}
],
"modified": "2026-10-28T02:30:23.550092582Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/456327e565dc49d18b2f595f39f47df8a36f1057",
"https://git.kernel.org/stable/c/639f5d006e36bb303f525d9479448c412b720c39",
"https://git.kernel.org/stable/c/80e590aeb132887102c3fa79d99b338f099dc952",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49806.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49806",
"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/2022/49xxx/CVE-2022-49806.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49806",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 489906,
"published_at": "2025-05-01T14:09:32.854+00:00"
}