CVE-2026-139141: net: dcb: initialize PFC value before calling getpfccfg
In the Linux kernel, the following vulnerability has been resolved:
net: dcb: initialize PFC value before calling getpfccfg
dcbnlgetpfccfg() and dcbnlceefill() 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.
i40edcbnlgetpfccfg() and icedcbnlgetpfccfg() return without writing setting unless the DCBX agent is host managed and in CEE mode. Both drivers normally run with firmware managed DCBX (DCBCAPDCBXLLDMANAGED), and i40e with FW LLDP disabled runs host managed in IEEE mode, so on a DCB capable i40e/ice port the PFC values in DCBCMDPFCGCFG and DCBCMDCEEGET replies, and in the CEE part of RTNLGRPDCB notifications, come from uninitialized stack. The same u8 is reused for all eight priorities, so this is one byte per reply.
dcbdoit() only requires CAPNETADMIN for RTMSETDCB, 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 DCBATTRVALUEUNDEFINED. 0 is also what the reply contains today on kernels built with CONFIGINITSTACKALLZERO, 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.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to the uninitialized-data disclosure?
The issue affects DCB-capable Intel i40e and ice network ports when their getpfccfg driver operation does not write the PFC setting. This includes the normal firmware-managed DCBX configuration for both drivers, and i40e configurations with firmware LLDP disabled that use host-managed IEEE mode.
Can an unprivileged local user retrieve the affected data?
Yes. The DCB GET commands are available to unprivileged users; CAP_NET_ADMIN is required only for RTM_SETDCB. Affected values can appear in DCB_CMD_PFC_GCFG and DCB_CMD_CEE_GET replies.
How much data is disclosed in a response?
One uninitialized stack byte can be exposed per reply. That byte is reused across all eight PFC priorities in the response.
Can the issue also appear in DCB event notifications?
Yes. The uninitialized PFC values can be included in the CEE portion of RTNLGRP_DCB notifications.