{"id":"CVE-2026-74579","aliases":["CVE-2026-74579"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: nft_payload: fix mask build for partial field offload","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_payload: fix mask build for partial field offload\n\nnft_payload_offload_mask() builds the offload match mask for a payload\nexpression that covers only part of a header field.  For a partial IPv6\naddress match (field_len = 16, priv_len = 1) that shift is 1 << 120, which\nis undefined on the 32-bit int operand.  It also trims only one word, so\nthe remaining words stay 0xffffffff (and when priv_len is a multiple of 4\nthe trim is skipped entirely), leaving the mask covering more bytes than\nthe rule matches.\n\n  UBSAN: shift-out-of-bounds in net/netfilter/nft_payload.c:278:20\n  shift exponent 120 is too large for 32-bit type 'int'\n  ...\n\nThe match is byte-granular and struct nft_data is zero-initialised, so the\ncorrect mask is simply the first priv_len bytes set to 0xff. Set those\nbytes directly and drop the word/shift trimming; this removes the undefined\nshift and no longer over-masks the trailing bytes.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_payload: fix mask build for partial field offload\n\nnft_payload_offload_mask() builds the offload match mask for a payload\nexpression that covers only part of a header field.  For a partial IPv6\naddress match (field_len = 16, priv_len = 1) that shift is 1 << 120, which\nis undefined on the 32-bit int operand.  It also trims only one word, so\nthe remaining words stay 0xffffffff (and when priv_len is a multiple of 4\nthe trim is skipped entirely), leaving the mask covering more bytes than\nthe rule matches.\n\n  UBSAN: shift-out-of-bounds in net/netfilter/nft_payload.c:278:20\n  shift exponent 120 is too large for 32-bit type 'int'\n  ...\n\nThe match is byte-granular and struct nft_data is zero-initialised, so the\ncorrect mask is simply the first priv_len bytes set to 0xff. Set those\nbytes directly and drop the word/shift trimming; this removes the undefined\nshift and no longer over-masks the trailing bytes.","source":"cvelist"}],"published":"2026-08-17T05:28:27.768Z","modified":"2026-10-16T20:17:39.580Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a5d45bc0dc50f9dd83703510e9804d813a9cac32","fixed":"3ee7b3f813b11f28cd6efdf7f24d64b5a7fd4dc7","status":"affected"},{"type":"git","introduced":"a5d45bc0dc50f9dd83703510e9804d813a9cac32","fixed":"8720df4504e0ed1781a702f65251bd47b3534d5e","status":"affected"},{"type":"git","introduced":"a5d45bc0dc50f9dd83703510e9804d813a9cac32","fixed":"363c3a84a946d53e5e121c9f47c7c2b7d228c46b","status":"affected"},{"type":"git","introduced":"a5d45bc0dc50f9dd83703510e9804d813a9cac32","fixed":"b19b5d2e042c294e2cc1c908dc598f9d64015396","status":"affected"},{"type":"git","introduced":"a5d45bc0dc50f9dd83703510e9804d813a9cac32","fixed":"a375d8ace807767f29f276b681b6324c74929b1d","status":"affected"},{"type":"git","introduced":"a5d45bc0dc50f9dd83703510e9804d813a9cac32","fixed":"16b553c46e347bc9de9946c4960654d5884a86de","status":"affected"},{"type":"git","introduced":"a5d45bc0dc50f9dd83703510e9804d813a9cac32","fixed":"630295d5bba1d0e0f494cc459452eb0a0058c545","status":"affected"},{"type":"git","introduced":"a5d45bc0dc50f9dd83703510e9804d813a9cac32","fixed":"39e88f28fb32bf02bd4b525c24c842c9cff5663d","status":"affected"},{"type":"git","version":"5c2b4b4f9fa5b765b927e361e3d310bcb5773015","status":"affected"},{"type":"semver","introduced":"5.9.14","fixed":"5.10","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.151","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.103","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.44","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.8","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3ee7b3f813b11f28cd6efdf7f24d64b5a7fd4dc7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8720df4504e0ed1781a702f65251bd47b3534d5e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/363c3a84a946d53e5e121c9f47c7c2b7d228c46b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b19b5d2e042c294e2cc1c908dc598f9d64015396","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a375d8ace807767f29f276b681b6324c74929b1d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/16b553c46e347bc9de9946c4960654d5884a86de","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/630295d5bba1d0e0f494cc459452eb0a0058c545","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39e88f28fb32bf02bd4b525c24c842c9cff5663d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-16T19:01:02.815Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74579","url":"https://www.cve.org/CVERecord?id=CVE-2026-74579","licence":"CVE Terms of Use","modified":"2026-10-16T19:05:57.728Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74579","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74579","licence":"Public domain","modified":"2026-10-16T20:17:39.580Z"}],"updatedAt":"2026-11-25T22:59:33.322Z","epss":{"score":0.0012,"percentile":0.02019,"date":"2026-12-01T12:00:22.000Z"}}