# CVE-2022-49805: net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-05-01T14:09:32.227Z
- Modified: 2026-06-17T05:19:11.250Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007 before 4a43c1c6040e848e1344c7b16ac696b68fbc439c; from 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007 before ba86af3733aece88dbcee0dfebf7e2dcfefb2be4; 5.17 (not affected: before 5.17; from 6.0.10 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.17 before 6.0.10; 6.1

## References

- <https://git.kernel.org/stable/c/4a43c1c6040e848e1344c7b16ac696b68fbc439c> (patch)
- <https://git.kernel.org/stable/c/ba86af3733aece88dbcee0dfebf7e2dcfefb2be4> (patch)

## Sources

- CVE List: [CVE-2022-49805](https://www.cve.org/CVERecord?id=CVE-2022-49805), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49805](https://nvd.nist.gov/vuln/detail/CVE-2022-49805), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49805 · Whole record: https://cve.day/CVE-2022-49805.json · Rebuilt by cve.day 2026-11-25T22:58:20.879Z
