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 64306210EC for ; Thu, 22 Aug 2024 03:33: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=1724297628; cv=none; b=l/Zl44k05G4vVk2B56Ef7N++lRJpWHRXDOkgN0QyJDcoPEjxivjBRpaw6Z9hz2GUfRHOVFKYaS69wvPsJ1P8cP9ynAZ8vq9xDTWHPih9c0cg3/7xerhjFZv7rG/QscWGTbksVshyJfSEQf6B9DdO0eJY2uF2D/ovEmtBhm5YFHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724297628; c=relaxed/simple; bh=wzqdila4kPwt8Euk9rc9PU+THCIUzTX2VIBR9sG++Ec=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dvqXDWTOe6DhsRcoVnBey2nc5ZjqobzvL55i6nqgLwA6FyNJEJmqla4GmA2hSwc5Q9VWuk8vyuUnlkVeNhmx2xBjsB/0rwUQsRllPYQTKcRSk3IHQsQPQbRf92Elx38xWE9Wi/cryg6yyXGa2ojafB6Jpwbvxnz8xPUIu0iyr+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uOgBYGHh; 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="uOgBYGHh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB424C4AF09; Thu, 22 Aug 2024 03:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724297628; bh=wzqdila4kPwt8Euk9rc9PU+THCIUzTX2VIBR9sG++Ec=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uOgBYGHhhY9fODZwz9s72hx1knKZVXnmBlIlSCkAgsTPHFNXQpOXB117jNK78X74D p1KvqXYWLghqGWWOH42LFXEu6G03CexTJF/3QKv/MLYjMbUL+B4vVeGHxcWevbDRRZ xNS6RyWeaHq6O9rNHMqkNl5rEDldvV3d6JUcNLuo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48911: netfilter: nf_queue: fix possible use-after-free Date: Thu, 22 Aug 2024 11:31:12 +0800 Message-ID: <2024082215-CVE-2022-48911-45bc@gregkh> X-Mailer: git-send-email 2.46.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=3063; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wzqdila4kPwt8Euk9rc9PU+THCIUzTX2VIBR9sG++Ec=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnHNjJHsG5Lud8bar94y8eDcosXe2b+rloes/FSy7N9z hGvLvh6dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEDu1nmJ9huupO2/KU9Ikf /53wvW2+/cXvRZMY5lm79DpvXd+6unBWsfrSbbbRXyuzfgIA 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: netfilter: nf_queue: fix possible use-after-free Eric Dumazet says: The sock_hold() side seems suspect, because there is no guarantee that sk_refcnt is not already 0. On failure, we cannot queue the packet and need to indicate an error. The packet will be dropped by the caller. v2: split skb prefetch hunk into separate change The Linux kernel CVE team has assigned CVE-2022-48911 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.29 with commit 271b72c7fa82 and fixed in 4.9.305 with commit 21b27b2baa27 Issue introduced in 2.6.29 with commit 271b72c7fa82 and fixed in 4.14.270 with commit ef97921ccdc2 Issue introduced in 2.6.29 with commit 271b72c7fa82 and fixed in 4.19.233 with commit 34dc4a6a7f26 Issue introduced in 2.6.29 with commit 271b72c7fa82 and fixed in 5.4.183 with commit 43c25da41e30 Issue introduced in 2.6.29 with commit 271b72c7fa82 and fixed in 5.10.104 with commit 4d05239203fa Issue introduced in 2.6.29 with commit 271b72c7fa82 and fixed in 5.15.27 with commit dd648bd1b33a Issue introduced in 2.6.29 with commit 271b72c7fa82 and fixed in 5.16.13 with commit dcc3cb920bf7 Issue introduced in 2.6.29 with commit 271b72c7fa82 and fixed in 5.17 with commit c3873070247d 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-48911 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: include/net/netfilter/nf_queue.h net/netfilter/nf_queue.c net/netfilter/nfnetlink_queue.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/21b27b2baa27423286e9b8d3f0b194d587083d95 https://git.kernel.org/stable/c/ef97921ccdc243170fcef857ba2a17cf697aece5 https://git.kernel.org/stable/c/34dc4a6a7f261736ef7183868a5bddad31c7f9e3 https://git.kernel.org/stable/c/43c25da41e3091b31a906651a43e80a2719aa1ff https://git.kernel.org/stable/c/4d05239203fa38ea8a6f31e228460da4cb17a71a https://git.kernel.org/stable/c/dd648bd1b33a828f62befa696b206c688da0ec43 https://git.kernel.org/stable/c/dcc3cb920bf7ba66ac5e9272293a9ba5f80917ee https://git.kernel.org/stable/c/c3873070247d9e3c7a6b0cf9bf9b45e8018427b1