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

Published Jan 16, 2024
·
Updated

A flaw was found in the Netfilter module in the Linux kernel. The problem is in the nftbyteordereval() 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: https://github.com/torvalds/linux/commit/c301f0981fdd3fd1ffac6836b423c4d7a8e0eb63

Other sources

A flaw was found in the Netfilter subsystem in the Linux kernel. The issue is in the nftbyteordereval() function, where the code iterates through a loop and writes to the dst array. On each iteration, 8 bytes are written, but dst is an array of u32, so each element only has space for 4 bytes. That means every iteration overwrites part of the previous element corrupting this array of u32. This flaw allows a local user to cause a denial of service or potentially break NetFilter functionality.

— Launchpad

Kernel: nftables: pointer math issue in nftbyteordereval()

— Microsoft

Affected Software

17 affected componentsFixes available
Linux Linux kernel<6.7
Linux Linux kernel=6.7-rc1
Fedoraproject Fedora=39
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Microsoft azl3 kernel 6.6.92.2-1
Microsoft azl3 kernel 6.6.29.1-4
Microsoft cbl2 kernel 5.15.180.1-1
Microsoft cbl2 kernel 5.15.148.1-1
Microsoft cbl2 kernel 5.15.180.1-1
Debian Debian Linux=10.0
Linux Linux kernel<6.6.3
redhat/kernel<6.7
6.7
debian/linux<6.1.64-1
6.1.64-1
debian/linux<6.5.13-1
6.5.13-1
debian/linux<6.5.13-1
6.5.13-1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.7
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.64-1
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.5.13-1
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
  5. Configuration

    Disable unprivileged user namespaces by setting kernel.unprivileged_userns_clone=0 with sysctl -w; persist the setting across reboots in /etc/sysctl.d/99-disable-unpriv-userns.conf.

    Linux kernel kernel.unprivileged_userns_clone = 0

Event History

Jan 16, 2024
Data Sourced
via Red Hat·04:46 PM
DescriptionSeverityAffected Software
Jan 18, 2024
CVE Published
via MITRE·03:41 PM
Data Sourced
via MITRE·03:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Jan 27, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-0607?

CVE-2024-0607 has a critical severity rating due to its potential to cause kernel crashes or data corruption.

2

How do I fix CVE-2024-0607?

To fix CVE-2024-0607, update the kernel to version 6.7 or apply the specific patches provided by your distribution.

3

What versions of the Linux kernel are affected by CVE-2024-0607?

CVE-2024-0607 affects Linux kernel versions prior to 6.7, including certain versions of Debian and Red Hat Enterprise Linux.

4

Is CVE-2024-0607 related to a specific Linux distribution?

Yes, CVE-2024-0607 impacts multiple distributions such as Red Hat Enterprise Linux, Debian, and Fedora.

5

What components of the Linux kernel are impacted by CVE-2024-0607?

CVE-2024-0607 specifically affects the Netfilter module due to a flaw in the nft_byteorder_eval() function.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203