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

netfilter: reject zero shift in nft_bitwise

Reject zero shift operands for nft_bitwise left and right shift
expressions during initialization.

The carry propagation logic computes the carry from the adjacent 32-bit
word using BITS_PER_TYPE(u32) - shift. A zero shift operand turns this
into a 32-bit shift, which is undefined behaviour.

Reject zero shift operands in the control plane, alongside the existing
check for values greater than or equal to 32, so malformed rules never
reach the packet path.
Published: 2026-05-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in the Linux kernel's nftables module. During packet filtering rule initialization the library accepts shift operators with a zero shift value. The kernel then performs a 32‑bit shift operation to propagate carry bits, which is undefined behaviour and can corrupt the kernel's internal state. Maliciously crafted nftables rules that use a zero shift can trigger a kernel crash or denial‑of‑service condition, potentially affecting the entire operating system. The weakness is an input validation failure in the control plane of the nft_bitwise expression.

Affected Systems

All Linux kernels that implement the nft_bitwise expression without the new zero‑shift check are affected. The vulnerability is not limited to a single vendor; it applies to every distribution that ships the affected kernel code. The precise kernel version that was patched is not specified in the advisory.

Risk and Exploitability

No EPSS score is available and the vulnerability is not listed in CISA KEV, so public exploitation data is currently unknown. The CVSS score is not provided, but given that the flaw is a kernel‑level undefined behaviour that can lead to a crash, the risk is moderate to high for affected systems. The attack vector is inferred to be remote in that a malicious user can supply a crafted nftables rule, which is plausible for both local administrators and attackers with sufficient privileges to modify firewall rules. Because the bug is confined to the control plane and must be triggered during rule compilation, it is not a low‑effort remote code execution flaw, but a denial of service that can be triggered by poorly validated rules.

Generated by OpenCVE AI on May 27, 2026 at 17:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that contains the fix for the nft_bitwise zero‑shift check.
  • Verify that nftables rules do not use zero‑shift operands; using nft -c or other validation tools can catch them before they are applied.
  • For operating systems that cannot be immediately updated, monitor the kernel logs for panic messages caused by nft_bitwise processing and consider temporarily disabling nft_bitwise functionality if it is not required.

Generated by OpenCVE AI on May 27, 2026 at 17:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 27 May 2026 18:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: netfilter: reject zero shift in nft_bitwise Reject zero shift operands for nft_bitwise left and right shift expressions during initialization. The carry propagation logic computes the carry from the adjacent 32-bit word using BITS_PER_TYPE(u32) - shift. A zero shift operand turns this into a 32-bit shift, which is undefined behaviour. Reject zero shift operands in the control plane, alongside the existing check for values greater than or equal to 32, so malformed rules never reach the packet path.
Title netfilter: reject zero shift in nft_bitwise
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:59:08.220Z

Reserved: 2026-05-13T15:03:33.097Z

Link: CVE-2026-46101

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:17:32.147

Modified: 2026-05-27T14:48:03.013

Link: CVE-2026-46101

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T18:00:15Z

Weaknesses