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 AEBD31F0E3A for ; Thu, 1 May 2025 14:19:39 +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=1746109179; cv=none; b=FS+LXgRMyUQQ18v65Tijjgt6B3wq8ivTF7TMOMhBrYM4CtPz5rVntl7ws4+yrFB0MI9oh9JTohlze7Tvdj1x3Sd8OV9719/MpYDJ5ITrfcZHV91hChjvhTaacZdsqsd/LGUJJ/x/0nNhdemV7z1eM4v11exM/vafic3tJ8ojD14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109179; c=relaxed/simple; bh=Rwjnbm4EgJq3T5CVA/aIqMSpK93XqkEh8FZX51IEXLo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lwn2m7pYBEPtiO3FvvclY9Yh1enSx07+sPEPoAvxcDkSpTIDM3D/guqyhXSeUQkhu7/k9Be5bwDArhuaWbHorTV64rbc1y8smik3eGq7O04/gBA+ftBfNadsaxTmene8xc/2+d2epEylXgJlGSmtGYrLNUSooatEBJjTx1PRXzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bCalkmme; 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="bCalkmme" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1D79C4CEE3; Thu, 1 May 2025 14:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109179; bh=Rwjnbm4EgJq3T5CVA/aIqMSpK93XqkEh8FZX51IEXLo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bCalkmmeWNkazW5Azjri5uZKh91YU/jdMJQOAyjXEUWvOTcc7LDdpDqXsPl9TV0aP okrLbPb3YupBYDZE1OWF5DXaoSVvZWu2bT9eJnMw4Hhj9I+hfjO3hFXJUVQhMzAqyZ HLn7Le8CwThhx1JuV2Pmm9MOuCpV3gqrtSpZRv0k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49906: ibmvnic: Free rwi on reset success Date: Thu, 1 May 2025 16:11:36 +0200 Message-ID: <2025050103-CVE-2022-49906-4d07@gregkh> X-Mailer: git-send-email 2.49.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=2267; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q0QjKYGbDmlyIDSMrFvzwQFS80ycHSw+UAeDLnn3MrQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDbtPin28/TZds6j/Us1/voBG2XzZZawbfsRvShXmd P89769bRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkxyaG+a5xi+1TGVi9wxab xz56orqzO0V0F8N8t1SFmrq3plzbVsy6sOlXJ//suMkzAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ibmvnic: Free rwi on reset success Free the rwi structure in the event that the last rwi in the list processed successfully. The logic in commit 4f408e1fa6e1 ("ibmvnic: retry reset if there are no other resets") introduces an issue that results in a 32 byte memory leak whenever the last rwi in the list gets processed. The Linux kernel CVE team has assigned CVE-2022-49906 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 4f408e1fa6e10b6da72691233369172bac7d9e9b and fixed in 5.15.78 with commit 535b78739ae75f257c894a05b1afa86ad9a3669e Issue introduced in 5.14 with commit 4f408e1fa6e10b6da72691233369172bac7d9e9b and fixed in 6.0.8 with commit c3543a287cfba9105dcc4bb41eb817f51266caaf Issue introduced in 5.14 with commit 4f408e1fa6e10b6da72691233369172bac7d9e9b and fixed in 6.1 with commit d6dd2fe71153f0ff748bf188bd4af076fe09a0a6 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-49906 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/ibm/ibmvnic.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/535b78739ae75f257c894a05b1afa86ad9a3669e https://git.kernel.org/stable/c/c3543a287cfba9105dcc4bb41eb817f51266caaf https://git.kernel.org/stable/c/d6dd2fe71153f0ff748bf188bd4af076fe09a0a6