Red Hat Security Advisory: kpatch-patch security update
🔗 CVE IDs covered (2)
📋 Description
CVE-2023-2235 — kernel: use-after-free vulnerability in the perf_group_detach function of the Linux Kernel Performance Events CVE-2023-32233 — kernel: netfilter: use-after-free in nf_tables when processing batch requests can lead to privilege escalation
🎯 Affected products8
- Red Hat Enterprise Linux BaseOS (v. 9)
- kpatch-patch-5_14_0-284_11_1-0:1-1.el9_2.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kpatch-patch-5_14_0-284_11_1-0:1-1.el9_2.src as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kpatch-patch-5_14_0-284_11_1-0:1-1.el9_2.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kpatch-patch-5_14_0-284_11_1-debuginfo-0:1-1.el9_2.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kpatch-patch-5_14_0-284_11_1-debuginfo-0:1-1.el9_2.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kpatch-patch-5_14_0-284_11_1-debugsource-0:1-1.el9_2.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 9)
- kpatch-patch-5_14_0-284_11_1-debugsource-0:1-1.el9_2.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 9)
✅ 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 Workaround: 1. This flaw can be mitigated by preventing the affected netfilter (nf_tables) kernel module from being loaded. For instructions on how to blacklist a kernel module, please see https://access.redhat.com/solutions/41278. 2. If the module cannot be disabled, on non-containerized deployments of Red Hat Enterprise Linux, the mitigation is to disable user namespaces: ``` # echo "user.max_user_namespaces=0" > /etc/sysctl.d/userns.conf # sysctl -p /etc/sysctl.d/userns.conf ``` On containerized deployments, such as Red Hat OpenShift Container Platform, do not use the second mitigation (disabling user namespaces) as the functionality is needed to be enabled. The first mitigation (blacklisting nf_tables) is still viable for containerized deployments, providing the environment is not using netfilter.
🔗 References (5)
- selfhttps://access.redhat.com/errata/RHSA-2023:3705
- externalhttps://access.redhat.com/security/updates/classification/#important
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2192589
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2196105
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_3705.json