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: 2024-07-03 22:01 Pacific
Severity: Important

Issue Overview:

2024-07-03: CVE-2023-39197 was added to this advisory.

2024-07-03: CVE-2023-1611 was added to this advisory.

2024-07-03: CVE-2023-51043 was added to this advisory.

2024-02-01: CVE-2024-0639 was added to this advisory.

2023-10-12: CVE-2023-4128 was added to this advisory.

2023-10-12: CVE-2023-3212 was added to this advisory.

2023-10-12: CVE-2023-34319 was added to this advisory.

2023-10-12: CVE-2023-4194 was added to this advisory.

A use-after-free flaw was found in btrfs_search_slot in fs/btrfs/ctree.c in btrfs in the Linux Kernel.This flaw allows an attacker to crash the system and possibly cause a kernel information lea (CVE-2023-1611)

A flaw in the Linux Kernel found in the GFS2 file system. On corrupted gfs2 file systems the evict code can try to reference the journal descriptor structure, jdesc, after it has been freed and set to NULL. It can lead to null pointer dereference when gfs2_trans_begin being called and then fail ingfs2_evict_inode(). (CVE-2023-3212)

The fix for XSA-423 added logic to Linux'es netback driver to deal with
a frontend splitting a packet in a way such that not all of the headers
would come in one piece. Unfortunately the logic introduced there
didn't account for the extreme case of the entire packet being split
into as many pieces as permitted by the protocol, yet still being
smaller than the area that's specially dealt with to keep all (possible)
headers together. Such an unusual packet would therefore trigger a
buffer overrun in the driver. (CVE-2023-34319)

An out-of-bounds read vulnerability was found in Netfilter Connection Tracking (conntrack) in the Linux kernel. This flaw allows a remote user to disclose sensitive information via the DCCP protocol. (CVE-2023-39197)

A use-after-free flaw was found in net/sched/cls_fw.c in classifiers (cls_fw, cls_u32, and cls_route) in the Linux Kernel. This flaw allows a local attacker to perform a local privilege escalation due to incorrect handling of the existing filter, leading to a kernel information leak issue. (CVE-2023-4128)

A flaw was found in the Linux kernel's TUN/TAP functionality. This issue could allow a local user to bypass network filters and gain unauthorized access to some resources. The original patches fixing CVE-2023-1076 are incorrect or incomplete. The problem is that the following upstream commits - a096ccca6e50 ("tun: tun_chr_open(): correctly initialize socket uid"), - 66b2c338adce ("tap: tap_open(): correctly initialize socket uid"), pass "inode->i_uid" to sock_init_data_uid() as the last parameter and that turns out to not be accurate. (CVE-2023-4194)

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)

In the Linux kernel before 6.4.5, drivers/gpu/drm/drm_atomic.c has a use-after-free during a race condition between a nonblocking atomic commit and a driver unload. (CVE-2023-51043)

A denial of service vulnerability due to a deadlock was found in sctp_auto_asconf_init in net/sctp/socket.c in the Linux kernel's SCTP subsystem. This flaw allows guests with local user privileges to trigger a deadlock and potentially crash the system. (CVE-2024-0639)


Affected Packages:

kernel


Note:

This advisory is applicable to Amazon Linux 2 - Kernel-5.4 Extra. Visit this page to learn more about Amazon Linux 2 (AL2) Extras and this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


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