CVE-2023-53200

EUVD-2023-59883
In the Linux kernel, the following vulnerability has been resolved:

netfilter: x_tables: fix percpu counter block leak on error path when creating new netns

Here is the stack where we allocate percpu counter block:

  +-< __alloc_percpu
    +-< xt_percpu_counter_alloc
      +-< find_check_entry # {arp,ip,ip6}_tables.c
        +-< translate_table

And it can be leaked on this code path:

  +-> ip6t_register_table
    +-> translate_table # allocates percpu counter block
    +-> xt_register_table # fails

there is no freeing of the counter block on xt_register_table fail.
Note: xt_percpu_counter_free should be called to free it like we do in
do_replace through cleanup_entry helper (or in __ip6t_unregister_table).

Probability of hitting this error path is low AFAICS (xt_register_table
can only return ENOMEM here, as it is not replacing anything, as we are
creating new netns, and it is hard to imagine that all previous
allocations succeeded and after that one in xt_register_table failed).
But it's worth fixing even the rare leak.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.5 MEDIUM
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 4%
Affected Products (NVD)
VendorProductVersion
linuxlinux_kernel
4.2 ≤
𝑥
< 5.15.100
linuxlinux_kernel
5.16 ≤
𝑥
< 6.1.18
linuxlinux_kernel
6.2 ≤
𝑥
< 6.2.5
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
linux
bookworm
6.1.148-1
fixed
bookworm (security)
6.1.147-1
fixed
bullseye
vulnerable
bullseye (security)
vulnerable
forky
6.16.3-1
fixed
sid
6.16.7-1
fixed
trixie
6.12.43-1
fixed
trixie (security)
6.12.41-1
fixed
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
bpftool
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
bpftool-debuginfo
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-debuginfo
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-debuginfo-common-aarch64
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-debuginfo-common-x86_64
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-devel
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-headers
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-libbpf
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-libbpf-devel
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-libbpf-static
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-livepatch-6.1.19-30.43
Amazon Linux 2023
0:1.0-0.amzn2023
fixed
kernel-tools
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-tools-debuginfo
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
kernel-tools-devel
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
perf
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
perf-debuginfo
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
python3-perf
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed
python3-perf-debuginfo
Amazon Linux 2023
0:6.1.19-30.43.amzn2023
fixed