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

net, bpf: fix null-ptr-deref in xdp_master_redirect() for down master

syzkaller reported a kernel panic in bond_rr_gen_slave_id() reached via
xdp_master_redirect(). Full decoded trace:

https://syzkaller.appspot.com/bug?extid=80e046b8da2820b6ba73

bond_rr_gen_slave_id() dereferences bond->rr_tx_counter, a per-CPU
counter that bonding only allocates in bond_open() when the mode is
round-robin. If the bond device was never brought up, rr_tx_counter
stays NULL.

The XDP redirect path can still reach that code on a bond that was
never opened: bpf_master_redirect_enabled_key is a global static key,
so as soon as any bond device has native XDP attached, the
XDP_TX -> xdp_master_redirect() interception is enabled for every
slave system-wide. The path xdp_master_redirect() ->
bond_xdp_get_xmit_slave() -> bond_xdp_xmit_roundrobin_slave_get() ->
bond_rr_gen_slave_id() then runs against a bond that has no
rr_tx_counter and crashes.

Fix this in the generic xdp_master_redirect() by refusing to call into
the master's ->ndo_xdp_get_xmit_slave() when the master device is not
up. IFF_UP is only set after ->ndo_open() has successfully returned,
so this reliably excludes masters whose XDP state has not been fully
initialized. Drop the frame with XDP_ABORTED so the exception is
visible via trace_xdp_exception() rather than silently falling through.
This is not specific to bonding: any current or future master that
defers XDP state allocation to ->ndo_open() is protected.
Published: 2026-06-24
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in the Linux kernel stems from a null pointer dereference in the XDP redirect path when a bond device that has never been opened is used. When a native XDP program is attached to any bond interface, the global interception key is set, causing the xdp_master_redirect() path to eventually call bond_rr_gen_slave_id() on that inactive bond. Because bond_open() never allocated the rr_tx_counter for round‑robin bonded interfaces, the dereference triggers a kernel panic. This crash can be used to disrupt system operation, constituting a denial of service. The flaw does not provide remote code execution or arbitrary privilege escalation, but it can terminate critical services running on the affected kernel.

Affected Systems

Linux kernel releases prior to the patch that addressed the issue. All vendors distributing the Linux kernel are impacted because the fix is a kernel patch applied to the upstream source.

Risk and Exploitability

Relative risk appears high because a kernel panic disrupts entire system operation, which is a serious denial of service when the attacker can trigger it. No CVSS score is available, and the EPSS score is not provided in the CVE data, so the exact likelihood of exploitation cannot be quantified. The vulnerability has not been catalogued in the CISA KEV list, indicating that known exploit code is not publicly documented. The likely attack vector requires the ability to load a native XDP program or otherwise manipulate bond interface configuration. An attacker with local privileged rights can attach the XDP program or change bond settings, triggering the null pointer dereference when the bonded interface has never been brought up. Because the flaw only manifests when XDP is enabled on an inactive bond, exploitation requires a scenario where a bond device exists but has not yet been opened.

Generated by OpenCVE AI on June 24, 2026 at 21:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that incorporates the fix for net, bpf: null‑ptr‑deref in xdp_master_redirect().
  • If an upgrade cannot be performed immediately, prevent XDP programs from being attached to any bond or other master devices until the interface has been opened and fully initialized. This stops the redirection path from executing the vulnerable code.
  • Ensure that bond interfaces are brought up (bond_open() called) before configuring or enabling XDP, thereby guaranteeing that rr_tx_counter is allocated and the redirect path cannot dereference a null pointer.

Generated by OpenCVE AI on June 24, 2026 at 21:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 21:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Wed, 24 Jun 2026 17:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net, bpf: fix null-ptr-deref in xdp_master_redirect() for down master syzkaller reported a kernel panic in bond_rr_gen_slave_id() reached via xdp_master_redirect(). Full decoded trace: https://syzkaller.appspot.com/bug?extid=80e046b8da2820b6ba73 bond_rr_gen_slave_id() dereferences bond->rr_tx_counter, a per-CPU counter that bonding only allocates in bond_open() when the mode is round-robin. If the bond device was never brought up, rr_tx_counter stays NULL. The XDP redirect path can still reach that code on a bond that was never opened: bpf_master_redirect_enabled_key is a global static key, so as soon as any bond device has native XDP attached, the XDP_TX -> xdp_master_redirect() interception is enabled for every slave system-wide. The path xdp_master_redirect() -> bond_xdp_get_xmit_slave() -> bond_xdp_xmit_roundrobin_slave_get() -> bond_rr_gen_slave_id() then runs against a bond that has no rr_tx_counter and crashes. Fix this in the generic xdp_master_redirect() by refusing to call into the master's ->ndo_xdp_get_xmit_slave() when the master device is not up. IFF_UP is only set after ->ndo_open() has successfully returned, so this reliably excludes masters whose XDP state has not been fully initialized. Drop the frame with XDP_ABORTED so the exception is visible via trace_xdp_exception() rather than silently falling through. This is not specific to bonding: any current or future master that defers XDP state allocation to ->ndo_open() is protected.
Title net, bpf: fix null-ptr-deref in xdp_master_redirect() for down master
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-06-24T16:30:10.930Z

Reserved: 2026-06-09T07:44:35.382Z

Link: CVE-2026-53069

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T21:30:04Z

Weaknesses