CVE-2022-49805
publishednet: lan966x: Fix potential null-ptr-deref in lan966x_stats_init()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007 to < 4a43c1c6040e848e1344c7b16ac696b68fbc439c · 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007 to < ba86af3733aece88dbcee0dfebf7e2dcfefb2be4 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.17 (affected) · 0 to < 5.17 (unaffected · semver) · 6.0.10 through 6.0.* (unaffected · semver) · 6.1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init() lan966x_stats_init() calls create_singlethread_workqueue() and not checked the ret value, which may return NULL. And a null-ptr-deref may happen: lan966x_stats_init() create_singlethread_workqueue() # failed, lan966x->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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007 to < 4a43c1c6040e848e1344c7b16ac696b68fbc439c (affected · git)12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007 to < ba86af3733aece88dbcee0dfebf7e2dcfefb2be4 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.17 (affected)0 to < 5.17 (unaffected · semver)6.0.10 through 6.0.* (unaffected · semver)6.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6788a8d06616e2a0a1dfa8f1c16f6b58c8744de899c9b82f70fd6effc7a53347
- Ingested
- 23 Sep 2026, 08:04:21 UTC
- Source record
- Official CVE record