CVE-2026-139247

net: qede: initialize extack in qede_flow_spec_to_rule()

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: qede: initialize extack in qede_flow_spec_to_rule()

qede_flow_spec_to_rule() declares a netlink_ext_ack on the stack
without initializing it. qede_parse_flow_attr() and
qede_flow_spec_validate() only set extack._msg on error paths via
NL_SET_ERR_MSG_MOD(), so on a successful parse the err_out block
reads an uninitialized pointer. If that garbage happens to be
non-NULL, DP_NOTICE("%s", extack._msg) dereferences it inside
vsnprintf, causing a page fault and kernel panic.

This manifests when configuring ethtool ntuple flow rules (ethtool -U
flow-type tcp4/udp4) on kernels built with CONFIG_INIT_STACK_NONE=y.
With CONFIG_INIT_STACK_ALL_ZERO=y the bug is masked because the
compiler zero-initializes extack, making _msg NULL.

Reproduced on RHEL 9.8 (kernel-5.14.0-687.47.1.el9_8) and mainline
(v7.3-rc6) with the following reproducer:

IFACE=ens2f0
ip link set $IFACE up
ethtool -K $IFACE ntuple on
for i in $(seq 1 100); do
ethtool -U $IFACE flow-type udp4 src-ip 192.168.2.$i action -1
done

The loop panics reliably after 10-15 iterations with:

BUG: unable to handle page fault
RIP: string+0x49/0xd0
Call Trace:
vsnprintf
qede_flow_spec_to_rule+0x2b6/0x4b0 [qede]
qede_add_cls_rule
ethtool_set_rxnfc

Zero-initialize extack so _msg is NULL unless explicitly set by an
error path.

Analysis

AI-generated

Technical impact

The Linux kernel contains a bug in the qede_flow_spec_to_rule function where a netlink_ext_ack structure is declared on the stack without proper initialization. When ntuple flow rules are parsed successfully, the _msg field of extack remains uninitialized. Subsequent use of this field during error handling can dereference a garbage pointer, causing a page fault within vsnprintf that crashes the kernel. Repeated addition of ntuple flow rules, as shown on RHEL 9.8 and the mainline kernel, reliably triggers this crash. The resulting kernel panic halts the entire system, denying availability for all processes and requiring a reboot.

Affected Systems

Any Linux kernel that compiles the qede driver with the CONFIG_INIT_STACK_NONE option enabled is vulnerable. The issue was proven on RHEL 9.8 kernel 5.14.0-687.47.1.el9_8 and the mainline kernel release candidate v7.3-rc6. Kernel versions prior to the application of the extack initialization patch in the referenced commit are at risk.

Risk and Exploitability

An attacker who can configure ethtool ntuple flow rules on a vulnerable system—such as a local privileged user or a remote user with such privileges—can reliably cause a kernel panic by repeatedly adding flow rules. Although the CVSS score is not provided and EPSS data is unavailable, the flaw does not appear in the CISA KEV catalog, suggesting no known public exploit. Nevertheless, the high severity of a kernel crash and the low technical barrier to exploitation make the risk high for affected hosts once the attacker gains sufficient privileges. Consequently, timely patching is critical to avoid denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the extack initialization fix.
  • If the kernel configuration cannot be updated immediately, disable CONFIG_INIT_STACK_NONE or enable CONFIG_INIT_STACK_ALL_ZERO so that stack variables are zero‑initialized.
  • After applying the patch or configuration change, test ntuple flow rule creation to confirm that no page fault occurs or disable the ntuple feature if it is not required.

Generated by OpenCVE AI on November 30, 2026 at 20:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: qede: initialize extack in qede_flow_spec_to_rule() qede_flow_spec_to_rule() declares a netlink_ext_ack on the stack without initializing it. qede_parse_flow_attr() and qede_flow_spec_validate() only set extack._msg on error paths via NL_SET_ERR_MSG_MOD(), so on a successful parse the err_out block reads an uninitialized pointer. If that garbage happens to be non-NULL, DP_NOTICE("%s", extack._msg) dereferences it inside vsnprintf, causing a page fault and kernel panic. This manifests when configuring ethtool ntuple flow rules (ethtool -U flow-type tcp4/udp4) on kernels built with CONFIG_INIT_STACK_NONE=y. With CONFIG_INIT_STACK_ALL_ZERO=y the bug is masked because the compiler zero-initializes extack, making _msg NULL. Reproduced on RHEL 9.8 (kernel-5.14.0-687.47.1.el9_8) and mainline (v7.3-rc6) with the following reproducer: IFACE=ens2f0 ip link set $IFACE up ethtool -K $IFACE ntuple on for i in $(seq 1 100); do ethtool -U $IFACE flow-type udp4 src-ip 192.168.2.$i action -1 done The loop panics reliably after 10-15 iterations with: BUG: unable to handle page fault RIP: string+0x49/0xd0 Call Trace: vsnprintf qede_flow_spec_to_rule+0x2b6/0x4b0 [qede] qede_add_cls_rule ethtool_set_rxnfc Zero-initialize extack so _msg is NULL unless explicitly set by an error path.
Title net: qede: initialize extack in qede_flow_spec_to_rule()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM