CVE 7.5 HIGH

net, bpf: fix null-ptr-deref in xdp_master_redirect() for down master_CVE-2026-53069

7.5 / 10
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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.

Basic Information

ID CVE-2026-53069
Source Linux
Published Jun 24, 2026 at 16:30
Modified Jun 28, 2026 at 06:38

Affected Product

Vendor Linux
Product Linux
Version 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7
Affected Versions Linux Linux 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7
Linux Linux 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7
Linux Linux 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7
Linux Linux 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7
Linux Linux 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7
Linux Linux 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7
Linux Linux 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7
Linux Linux 5.15

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.