ALASKERNEL-5.4-2023-054

Related Vulnerabilities: CVE-2023-4206   CVE-2023-4207   CVE-2023-4208  

A use-after-free vulnerability in the Linux kernel's net/sched: cls_route component can be exploited to achieve local privilege escalation. When route4_change() is called on an existing filter, the whole tcf_result struct is always copied into the new instance of the filter. This causes a problem when updating a filter bound to a class, as tcf_unbind_filter() is always called on the old instance in the success path, decreasing filter_cnt of the still referenced class and allowing it to be deleted, leading to a use-after-free. We recommend upgrading past commit b80b829e9e2c1b3f7aae34855e04d8f6ecaf13c8. (CVE-2023-4206) A use-after-free vulnerability in the Linux kernel's net/sched: cls_fw component can be exploited to achieve local privilege escalation. When fw_change() is called on an existing filter, the whole tcf_result struct is always copied into the new instance of the filter. This causes a problem when updating a filter bound to a class, as tcf_unbind_filter() is always called on the old instance in the success path, decreasing filter_cnt of the still referenced class and allowing it to be deleted, leading to a use-after-free. We recommend upgrading past commit 76e42ae831991c828cffa8c37736ebfb831ad5ec. (CVE-2023-4207) A use-after-free vulnerability in the Linux kernel's net/sched: cls_u32 component can be exploited to achieve local privilege escalation. When u32_change() is called on an existing filter, the whole tcf_result struct is always copied into the new instance of the filter. This causes a problem when updating a filter bound to a class, as tcf_unbind_filter() is always called on the old instance in the success path, decreasing filter_cnt of the still referenced class and allowing it to be deleted, leading to a use-after-free. We recommend upgrading past commit 3044b16e7c6fe5d24b1cdbcf1bd0a9d92d1ebd81. (CVE-2023-4208)

ALASKERNEL-5.4-2023-054


Amazon Linux 2 Security Advisory: ALASKERNEL-5.4-2023-054
Advisory Release Date: 2023-09-27 22:59 Pacific
Advisory Updated Date: 2023-10-06 00:18 Pacific
Severity: Important

Issue Overview:

A use-after-free vulnerability in the Linux kernel's net/sched: cls_route component can be exploited to achieve local privilege escalation.

When route4_change() is called on an existing filter, the whole tcf_result struct is always copied into the new instance of the filter. This causes a problem when updating a filter bound to a class, as tcf_unbind_filter() is always called on the old instance in the success path, decreasing filter_cnt of the still referenced class and allowing it to be deleted, leading to a use-after-free.

We recommend upgrading past commit b80b829e9e2c1b3f7aae34855e04d8f6ecaf13c8. (CVE-2023-4206)

A use-after-free vulnerability in the Linux kernel's net/sched: cls_fw component can be exploited to achieve local privilege escalation.

When fw_change() is called on an existing filter, the whole tcf_result struct is always copied into the new instance of the filter. This causes a problem when updating a filter bound to a class, as tcf_unbind_filter() is always called on the old instance in the success path, decreasing filter_cnt of the still referenced class and allowing it to be deleted, leading to a use-after-free.

We recommend upgrading past commit 76e42ae831991c828cffa8c37736ebfb831ad5ec. (CVE-2023-4207)

A use-after-free vulnerability in the Linux kernel's net/sched: cls_u32 component can be exploited to achieve local privilege escalation.

When u32_change() is called on an existing filter, the whole tcf_result struct is always copied into the new instance of the filter. This causes a problem when updating a filter bound to a class, as tcf_unbind_filter() is always called on the old instance in the success path, decreasing filter_cnt of the still referenced class and allowing it to be deleted, leading to a use-after-free.

We recommend upgrading past commit 3044b16e7c6fe5d24b1cdbcf1bd0a9d92d1ebd81. (CVE-2023-4208)


Affected Packages:

kernel


Issue Correction:
Run yum update kernel to update your system.

New Packages:
aarch64:
    kernel-5.4.253-167.359.amzn2.aarch64
    kernel-headers-5.4.253-167.359.amzn2.aarch64
    kernel-debuginfo-common-aarch64-5.4.253-167.359.amzn2.aarch64
    perf-5.4.253-167.359.amzn2.aarch64
    perf-debuginfo-5.4.253-167.359.amzn2.aarch64
    python-perf-5.4.253-167.359.amzn2.aarch64
    python-perf-debuginfo-5.4.253-167.359.amzn2.aarch64
    kernel-tools-5.4.253-167.359.amzn2.aarch64
    kernel-tools-devel-5.4.253-167.359.amzn2.aarch64
    kernel-tools-debuginfo-5.4.253-167.359.amzn2.aarch64
    bpftool-5.4.253-167.359.amzn2.aarch64
    bpftool-debuginfo-5.4.253-167.359.amzn2.aarch64
    kernel-devel-5.4.253-167.359.amzn2.aarch64
    kernel-debuginfo-5.4.253-167.359.amzn2.aarch64

i686:
    kernel-headers-5.4.253-167.359.amzn2.i686

src:
    kernel-5.4.253-167.359.amzn2.src

x86_64:
    kernel-5.4.253-167.359.amzn2.x86_64
    kernel-headers-5.4.253-167.359.amzn2.x86_64
    kernel-debuginfo-common-x86_64-5.4.253-167.359.amzn2.x86_64
    perf-5.4.253-167.359.amzn2.x86_64
    perf-debuginfo-5.4.253-167.359.amzn2.x86_64
    python-perf-5.4.253-167.359.amzn2.x86_64
    python-perf-debuginfo-5.4.253-167.359.amzn2.x86_64
    kernel-tools-5.4.253-167.359.amzn2.x86_64
    kernel-tools-devel-5.4.253-167.359.amzn2.x86_64
    kernel-tools-debuginfo-5.4.253-167.359.amzn2.x86_64
    bpftool-5.4.253-167.359.amzn2.x86_64
    bpftool-debuginfo-5.4.253-167.359.amzn2.x86_64
    kernel-devel-5.4.253-167.359.amzn2.x86_64
    kernel-debuginfo-5.4.253-167.359.amzn2.x86_64