Bug 2363460 (CVE-2022-49805) - CVE-2022-49805 kernel: net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init()
Summary: CVE-2022-49805 kernel: net: lan966x: Fix potential null-ptr-deref in lan966x_...
Keywords:
Status: NEW
Alias: CVE-2022-49805
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-01 15:05 UTC by OSIDB Bzimport
Modified: 2025-05-02 05:06 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-01 15:05:32 UTC
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.

Comment 1 Avinash Hanwate 2025-05-02 04:55:33 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050127-CVE-2022-49805-56c1@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.