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 D39662586C7 for ; Wed, 18 Jun 2025 11:07:03 +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=1750244823; cv=none; b=oJE/cnNCUXv5qu0/IfepgGrcz/J/0+v6ErobZp3ZW1AdgZaYjRkewxIuSVuyh9eJSDfigbeIABfvCtrLSIcfXYugejSxcEKWzxdpyBKuJup+M3z+FFM1mZhs1mF5I4rRMpG7XlKIFhTAl5q8oRnf2gwtqt2oOhRLBYStL/e+4FI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244823; c=relaxed/simple; bh=NRZHTamVlO/mTjtAjeDFUXcutDpQucaORzumJIAE5OI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h4b74AGVpa+MiDdZaPnYRl7ot/shWeb48d91gWhRJkr1agvLF1cqoL3fR1E6Cf37zd31fTBjA3hH74drx2PTrhQMtHoXaEXVFWn9dLKo+w6IYF5uutbqK/+v7gI12etBc5nMYk6dRMd5g6kiFSGDh8wMuwNfRQo4LUb3Z7hrkH0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x5pmjX6g; 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="x5pmjX6g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EC5AC4CEE7; Wed, 18 Jun 2025 11:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244823; bh=NRZHTamVlO/mTjtAjeDFUXcutDpQucaORzumJIAE5OI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=x5pmjX6gbr5czNCbvn0qvdOmy/GsWILKStgw2b/Ng5GLyD+8wJz3j3aY17cwDHfIe LY52Rwlzu5KgzHCYUuahe3O1//PWQA1wzpN3NtEPjVA7GreQTUl6wnn2ZcXmMk/Vvt DXRVWlngJSV58xNdMaKoN8RW1l7ieSaJfndnY9ho= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50048: netfilter: nf_tables: possible module reference underflow in error path Date: Wed, 18 Jun 2025 13:01:53 +0200 Message-ID: <2025061845-CVE-2022-50048-40d7@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=2172; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TW8bXo/ZY/pUzOsLWafsYyNCeYQXE9f9szt3pGpGyy4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc2Lfvj7xVdNtyp63OfybjCrkCg5cPejTqGZy1Wyt0 czlM+d96YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJFD9imJ87d/1McUfdrifN BatLQ9INLgoeP8Cw4MLkI62uMpcly3NPzDD727vlBI96GwA= 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: netfilter: nf_tables: possible module reference underflow in error path dst->ops is set on when nft_expr_clone() fails, but module refcount has not been bumped yet, therefore nft_expr_destroy() leads to module reference underflow. The Linux kernel CVE team has assigned CVE-2022-50048 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 8cfd9b0f8515e7c361bba27e2a2684cbd427fe01 and fixed in 5.15.63 with commit b59bee8b05b0e789b5a298cacb09e8aaa3367a29 Issue introduced in 5.11 with commit 8cfd9b0f8515e7c361bba27e2a2684cbd427fe01 and fixed in 5.19.4 with commit 1e52e6cfec6342c3d0df47dc3a76724fb3dabf56 Issue introduced in 5.11 with commit 8cfd9b0f8515e7c361bba27e2a2684cbd427fe01 and fixed in 6.0 with commit c485c35ff6783ccd12c160fcac6a0e504e83e0bf 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-50048 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: net/netfilter/nf_tables_api.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/b59bee8b05b0e789b5a298cacb09e8aaa3367a29 https://git.kernel.org/stable/c/1e52e6cfec6342c3d0df47dc3a76724fb3dabf56 https://git.kernel.org/stable/c/c485c35ff6783ccd12c160fcac6a0e504e83e0bf