CVE-2026-74579: netfilter: nft_payload: fix mask build for partial field offload
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nftpayload: fix mask build for partial field offload
nftpayloadoffloadmask() builds the offload match mask for a payload expression that covers only part of a header field. For a partial IPv6 address match (fieldlen = 16, privlen = 1) that shift is 1 << 120, which is undefined on the 32-bit int operand. It also trims only one word, so the remaining words stay 0xffffffff (and when privlen is a multiple of 4 the trim is skipped entirely), leaving the mask covering more bytes than the rule matches.
UBSAN: shift-out-of-bounds in net/netfilter/nftpayload.c:278:20 shift exponent 120 is too large for 32-bit type 'int' ...
The match is byte-granular and struct nftdata is zero-initialised, so the correct mask is simply the first privlen bytes set to 0xff. Set those bytes directly and drop the word/shift trimming; this removes the undefined shift and no longer over-masks the trailing bytes.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.6.152.1-1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-74579?
The severity of CVE-2026-74579 is rated at 27.
How do I fix CVE-2026-74579?
To fix CVE-2026-74579, update your Linux Kernel to the latest version where the vulnerability has been patched.
What impact does CVE-2026-74579 have on system security?
CVE-2026-74579 can lead to improper handling of payload expressions in netfilter, potentially allowing for incorrect match evaluations.
Which versions of the Linux kernel are affected by CVE-2026-74579?
CVE-2026-74579 affects certain versions of the Linux kernel prior to the fix being applied.
Is CVE-2026-74579 a critical vulnerability?
While CVE-2026-74579 is not classified as critical, it does pose potential risks to network packet filtering integrity.