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 12D7E28981C for ; Wed, 18 Jun 2025 11:07:30 +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=1750244850; cv=none; b=IOZrpaSpXUVw81hP1Cx4gM2ViKB3tyrDHPn9qSpzyKwZt/9mAln6ZEX3cpcIc1vP8FYqGp8X3vF/poR5SIz294hSvMoMELVYtCh1WOVYbwPIfABZFqZfTLtXJpGG/hmdio6U0UoDb1ySNmwzTYT5RggMNvts6zRMSnQymbHDg6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244850; c=relaxed/simple; bh=tAyOP6579RsHWxZfeRutOzWhzrbFfIsn/GemyRAOL0A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S7dNndNBA5OVssFtjY9+jjwXJ+8UPRcyOfzKGoAFgRFJi0nf9OErsNhVNHvd3xwNcVzEP8gIUJkQHGfRxAmIAW/Vm+fcFokdFM2SuREHHpGgTTzSO/emb2u7YSsNaY+HxJkBePtT9oOmUflKCemEZ0mwoIubAmQiUZuuIbM5r4M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vpmXOOri; 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="vpmXOOri" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 874BCC4CEED; Wed, 18 Jun 2025 11:07:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244849; bh=tAyOP6579RsHWxZfeRutOzWhzrbFfIsn/GemyRAOL0A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vpmXOOriVHQK72MigpTUlpFfY1jysTEuXQkkoIJhEWsz2SIFK46t+jlGf9uaocfJU 5HQ6aIcGkAJhkh8o24Px48mt/n3WxULUVOC2BLX1Aqeq+IWzplJ8QtdoHPXlJXfVbT XZi2+kN6D/vI4LaladUXLQ1N5V5GjzHtRCZZv8sA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50055: iavf: Fix adminq error handling Date: Wed, 18 Jun 2025 13:02:00 +0200 Message-ID: <2025061847-CVE-2022-50055-67ab@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=2977; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/9XzjrFbh0yop3oPtQnu7vp3/ClQZ6lzLFwkjsNOWVU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+LN62r02CN2n1TcuER21bz5nF8nRJrX3Hx04Drr6 6/KOrdkOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiTu8Z5udE37lhJzfx9+bH oVu2HF/TvPdwRzbDgkUV5tqHT988+fdOKZelb2lonsp+EwA= 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: iavf: Fix adminq error handling iavf_alloc_asq_bufs/iavf_alloc_arq_bufs allocates with dma_alloc_coherent memory for VF mailbox. Free DMA regions for both ASQ and ARQ in case error happens during configuration of ASQ/ARQ registers. Without this change it is possible to see when unloading interface: 74626.583369: dma_debug_device_change: device driver has pending DMA allocations while released from device [count=32] One of leaked entries details: [device address=0x0000000b27ff9000] [size=4096 bytes] [mapped with DMA_BIDIRECTIONAL] [mapped as coherent] The Linux kernel CVE team has assigned CVE-2022-50055 to this issue. Affected and fixed versions =========================== Issue introduced in 3.14 with commit d358aa9a7a2d5f91b1d33d5d4e27c2e46638d123 and fixed in 5.4.211 with commit ff289f2be5899efd0e897d2b434a78e36df2c69b Issue introduced in 3.14 with commit d358aa9a7a2d5f91b1d33d5d4e27c2e46638d123 and fixed in 5.10.138 with commit 4fe80492d53971d9a49f39f3c86d2d67c6f3638a Issue introduced in 3.14 with commit d358aa9a7a2d5f91b1d33d5d4e27c2e46638d123 and fixed in 5.15.63 with commit dab6b551f5ba4c79a0dd4970dd8533c37a7b100f Issue introduced in 3.14 with commit d358aa9a7a2d5f91b1d33d5d4e27c2e46638d123 and fixed in 5.19.4 with commit 35c63581fdefdcbaeae8cded18908523252353ad Issue introduced in 3.14 with commit d358aa9a7a2d5f91b1d33d5d4e27c2e46638d123 and fixed in 6.0 with commit 419831617ed349992c84344dbd9e627f9e68f842 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-50055 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/intel/iavf/iavf_adminq.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/ff289f2be5899efd0e897d2b434a78e36df2c69b https://git.kernel.org/stable/c/4fe80492d53971d9a49f39f3c86d2d67c6f3638a https://git.kernel.org/stable/c/dab6b551f5ba4c79a0dd4970dd8533c37a7b100f https://git.kernel.org/stable/c/35c63581fdefdcbaeae8cded18908523252353ad https://git.kernel.org/stable/c/419831617ed349992c84344dbd9e627f9e68f842