CVE-2022-49805

Source
https://cve.org/CVERecord?id=CVE-2022-49805
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49805.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49805
Downstream
Published
2025-05-01T14:09:32.227Z
Modified
2026-04-02T08:27:56.630733Z
Summary
net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init()
Details

In the Linux kernel, the following vulnerability has been resolved:

net: lan966x: Fix potential null-ptr-deref in lan966xstatsinit()

lan966xstatsinit() calls createsinglethreadworkqueue() and not checked the ret value, which may return NULL. And a null-ptr-deref may happen:

lan966xstatsinit() createsinglethreadworkqueue() # failed, lan966x->statsqueue is NULL queuedelayedwork() queuedelayedworkon() __queuedelayedwork() # warning here, but continue _queuework() # access wq->flags, null-ptr-deref

Check the ret value and return -ENOMEM if it is NULL.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49805.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007
Fixed
4a43c1c6040e848e1344c7b16ac696b68fbc439c
Fixed
ba86af3733aece88dbcee0dfebf7e2dcfefb2be4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49805.json"