Red Hat Security Advisory: kernel security update
🔗 CVE IDs covered (17)
📋 Description
CVE-2024-27399 — kernel: Bluetooth: l2cap: fix null-ptr-deref in l2cap_chan_timeout CVE-2024-38564 — kernel: bpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE CVE-2024-45020 — kernel: bpf: Fix a kernel verifier crash in stacksafe() CVE-2024-46697 — kernel: nfsd: ensure that nfsd4_fattr_args.context is zeroed out CVE-2024-47675 — kernel: bpf: Fix use-after-free in bpf_uprobe_multi_link_attach() CVE-2024-49888 — kernel: bpf: Fix a sdiv overflow issue CVE-2024-50099 — kernel: arm64: probes: Remove broken LDR (literal) uprobe support CVE-2024-50110 — kernel: xfrm: fix one more kernel-infoleak in algo dumping CVE-2024-50115 — kernel: KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory CVE-2024-50124 — kernel: Bluetooth: ISO: Fix UAF on iso_sock_timeout CVE-2024-50125 — kernel: Bluetooth: SCO: Fix UAF on sco_sock_timeout CVE-2024-50142 — kernel: xfrm: validate new SA's prefixlen using SA family when sel.family is unset CVE-2024-50148 — kernel: Bluetooth: bnep: fix wild-memory-access in proto_unregister CVE-2024-50192 — kernel: irqchip/gic-v4: Don't allow a VMOVP on a dying VPE CVE-2024-50223 — kernel: sched/numa: Fix the potential null pointer dereference in task_numa_work() CVE-2024-50255 — kernel: Bluetooth: hci: fix null-ptr-deref in hci_read_supported_codecs CVE-2024-50262 — kernel: bpf: Fix out-of-bounds write in trie_get_next_key()
🎯 Affected products200
- Red Hat CodeReady Linux Builder (v. 9)
- Red Hat Enterprise Linux AppStream (v. 9)
- Red Hat Enterprise Linux BaseOS (v. 9)
- Red Hat Enterprise Linux Real Time (v. 9)
- Red Hat Enterprise Linux Real Time for NFV (v. 9)
- bpftool-0:7.4.0-503.19.1.el9_5.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- bpftool-0:7.4.0-503.19.1.el9_5.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- bpftool-0:7.4.0-503.19.1.el9_5.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- bpftool-0:7.4.0-503.19.1.el9_5.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.aarch64 as a component of Red Hat CodeReady Linux Builder (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.ppc64le as a component of Red Hat CodeReady Linux Builder (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.s390x as a component of Red Hat CodeReady Linux Builder (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.x86_64 as a component of Red Hat CodeReady Linux Builder (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.x86_64 as a component of Red Hat Enterprise Linux Real Time (v. 9)
- bpftool-debuginfo-0:7.4.0-503.19.1.el9_5.x86_64 as a component of Red Hat Enterprise Linux Real Time for NFV (v. 9)
- kernel-0:5.14.0-503.19.1.el9_5.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kernel-0:5.14.0-503.19.1.el9_5.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kernel-0:5.14.0-503.19.1.el9_5.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kernel-0:5.14.0-503.19.1.el9_5.src as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kernel-0:5.14.0-503.19.1.el9_5.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kernel-64k-0:5.14.0-503.19.1.el9_5.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kernel-64k-core-0:5.14.0-503.19.1.el9_5.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- +170 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect. Workaround: To mitigate this issue, restrict the ability to load unprivileged BPF programs. This can be achieved by setting the `kernel.unprivileged_bpf_disabled` sysctl parameter to `1`. To apply this change immediately: `echo 1 > /proc/sys/kernel/unprivileged_bpf_disabled` For persistent configuration across reboots, add `kernel.unprivileged_bpf_disabled = 1` to a file like `/etc/sysctl.d/99-disable-unprivileged-bpf.conf` and apply with `sysctl -p`. Disabling unprivileged BPF may impact applications that depend on this feature. A system reboot may be required for the change to take full effect. Workaround: If the NFS server functionality is not required, disable the `nfs-server` service to mitigate this vulnerability. This can be achieved by running the following commands: ```bash sudo systemctl stop nfs-server sudo systemctl disable nfs-server ``` Disabling the `nfs-server` service will prevent NFS clients from accessing shared directories on the system and may impact services relying on NFS. A system reboot may be required for the changes to take full effect. Workaround: Ensure the `kernel.unprivileged_bpf_disabled` sysctl is set to `1` to prevent unprivileged users from utilizing eBPF, thereby mitigating this flaw. To check the current setting: ```bash cat /proc/sys/kernel/unprivileged_bpf_disabled ``` To set it permanently, create or modify a sysctl configuration file: ```bash echo "kernel.unprivileged_bpf_disabled = 1" > /etc/sysctl.d/99-disable-unprivileged-bpf.conf sysctl -p /etc/sysctl.d/99-disable-unprivileged-bpf.conf ``` A system reboot may be required for the change to take full effect if the kernel module was already loaded with a different setting. Workaround: To mitigate this issue, ensure that unprivileged users are prevented from loading eBPF programs by setting the `kernel.unprivileged_bpf_disabled` sysctl to 1. This is the default configuration on Red Hat Enterprise Linux. To verify the current setting: `cat /proc/sys/kernel/unprivileged_bpf_disabled` If the value is 0, set it to 1 immediately using: `sudo sysctl -w kernel.unprivileged_bpf_disabled=1` To make this change persistent across reboots, add or modify the following line in `/etc/sysctl.d/99-sysctl.conf` (or a similar sysctl configuration file): `kernel.unprivileged_bpf_disabled = 1` Then, apply the changes: `sudo sysctl --system` Note that changes to sysctl parameters take effect immediately but may require a system reboot for full application in some scenarios, especially if the vulnerable kernel module was already loaded with the previous setting. Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. Workaround: To mitigate this issue, prevent module kvm-amd from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically. Workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
🔗 References (20)
- selfhttps://access.redhat.com/errata/RHSA-2024:11486
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2280462
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2293429
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2311717
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2312085
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2320254
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2320517
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2323904
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2323930
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2323937
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2323944
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2323955
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2324315
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2324332
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2324612
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2324867
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2324868
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2324892
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_11486.json