[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025061845-CVE-2022-50048-40d7@gregkh>
Date: Wed, 18 Jun 2025 13:01:53 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50048: netfilter: nf_tables: possible module reference underflow in error path
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists