CWE
229
EPSS
0.042%
Advisory Published
CVE Published
CVE Published
Updated

CVE-2024-0607: Kernel: nf_tables: pointer math issue in nft_byteorder_eval()

First published: Tue Jan 16 2024(Updated: )

A flaw was found in the Netfilter module in the Linux kernel. The problem is in the nft_byteorder_eval() function where the code is iterating through a loop and writing to dst[0], dst[1], dst[2] and so on. On each iteration 8 bytes get written, but dst[] is an array of u32 so each element only has space for 4 bytes. That means that every iteration overwrites part of the previous element. Upstream commit: <a href="https://github.com/torvalds/linux/commit/c301f0981fdd3fd1ffac6836b423c4d7a8e0eb63">https://github.com/torvalds/linux/commit/c301f0981fdd3fd1ffac6836b423c4d7a8e0eb63</a>

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Linux Linux kernel<6.7
Linux Linux kernel=6.7-rc1
Fedoraproject Fedora=39
Redhat Enterprise Linux=8.0
Redhat Enterprise Linux=9.0
redhat/kernel<6.7
6.7
ubuntu/linux<5.4.0-176.196
5.4.0-176.196
ubuntu/linux<5.15.0-100.110
5.15.0-100.110
ubuntu/linux<6.5.0-25.25
6.5.0-25.25
ubuntu/linux<6.7~
6.7~
ubuntu/linux-aws<5.4.0-1122.132
5.4.0-1122.132
ubuntu/linux-aws<5.15.0-1056.61
5.15.0-1056.61
ubuntu/linux-aws<6.5.0-1015.15
6.5.0-1015.15
ubuntu/linux-aws<6.7~
6.7~
ubuntu/linux-aws-5.15<5.15.0-1056.61~20.04.1
5.15.0-1056.61~20.04.1
ubuntu/linux-aws-5.15<6.7~
6.7~
ubuntu/linux-aws-5.4<5.4.0-1122.132~18.04.1
5.4.0-1122.132~18.04.1
ubuntu/linux-aws-5.4<6.7~
6.7~
ubuntu/linux-aws-6.2<6.7~
6.7~
ubuntu/linux-aws-6.5<6.5.0-1015.15~22.04.1
6.5.0-1015.15~22.04.1
ubuntu/linux-aws-6.5<6.7~
6.7~
ubuntu/linux-aws-hwe<6.7~
6.7~
ubuntu/linux-azure<5.4.0-1127.134
5.4.0-1127.134
ubuntu/linux-azure<5.15.0-1058.66
5.15.0-1058.66
ubuntu/linux-azure<6.5.0-1016.16
6.5.0-1016.16
ubuntu/linux-azure<6.7~
6.7~
ubuntu/linux-azure-4.15<6.7~
6.7~
ubuntu/linux-azure-5.15<5.15.0-1058.66~20.04.2
5.15.0-1058.66~20.04.2
ubuntu/linux-azure-5.15<6.7~
6.7~
ubuntu/linux-azure-5.4<5.4.0-1127.134~18.04.1
5.4.0-1127.134~18.04.1
ubuntu/linux-azure-5.4<6.7~
6.7~
ubuntu/linux-azure-6.2<6.7~
6.7~
ubuntu/linux-azure-6.5<6.5.0-1016.16~22.04.1
6.5.0-1016.16~22.04.1
ubuntu/linux-azure-6.5<6.7~
6.7~
ubuntu/linux-azure-fde<5.15.0-1058.66.1
5.15.0-1058.66.1
ubuntu/linux-azure-fde<6.7~
6.7~
ubuntu/linux-azure-fde-5.15<5.15.0-1058.66~20.04.2.1
5.15.0-1058.66~20.04.2.1
ubuntu/linux-azure-fde-5.15<6.7~
6.7~
ubuntu/linux-azure-fde-6.2<6.7~
6.7~
ubuntu/linux-bluefield<5.4.0-1082.89
5.4.0-1082.89
ubuntu/linux-bluefield<6.7~
6.7~
ubuntu/linux-fips<6.7~
6.7~
ubuntu/linux-gcp<5.4.0-1126.135
5.4.0-1126.135
ubuntu/linux-gcp<5.15.0-1053.61
5.15.0-1053.61
ubuntu/linux-gcp<6.5.0-1015.15
6.5.0-1015.15
ubuntu/linux-gcp<6.7~
6.7~
ubuntu/linux-gcp-4.15<6.7~
6.7~
ubuntu/linux-gcp-5.15<5.15.0-1053.61~20.04.1
5.15.0-1053.61~20.04.1
ubuntu/linux-gcp-5.15<6.7~
6.7~
ubuntu/linux-gcp-5.19<6.7~
6.7~
ubuntu/linux-gcp-5.4<5.4.0-1126.135~18.04.1
5.4.0-1126.135~18.04.1
ubuntu/linux-gcp-5.4<6.7~
6.7~
ubuntu/linux-gcp-6.5<6.5.0-1015.15~22.04.1
6.5.0-1015.15~22.04.1
ubuntu/linux-gcp-6.5<6.7~
6.7~
ubuntu/linux-gke<5.15.0-1052.57
5.15.0-1052.57
ubuntu/linux-gke<6.7~
6.7~
ubuntu/linux-gkeop<5.4.0-1089.93
5.4.0-1089.93
ubuntu/linux-gkeop<5.15.0-1038.44
5.15.0-1038.44
ubuntu/linux-gkeop<6.7~
6.7~
ubuntu/linux-gkeop-5.15<5.15.0-1038.44~20.04.1
5.15.0-1038.44~20.04.1
ubuntu/linux-gkeop-5.15<6.7~
6.7~
ubuntu/linux-hwe<6.7~
6.7~
ubuntu/linux-hwe-5.15<5.15.0-100.110~20.04.1
5.15.0-100.110~20.04.1
ubuntu/linux-hwe-5.15<6.7~
6.7~
ubuntu/linux-hwe-5.4<5.4.0-175.195~18.04.1
5.4.0-175.195~18.04.1
ubuntu/linux-hwe-5.4<6.7~
6.7~
ubuntu/linux-hwe-6.5<6.5.0-25.25~22.04.1
6.5.0-25.25~22.04.1
ubuntu/linux-hwe-6.5<6.7~
6.7~
ubuntu/linux-ibm<5.4.0-1069.74
5.4.0-1069.74
ubuntu/linux-ibm<5.15.0-1048.51
5.15.0-1048.51
ubuntu/linux-ibm<6.7~
6.7~
ubuntu/linux-ibm-5.15<5.15.0-1048.51~20.04.1
5.15.0-1048.51~20.04.1
ubuntu/linux-ibm-5.15<6.7~
6.7~
ubuntu/linux-ibm-5.4<5.4.0-1069.74~18.04.1
5.4.0-1069.74~18.04.1
ubuntu/linux-ibm-5.4<6.7~
6.7~
ubuntu/linux-intel-iotg<5.15.0-1050.56
5.15.0-1050.56
ubuntu/linux-intel-iotg<6.7~
6.7~
ubuntu/linux-intel-iotg-5.15<5.15.0-1050.56~20.04.1
5.15.0-1050.56~20.04.1
ubuntu/linux-intel-iotg-5.15<6.7~
6.7~
ubuntu/linux-iot<6.7~
6.7~
ubuntu/linux-kvm<5.4.0-1110.117
5.4.0-1110.117
ubuntu/linux-kvm<5.15.0-1052.57
5.15.0-1052.57
ubuntu/linux-kvm<6.7~
6.7~
ubuntu/linux-laptop<6.5.0-1011.14
6.5.0-1011.14
ubuntu/linux-laptop<6.7~
6.7~
ubuntu/linux-lowlatency<5.15.0-100.110
5.15.0-100.110
ubuntu/linux-lowlatency<6.5.0-25.25.1
6.5.0-25.25.1
ubuntu/linux-lowlatency<6.7~
6.7~
ubuntu/linux-lowlatency-hwe-5.15<5.15.0-100.110~20.04.1
5.15.0-100.110~20.04.1
ubuntu/linux-lowlatency-hwe-5.15<6.7~
6.7~
ubuntu/linux-lowlatency-hwe-6.2<6.7~
6.7~
ubuntu/linux-lts-xenial<6.7~
6.7~
ubuntu/linux-nvidia<5.15.0-1046.46
5.15.0-1046.46
ubuntu/linux-nvidia<6.7~
6.7~
ubuntu/linux-nvidia-6.2<6.7~
6.7~
ubuntu/linux-oem-6.1<6.1.0-1033.33
6.1.0-1033.33
ubuntu/linux-oem-6.1<6.7~
6.7~
ubuntu/linux-oem-6.5<6.5.0-1016.17
6.5.0-1016.17
ubuntu/linux-oem-6.5<6.7~
6.7~
ubuntu/linux-oracle<5.4.0-1121.130
5.4.0-1121.130
ubuntu/linux-oracle<5.15.0-1053.59
5.15.0-1053.59
ubuntu/linux-oracle<6.5.0-1018.18
6.5.0-1018.18
ubuntu/linux-oracle<6.7~
6.7~
ubuntu/linux-oracle-5.15<5.15.0-1053.59~20.04.1
5.15.0-1053.59~20.04.1
ubuntu/linux-oracle-5.15<6.7~
6.7~
ubuntu/linux-oracle-5.4<5.4.0-1121.130~18.04.1
5.4.0-1121.130~18.04.1
ubuntu/linux-oracle-5.4<6.7~
6.7~
ubuntu/linux-raspi<5.4.0-1106.118
5.4.0-1106.118
ubuntu/linux-raspi<5.15.0-1048.51
5.15.0-1048.51
ubuntu/linux-raspi<6.5.0-1012.15
6.5.0-1012.15
ubuntu/linux-raspi<6.7~
6.7~
ubuntu/linux-raspi-5.4<5.4.0-1106.118~18.04.1
5.4.0-1106.118~18.04.1
ubuntu/linux-raspi-5.4<6.7~
6.7~
ubuntu/linux-riscv<6.5.0-25.25.1
6.5.0-25.25.1
ubuntu/linux-riscv<6.7~
6.7~
ubuntu/linux-riscv-5.15<5.15.0-1051.55~20.04.1
5.15.0-1051.55~20.04.1
ubuntu/linux-riscv-5.15<6.7~
6.7~
ubuntu/linux-riscv-6.5<6.5.0-25.25.1~22.04.1
6.5.0-25.25.1~22.04.1
ubuntu/linux-riscv-6.5<6.7~
6.7~
ubuntu/linux-starfive<6.5.0-1009.10
6.5.0-1009.10
ubuntu/linux-starfive<6.7~
6.7~
ubuntu/linux-starfive-6.5<6.5.0-1009.10~22.04.1
6.5.0-1009.10~22.04.1
ubuntu/linux-starfive-6.5<6.7~
6.7~
ubuntu/linux-xilinx-zynqmp<6.7~
6.7~
debian/linux<=4.19.249-2<=4.19.304-1<=5.10.209-2<=5.10.205-2
6.1.76-1
6.1.85-1
6.6.15-2
6.7.9-2

Remedy

If not needed, disable the ability for unprivileged users to create namespaces. To do this temporarily, do: sudo sysctl -w kernel.unprivileged_userns_clone=0 To disable across reboots, do: echo kernel.unprivileged_userns_clone=0 | \ sudo tee /etc/sysctl.d/99-disable-unpriv-userns.conf

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203