From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20A5212C499 for ; Mon, 21 Oct 2024 20:10:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541420; cv=none; b=hUewxGRDt5a95iTZ7mrSSiJhLNbNRGaiRl0LQJdwsEjePqtMMDv8jXa7I1zbE45+DvmNZJOsy/eaG+FFUU3Or25p4I/Vd7pYRGrYtLMxuiclWMrC+TweQguJw/ew9l1atNoDTP10aIcVvl18YhQmW3UBa5KwD0Z1DJYRp07WF3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541420; c=relaxed/simple; bh=lx2WB/0aKtRdVA/kGzbk90PBMoArzKl0pPCbMQUDjZs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pY4h5dAReS6jQQODJUx/WzF9JnxKUGeGoNCyqdi3j5H1c7CCksWFDMXPW2vchJ8QdMNxbKLPfwnuxKWbONeZA56c947PgGg0N1IFV3uwq3jpYdLjJXd301wVW6azouxYZ4BjYqdzOG4TwhWSAKykMOgwLqibmzo+Uhh03AxgsDI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oLWMkyyP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oLWMkyyP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D4A0C4CEC3; Mon, 21 Oct 2024 20:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541419; bh=lx2WB/0aKtRdVA/kGzbk90PBMoArzKl0pPCbMQUDjZs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oLWMkyyP3TWZtWrwcqOscCWt1zli8RJgOPq3DohqX4At7x8UzBPSIsgP9Y6YXo5Dz Nl17SG6Sm7MtJysCP2O3axd8es6TX076xxLZ5zpv82c5amUOBmwsddYI4wkacXvsw0 tTnZit9YC8Nj1vD54aPRDN1fv0istck1IchPCGfo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48958: ethernet: aeroflex: fix potential skb leak in greth_init_rings() Date: Mon, 21 Oct 2024 22:05:50 +0200 Message-ID: <2024102142-CVE-2022-48958-bb88@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2894; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lx2WB/0aKtRdVA/kGzbk90PBMoArzKl0pPCbMQUDjZs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW8Smv5W37NXcynVb8kNn45qYdy9vqK5+7ZXcVn62p oulpvlvRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk/kGGBYu2/FvqXPAuei/L zQfu9xfW3F3sx8GwYN6vGobww+HTTa40Gz6uOCv8/XChCAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ethernet: aeroflex: fix potential skb leak in greth_init_rings() The greth_init_rings() function won't free the newly allocated skb when dma_mapping_error() returns error, so add dev_kfree_skb() to fix it. Compile tested only. The Linux kernel CVE team has assigned CVE-2022-48958 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.34 with commit d4c41139df6e and fixed in 4.9.336 with commit 223654e2e2c8 Issue introduced in 2.6.34 with commit d4c41139df6e and fixed in 4.14.302 with commit cb1e293f858e Issue introduced in 2.6.34 with commit d4c41139df6e and fixed in 4.19.269 with commit bfaa8f6c5b84 Issue introduced in 2.6.34 with commit d4c41139df6e and fixed in 5.4.227 with commit 99669d94ce14 Issue introduced in 2.6.34 with commit d4c41139df6e and fixed in 5.10.159 with commit 87277bdf2c37 Issue introduced in 2.6.34 with commit d4c41139df6e and fixed in 5.15.83 with commit c7adcbd0fd3f Issue introduced in 2.6.34 with commit d4c41139df6e and fixed in 6.0.13 with commit dd62867a6383 Issue introduced in 2.6.34 with commit d4c41139df6e and fixed in 6.1 with commit 063a932b64db 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-48958 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/aeroflex/greth.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/223654e2e2c8d05347cd8e300f8d1ec6023103dd https://git.kernel.org/stable/c/cb1e293f858e5e1152b8791047ed4bdaaf392189 https://git.kernel.org/stable/c/bfaa8f6c5b84b295dd73b0138b57c5555ca12b1c https://git.kernel.org/stable/c/99669d94ce145389f1d6f197e6e18ed50d43fb76 https://git.kernel.org/stable/c/87277bdf2c370ab2d07cfe77dfa9b37f82bbe1e5 https://git.kernel.org/stable/c/c7adcbd0fd3fde1b19150c3e955fb4a30c5bd9b7 https://git.kernel.org/stable/c/dd62867a6383f78f75f07039394aac25924a3307 https://git.kernel.org/stable/c/063a932b64db3317ec020c94466fe52923a15f60