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 C6EE514A8E for ; Tue, 21 May 2024 15:04:48 +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=1716303888; cv=none; b=nN+3m0y+v47xe3mX0CSoKvFCOG12n1o5ApCtWKoAZaycIsmFOK6pxtRJWXtyhw9EbfWgF8IRQwP8BwkFgc3FRtv4tjNdh1eaQ/nGQ42G7vbFH7J3RxF9E4hZsFvv0eQH0CXp9Gtl6Xq+giIbEXPVyfQ0JbqM9FwjSeAu4/6gBNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303888; c=relaxed/simple; bh=WWJuVUhC98l7hi31woQLgo4jC5/ema8oH0VRxFtDG+U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uisyEW3rvVAJbWRtjHU8uhaUpKt+IiePCK7Vxo3rUYv84tlCTso39CpEV9/TviLft4XtujYaE0lKn3+tG4EcFiw+WLEnq22pmkCQKOlp4rOTmeBFIaEJ2S9SluA5oEzs4szVHWv1vGH9Fn8SbF1IMH3ipcGxBOdlGZu1CWRxwg0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1wug0Bvt; 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="1wug0Bvt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 358B0C2BD11; Tue, 21 May 2024 15:04:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716303888; bh=WWJuVUhC98l7hi31woQLgo4jC5/ema8oH0VRxFtDG+U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1wug0Bvtx2x2cPA9xv4/zpB19H38fJlnvoOqYvweQOSI4KdQ44uNXxYEuGd7rYI0W uC6N/AvDdrDoHs+UcrtYBw28WnOgNnGDfFZMz2oaXNmwXqjUIRT7y2CrRzeTfCPJUc HlmnGba7hd3HhBrJF4CfRaNC+Vg72Fb1lJ9jvIis= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47367: virtio-net: fix pages leaking when building skb in big mode Date: Tue, 21 May 2024 17:03:44 +0200 Message-ID: <2024052139-CVE-2021-47367-f587@gregkh> X-Mailer: git-send-email 2.45.1 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=1880; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WWJuVUhC98l7hi31woQLgo4jC5/ema8oH0VRxFtDG+U=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+209Pvq5c4vCor7VqQpGB6tlO9XJXuV1xa+/kJy3kj tooeeJIRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk50eGeaolWlq9AuxKCekO cywU7llea2v6zDDfO3ptzpZ9nKvD3bydn9xNF/ptF3UQAA== 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: virtio-net: fix pages leaking when building skb in big mode We try to use build_skb() if we had sufficient tailroom. But we forget to release the unused pages chained via private in big mode which will leak pages. Fixing this by release the pages after building the skb in big mode. The Linux kernel CVE team has assigned CVE-2021-47367 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit fb32856b16ad and fixed in 5.14.9 with commit f020bb63b5d2 Issue introduced in 5.13 with commit fb32856b16ad and fixed in 5.15 with commit afd92d82c9d7 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-2021-47367 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/virtio_net.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/f020bb63b5d2e5576acadd10e158fe3b04af67ba https://git.kernel.org/stable/c/afd92d82c9d715fb97565408755acad81573591a