MGASA-2021-0215 - Updated kernel-linus packages fix security vulnerabilities

Publication date: 19 May 2021
URL: https://advisories.mageia.org/MGASA-2021-0215.html
Type: security
Affected Mageia releases: 7, 8
CVE: CVE-2021-3491,
     CVE-2021-3506,
     CVE-2021-23133,
     CVE-2021-31440,
     CVE-2021-31829,
     CVE-2021-32399,
     CVE-2021-33034

This kernel-linus update is based on upstream 5.10.37 and fixes atleast the
following security issues:

It was discovered that the io_uring implementation of the Linux kernel did
not properly enforce the MAX_RW_COUNT limit in some situations. A local
attacker could use this to cause a denial of service (system crash) or
execute arbitrary code (CVE-2021-3491).

An out-of-bounds (OOB) memory access flaw was found in fs/f2fs/node.c in
the f2fs module in the Linux kernel in versions before 5.12.0-rc4. A bounds
check failure allows a local attacker to gain access to out-of-bounds
memory leading to a system crash or a leak of internal kernel information
(CVE-2021-3506).

A race condition in Linux kernel SCTP sockets (net/sctp/socket.c) before
5.12-rc8 can lead to kernel privilege escalation from the context of a
network service or an unprivileged process. If sctp_destroy_sock is called
without sock_net(sk)->sctp.addr_wq_lock then an element is removed from
the auto_asconf_splist list without any proper locking. This can be
exploited by an attacker with network service privileges to escalate to
root or from the context of an unprivileged user directly if a
BPF_CGROUP_INET_SOCK_CREATE is attached which denies creation of some
SCTP socket. 
NOTE! This already had a fix in kernel-5.10.33, but that fix caused some
systems to deadlock, so this is now fixed in a better way (CVE-2021-23133).

bpf: Fix propagation of 32 bit unsigned bounds from 64 bit bounds
(CVE-2021-31440).

kernel/bpf/verifier.c in the Linux kernel through 5.12.1 performs undesirable
speculative loads, leading to disclosure of stack content via side-channel
attacks. The specific concern is not protecting the BPF stack area against
speculative loads. Also, the BPF stack can contain uninitialized data that
might represent sensitive information previously operated on by the kernel
(CVE-2021-31829).

net/bluetooth/hci_request.c in the Linux kernel through 5.12.2 has a race
condition for removal of the HCI controller (CVE-2021-32399).

In the Linux kernel before 5.12.4, net/bluetooth/hci_event.c has a
use-after-free when destroying an hci_chan. This leads to writing an
arbitrary value. (CVE-2021-33034).

For other upstream fixes, see the referenced changelogs.

References:
- https://bugs.mageia.org/show_bug.cgi?id=28917
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.34
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.35
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.36
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.37
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3491
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3506
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23133
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-31440
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-31829
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32399
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33034

SRPMS:
- 8/core/kernel-linus-5.10.37-1.mga8
- 7/core/kernel-linus-5.10.37-1.mga7