CVE-2022-50288

qlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure

MEDIUM
5.5
CVSS Score
Published: September 15, 2025 at 02:21 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: qlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure adapter->dcb would get silently freed inside qlcnic_dcb_enable() in case qlcnic_dcb_attach() would return an error, which always happens under OOM conditions. This would lead to use-after-free because both of the existing callers invoke qlcnic_dcb_get_info() on the obtained pointer, which is potentially freed at that point. Propagate errors from qlcnic_dcb_enable(), and instead free the dcb pointer at callsite using qlcnic_dcb_free(). This also removes the now unused qlcnic_clear_dcb_ops() helper, which was a simple wrapper around kfree() also causing memory leaks for partially initialized dcb. Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.14 ≤ v < 4.14.3033.14 ≤ v < 4.19.2703.14 ≤ v < 5.10.1633.14 ≤ v < 5.15.873.14 ≤ v < 5.4.2293.14 ≤ v < 6.0.193.14 ≤ v < 6.1.53.14 ≤ v < 6.24.15 ≤ v < 4.19.2704.20 ≤ v < 5.4.2295.11 ≤ v < 5.15.875.16 ≤ v < 6.0.195.5 ≤ v < 5.10.1636.1 ≤ v < 6.1.53.143c44bba1d270cb1620b4fe76786d0968118cb86b6.2 rc16.2 rc2
Vendor states this is fixed in 13a7c8964afcd8ca43c0b6001ebb0127baa95362 (fixed)
Vendor states this is fixed in 36999236f0b12d5de21a6f40e93b570727b9ceb2 (fixed)
Vendor states this is fixed in 513787ff9a331b461115e8a145a983d650a84fcb (fixed)
Vendor states this is fixed in 8df1dc04ce0e4c03b51a756749c250a9cb17d707 (fixed)
Vendor states this is fixed in 8f97eeb02a553cdc78c83a0596448a370e1518c4 (fixed)
Vendor states this is fixed in 95df720e64a6409d8152827a776c43f615e3321a (fixed)
Vendor states this is fixed in a2a694e6edbdb3efb34e1613a31fdcf6cf444a55 (fixed)
Vendor states this is fixed in d12a7510293d3370b234b0b7c5eda33e58786768 (fixed)
Vendor states this is fixed in 3.14 (unaffected)
Vendor states this is fixed in 4.14.303 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.87 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.19 (unaffected)
Vendor states this is fixed in 6.1.5 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/13a7c8964afcd8ca43c0b6001ebb0127baa95362
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/36999236f0b12d5de21a6f40e93b570727b9ceb2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/513787ff9a331b461115e8a145a983d650a84fcb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8df1dc04ce0e4c03b51a756749c250a9cb17d707
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8f97eeb02a553cdc78c83a0596448a370e1518c4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/95df720e64a6409d8152827a776c43f615e3321a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a2a694e6edbdb3efb34e1613a31fdcf6cf444a55
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d12a7510293d3370b234b0b7c5eda33e58786768

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card