CVE-2026-139141

net: dcb: initialize PFC value before calling getpfccfg

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: dcb: initialize PFC value before calling getpfccfg

dcbnl_getpfccfg() and dcbnl_cee_fill() pass the address of an
uninitialized stack u8 to the driver's getpfccfg() op and then put it
into the netlink reply unconditionally. The op returns void, so the
core cannot tell whether the driver wrote the value.

i40e_dcbnl_get_pfc_cfg() and ice_dcbnl_get_pfc_cfg() return without
writing *setting unless the DCBX agent is host managed and in CEE mode.
Both drivers normally run with firmware managed DCBX
(DCB_CAP_DCBX_LLD_MANAGED), and i40e with FW LLDP disabled runs host
managed in IEEE mode, so on a DCB capable i40e/ice port the PFC values
in DCB_CMD_PFC_GCFG and DCB_CMD_CEE_GET replies, and in the CEE part of
RTNLGRP_DCB notifications, come from uninitialized stack. The same u8
is reused for all eight priorities, so this is one byte per reply.

dcb_doit() only requires CAP_NET_ADMIN for RTM_SETDCB, so the GET
commands are available to unprivileged users.

Set the value to 0 before each call, like the PG config path already
presets its outputs to DCB_ATTR_VALUE_UNDEFINED. 0 is also what the
reply contains today on kernels built with CONFIG_INIT_STACK_ALL_ZERO,
so nothing changes for those.

Found by code inspection, compile-tested only (W=1). I don't have
i40e/ice hardware to check the reply.

Analysis

AI-generated

Technical impact

The Linux kernel previously allowed the DCB netlink interface to expose a byte-sized PFC (Priority Flow Control) configuration value that was never initialized before being written to the netlink reply. As the driver’s getpfccfg() function is void, the core cannot detect whether the driver wrote a value. Consequently, uninitialized stack memory is returned to callers, exposing potentially random data to users.

Affected Systems

Any system running a Linux kernel with actively compiled i40e or ice drivers that support DCB. The vulnerability is present in all kernel releases that have not applied the patch. No specific version range is provided, so all current kernel releases are potentially affected until the fix is applied.

Risk and Exploitability

The attack vector is local; an unprivileged user only needs to issue a netlink GET command to retrieve the DCB configuration. The EPSS score is not available, and the vulnerability is not listed in KEV. Because the data exposed is a single byte that may vary per read session, the overall risk is limited but not negligible, especially in environments where firmware manages DCBX or where precise flow control configuration is critical. The fix is straightforward, involving a simple initialization before the netlink reply is populated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Linux kernel patch that sets the PFC value to zero before calling the driver’s getpfccfg operation; the patch is available in recent kernel releases and can be obtained from the Git commit references provided.
  • If a direct kernel rebuild is not possible, update the system to a kernel version that includes the fix or contact the kernel maintainers for backporting guidance.
  • As a temporary measure, restrict netlink access to the dcb interface by tightening CAP_NET_ADMIN control or disabling the DCB feature in the NIC drivers (sets the drivers to firmware‑managed mode only). Ensuring that DCB is only enabled on hosts that actually require it reduces the attack surface.

Generated by OpenCVE AI on November 30, 2026 at 19:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-457
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: dcb: initialize PFC value before calling getpfccfg dcbnl_getpfccfg() and dcbnl_cee_fill() pass the address of an uninitialized stack u8 to the driver's getpfccfg() op and then put it into the netlink reply unconditionally. The op returns void, so the core cannot tell whether the driver wrote the value. i40e_dcbnl_get_pfc_cfg() and ice_dcbnl_get_pfc_cfg() return without writing *setting unless the DCBX agent is host managed and in CEE mode. Both drivers normally run with firmware managed DCBX (DCB_CAP_DCBX_LLD_MANAGED), and i40e with FW LLDP disabled runs host managed in IEEE mode, so on a DCB capable i40e/ice port the PFC values in DCB_CMD_PFC_GCFG and DCB_CMD_CEE_GET replies, and in the CEE part of RTNLGRP_DCB notifications, come from uninitialized stack. The same u8 is reused for all eight priorities, so this is one byte per reply. dcb_doit() only requires CAP_NET_ADMIN for RTM_SETDCB, so the GET commands are available to unprivileged users. Set the value to 0 before each call, like the PG config path already presets its outputs to DCB_ATTR_VALUE_UNDEFINED. 0 is also what the reply contains today on kernels built with CONFIG_INIT_STACK_ALL_ZERO, so nothing changes for those. Found by code inspection, compile-tested only (W=1). I don't have i40e/ice hardware to check the reply.
Title net: dcb: initialize PFC value before calling getpfccfg
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-457

    Use of Uninitialized Variable

Sources

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