CVE-2026-74579: netfilter: nft_payload: fix mask build for partial field offload

Published Aug 17, 2026
·
Updated

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

1 affected component
Linux Kernel

Event History

Aug 17, 2026
CVE Published
via MITRE·05:28 AM
Data Sourced
via MITRE·05:28 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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