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

Published May 1, 2025
·
Updated

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.

Affected Software

11 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=5.17<6.0.10
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3
Linux Linux kernel=6.1-rc4
Linux Linux kernel=6.1-rc5
debian/linux<6.0.10-1
6.0.10-1
debian/linux<6.0.10-1
6.0.10-1
debian/linux<6.0.10-1
6.0.10-1
debian/linux
6.0.10-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.0.10-1
  2. Compensating control

    In the Linux kernel net: lan966x implementation, check the return value of create_singlethread_workqueue() in lan966x_stats_init(); if it is NULL, return -ENOMEM before calling queue_delayed_work().

Event History

May 1, 2025
CVE Published
via MITRE·02:09 PM
Data Sourced
via MITRE·02:09 PM
Description
Data Sourced
via NVD·03:16 PM
Description
Data Sourced
via OSV·03:16 PM
DescriptionSeverityAffected Software
Nov 7, 2025
Data Sourced
via NVD·07:20 PM
RemedySeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49805?

CVE-2022-49805 has a high severity due to the potential for null pointer dereference in the Linux kernel.

2

How do I fix CVE-2022-49805?

To resolve CVE-2022-49805, upgrade your Linux kernel to version 5.17 or later, or install the latest stable release.

3

Which versions of the Linux kernel are affected by CVE-2022-49805?

CVE-2022-49805 affects Linux kernel versions from 5.17 up to 6.0.10, along with specific release candidates.

4

What components are impacted by CVE-2022-49805?

CVE-2022-49805 specifically impacts the net: lan966x component in the Linux kernel.

5

What is the nature of the vulnerability described in CVE-2022-49805?

CVE-2022-49805 is a vulnerability that can lead to a null pointer dereference when create_singlethread_workqueue() fails without proper error checking.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203