[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025091548-CVE-2022-50242-9a25@gregkh>
Date: Mon, 15 Sep 2025 16:01:50 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50242: drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()
If vp alloc failed in qlcnic_sriov_init(), all previously allocated vp
needs to be freed.
The Linux kernel CVE team has assigned CVE-2022-50242 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.10 with commit f197a7aa62888f27c9a7976b18eb4f040f6606ce and fixed in 4.9.337 with commit 15770edc01edfce773269e8a443ca8e420f6f859
Issue introduced in 3.10 with commit f197a7aa62888f27c9a7976b18eb4f040f6606ce and fixed in 4.14.303 with commit 0aefadf23ee5e33b747df195ace42d3be2025e4e
Issue introduced in 3.10 with commit f197a7aa62888f27c9a7976b18eb4f040f6606ce and fixed in 4.19.270 with commit 132c502919bb08e16e3054cb28bb7b149ec20cf5
Issue introduced in 3.10 with commit f197a7aa62888f27c9a7976b18eb4f040f6606ce and fixed in 5.4.229 with commit a44490abaf00f5b0cc5c448a17eae331c6195d0a
Issue introduced in 3.10 with commit f197a7aa62888f27c9a7976b18eb4f040f6606ce and fixed in 5.10.163 with commit 14b349a15c297cf3e01b5deb4116f7cf297b6184
Issue introduced in 3.10 with commit f197a7aa62888f27c9a7976b18eb4f040f6606ce and fixed in 5.15.86 with commit 8399b9893548c03fdb18be277bf99d985dbde925
Issue introduced in 3.10 with commit f197a7aa62888f27c9a7976b18eb4f040f6606ce and fixed in 6.0.16 with commit aa2d179544b6815b4a23c0c44543ba0971d49fce
Issue introduced in 3.10 with commit f197a7aa62888f27c9a7976b18eb4f040f6606ce and fixed in 6.1.2 with commit dcae92a249551d1a447804b4be1c9fab0e8c95e8
Issue introduced in 3.10 with commit f197a7aa62888f27c9a7976b18eb4f040f6606ce and fixed in 6.2 with commit 01de1123322e4fe1bbd0fcdf0982511b55519c03
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-50242
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/15770edc01edfce773269e8a443ca8e420f6f859
https://git.kernel.org/stable/c/0aefadf23ee5e33b747df195ace42d3be2025e4e
https://git.kernel.org/stable/c/132c502919bb08e16e3054cb28bb7b149ec20cf5
https://git.kernel.org/stable/c/a44490abaf00f5b0cc5c448a17eae331c6195d0a
https://git.kernel.org/stable/c/14b349a15c297cf3e01b5deb4116f7cf297b6184
https://git.kernel.org/stable/c/8399b9893548c03fdb18be277bf99d985dbde925
https://git.kernel.org/stable/c/aa2d179544b6815b4a23c0c44543ba0971d49fce
https://git.kernel.org/stable/c/dcae92a249551d1a447804b4be1c9fab0e8c95e8
https://git.kernel.org/stable/c/01de1123322e4fe1bbd0fcdf0982511b55519c03
Powered by blists - more mailing lists