# CVE-2026-31495: netfilter: ctnetlink: use netlink policy range checks

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **Published:** 2026-04-22T13:54:17.591Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 435b576cd2faa75154777868f8cbb73bf71644d3; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 2ef71307c86a9f866d6e28f1a0c06e2e9d794474; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 4f7d25f3f0786402ba48ff7d13b6241d77d975f5; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< fcec5ce2d73a41668b24e3f18c803541602a59f6; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 675c913b940488a84effdeeac5a1cfb657b59804; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< c6cb41eaae875501eaaa487b8db6539feb092292; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 45c33e79ae705b7af97e3117672b6cd258dd0b1b; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 8f15b5071b4548b0aafc03b366eb45c9c6566704
- Anyone running Linux 2.6.22

## Description

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.

## Affected and fixed versions

- Linux: \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 435b576cd2faa75154777868f8cbb73bf71644d3; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 2ef71307c86a9f866d6e28f1a0c06e2e9d794474; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 4f7d25f3f0786402ba48ff7d13b6241d77d975f5; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< fcec5ce2d73a41668b24e3f18c803541602a59f6; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 675c913b940488a84effdeeac5a1cfb657b59804; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< c6cb41eaae875501eaaa487b8db6539feb092292; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 45c33e79ae705b7af97e3117672b6cd258dd0b1b; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 8f15b5071b4548b0aafc03b366eb45c9c6566704 (cvelist)
- Linux: 2.6.22 (cvelist)

## Mitigation

- Upgrade Linux to 8f15b5071b4548b0aafc03b366eb45c9c6566704 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31495. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31495.md
Affected: Linux >= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, < 435b576cd2faa75154777868f8cbb73bf71644d3; >= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, < 2ef71307c86a9f866d6e28f1a0c06e2e9d794474; >= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, < 4f7d25f3f0786402ba48ff7d13b6241d77d975f5; >= c8e2078cfe414a99cf6f2f2…
Fixed in: Linux 435b576cd2faa75154777868f8cbb73bf71644d3, Linux 2ef71307c86a9f866d6e28f1a0c06e2e9d794474, Linux 4f7d25f3f0786402ba48ff7d13b6241d77d975f5, Linux 675c913b940488a84effdeeac5a1cfb657b59804, Linux 45c33e79ae705b7af97e3117672b6cd258dd0b1b, Linux 8f15b5071b4548b0aafc03b366eb45c9c6566704

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31495 being exploited?

There is no confirmed exploitation: CVE-2026-31495 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31495?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31495?

Linux \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 435b576cd2faa75154777868f8cbb73bf71644d3; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 2ef71307c86a9f866d6e28f1a0c06e2e9d794474; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 4f7d25f3f0786402ba48ff7d13b6241d77d975f5; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< fcec5ce2d73a41668b24e3f18c803541602a59f6; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 675c913b940488a84effdeeac5a1cfb657b59804; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< c6cb41eaae875501eaaa487b8db6539feb092292; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 45c33e79ae705b7af97e3117672b6cd258dd0b1b; \>= c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4, \< 8f15b5071b4548b0aafc03b366eb45c9c6566704; Linux 2.6.22.

### Is there a fix for CVE-2026-31495?

Yes. Fixed in Linux 435b576cd2faa75154777868f8cbb73bf71644d3, Linux 2ef71307c86a9f866d6e28f1a0c06e2e9d794474, Linux 4f7d25f3f0786402ba48ff7d13b6241d77d975f5, Linux 675c913b940488a84effdeeac5a1cfb657b59804, Linux 45c33e79ae705b7af97e3117672b6cd258dd0b1b, Linux 8f15b5071b4548b0aafc03b366eb45c9c6566704. Upgrade Linux to 8f15b5071b4548b0aafc03b366eb45c9c6566704 or later.

### How do I check if I'm affected by CVE-2026-31495?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/435b576cd2faa75154777868f8cbb73bf71644d3>
- patch: <https://git.kernel.org/stable/c/2ef71307c86a9f866d6e28f1a0c06e2e9d794474>
- patch: <https://git.kernel.org/stable/c/4f7d25f3f0786402ba48ff7d13b6241d77d975f5>
- patch: <https://git.kernel.org/stable/c/fcec5ce2d73a41668b24e3f18c803541602a59f6>
- patch: <https://git.kernel.org/stable/c/675c913b940488a84effdeeac5a1cfb657b59804>
- patch: <https://git.kernel.org/stable/c/c6cb41eaae875501eaaa487b8db6539feb092292>
- patch: <https://git.kernel.org/stable/c/45c33e79ae705b7af97e3117672b6cd258dd0b1b>
- patch: <https://git.kernel.org/stable/c/8f15b5071b4548b0aafc03b366eb45c9c6566704>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31495>

HTML: <https://flawdb.com/CVE-2026-31495> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31495>
