Bug 2258635 (CVE-2024-0607) - CVE-2024-0607 kernel: nf_tables: pointer math issue in nft_byteorder_eval()
Summary: CVE-2024-0607 kernel: nf_tables: pointer math issue in nft_byteorder_eval()
Keywords:
Status: NEW
Alias: CVE-2024-0607
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2258636
Blocks: 2259447
TreeView+ depends on / blocked
 
Reported: 2024-01-16 16:46 UTC by Mauro Matteo Cascella
Modified: 2024-02-28 06:19 UTC (History)
47 users (show)

Fixed In Version: kernel 6.7-rc2
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Netfilter subsystem in the Linux kernel. The issue is in the nft_byteorder_eval() 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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Mauro Matteo Cascella 2024-01-16 16:46:38 UTC
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:
https://github.com/torvalds/linux/commit/c301f0981fdd3fd1ffac6836b423c4d7a8e0eb63

Comment 1 Mauro Matteo Cascella 2024-01-16 16:47:04 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2258636]

Comment 5 Justin M. Forbes 2024-01-23 21:43:31 UTC
This was fixed for Fedora with the 6.5.13 stable kernel updates.


Note You need to log in before you can comment on or make changes to this bug.