CVE-2026-31495

CVE-2026-31495

Medium · published April 22, 2026

CVSS v3.1
5.5
EPSS
0%
Percentile
6.1
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

netfilter: ctnetlink: use netlink policy range checks

Replace manual range and mask validations with netlink policy

annotations in ctnetlink code paths, so that the netlink core rejects

invalid values early and can generate extack errors.

- CTA_PROTOINFO_TCP_STATE: reject values > TCP_CONNTRACK_SYN_SENT2 at

policy level, removing the manual >= TCP_CONNTRACK_MAX check.

- CTA_PROTOINFO_TCP_WSCALE_ORIGINAL/REPLY: reject values > TCP_MAX_WSCALE

(14). The normal TCP option parsing path already clamps to this value,

but the ctnetlink path accepted 0-255, causing undefined behavior when

used as a u32 shift count.

- CTA_FILTER_ORIG_FLAGS/REPLY_FLAGS: use NLA_POLICY_MASK with

CTA_FILTER_F_ALL, removing the manual mask checks.

- CTA_EXPECT_FLAGS: use NLA_POLICY_MASK with NF_CT_EXPECT_MASK, adding

a new mask define grouping all valid expect flags.

Extracted from a broader nf-next patch by Florian Westphal, scoped to

ctnetlink for the fixes tree.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00171 · 6.1th percentile
Published
2026-04-22T18:16Z
Affected products (15)
ProductVersionsFixed in
linux/linux_kernel≥ 2.6.22.1, < 5.10.2535.10.253
linux/linux_kernel≥ 5.11, < 5.15.2035.15.203
linux/linux_kernel≥ 5.16, < 6.1.1686.1.168
linux/linux_kernel≥ 6.2, < 6.6.1316.6.131
linux/linux_kernel≥ 6.7, < 6.12.806.12.80
linux/linux_kernel≥ 6.13, < 6.18.216.18.21
linux/linux_kernel≥ 6.19, < 6.19.116.19.11
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (11)
EPSS history
Timeline
  • 22 APR 13:54Z
    netfilter: ctnetlink: use netlink policy range checks
    cvelistv5