linux/drivers/net
Yuichiro Tsuji 24ef2f53c0 net: usb: asix_devices: Fix PHY address mask in MDIO bus initialization
Syzbot reported shift-out-of-bounds exception on MDIO bus initialization.

The PHY address should be masked to 5 bits (0-31). Without this
mask, invalid PHY addresses could be used, potentially causing issues
with MDIO bus operations.

Fix this by masking the PHY address with 0x1f (31 decimal) to ensure
it stays within the valid range.

Fixes: 4faff70959 ("net: usb: asix_devices: add phy_mask for ax88772 mdio bus")
Reported-by: syzbot+20537064367a0f98d597@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=20537064367a0f98d597
Tested-by: syzbot+20537064367a0f98d597@syzkaller.appspotmail.com
Signed-off-by: Yuichiro Tsuji <yuichtsu@amazon.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250818084541.1958-1-yuichtsu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-08-19 17:52:29 -07:00
..
arcnet
bonding net: s/__dev_set_mtu/__netif_set_mtu/ 2025-07-18 17:27:47 -07:00
caif
can treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
dsa net: dsa: b53: fix reserved register access in b53_fdb_dump() 2025-08-18 17:46:04 -07:00
ethernet net: ti: icssg-prueth: Fix HSR and switch offload Enablement during firwmare reload. 2025-08-19 12:26:18 +02:00
fddi
fjes
hamradio hamradio: ignore ops-locked netdevs 2025-08-08 13:22:28 -07:00
hippi
hyperv hv_netvsc: Fix panic during namespace deletion with VF 2025-08-08 13:24:16 -07:00
ieee802154
ipa ipa: fix compile-testing with qcom-mdt=m 2025-08-04 17:15:15 -07:00
ipvlan net: s/dev_pre_changeaddr_notify/netif_pre_changeaddr_notify/ 2025-07-18 17:27:47 -07:00
mctp
mdio net: mdio: mdio-bcm-unimac: Correct rate fallback logic 2025-08-01 14:46:50 -07:00
netdevsim netdevsim: Fix wild pointer access in nsim_queue_free(). 2025-08-13 17:26:39 -07:00
ovpn Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-07-17 11:00:33 -07:00
pcs net: pcs: xpcs: mask readl() return value to 16 bits 2025-07-17 18:45:27 -07:00
phy phy: mscc: Fix timestamping for vsc8584 2025-08-19 17:52:02 -07:00
plip
ppp ppp: fix race conditions in ppp_fill_forward_path 2025-08-19 11:25:32 +02:00
pse-pd net: pse-pd: pd692x0: reduce stack usage in pd692x0_setup_pi_matrix 2025-07-10 18:05:36 -07:00
slip
team team: replace team lock with rtnl lock 2025-06-25 15:23:06 -07:00
thunderbolt net: thunderbolt: Enable end-to-end flow control also in transmit 2025-07-02 14:17:43 -07:00
usb net: usb: asix_devices: Fix PHY address mask in MDIO bus initialization 2025-08-19 17:52:29 -07:00
vmxnet3
vxlan vxlan: remove redundant conversion of vni in vxlan_nl2conf 2025-07-23 17:09:29 -07:00
wan net: lapbether: ignore ops-locked netdevs 2025-08-08 13:22:28 -07:00
wireguard wireguard: peer: Replace sockaddr with sockaddr_inet 2025-07-25 15:29:58 -07:00
wireless Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
wwan relayfs: abolish prev_padding 2025-07-09 22:57:51 -07:00
xen-netback
amt.c
bareudp.c
dummy.c
eql.c
geneve.c geneve: rely on rtnl lock in geneve_offload_rx_ports 2025-06-18 18:53:51 -07:00
gtp.c
ifb.c net: ifb: support BIG TCP packets 2025-07-02 14:46:19 -07:00
Kconfig
LICENSE.SRC
loopback.c
macsec.c macsec: set IFF_UNICAST_FLT priv flag 2025-07-25 11:03:46 -07:00
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c netconsole: append msgid to sysdata 2025-06-18 10:46:10 +01:00
netkit.c netkit: Remove location field in netkit_link 2025-07-11 11:01:09 -07:00
nlmon.c
ntb_netdev.c
pfcp.c
rionet.c
Space.c
sungem_phy.c
tap.c net: s/dev_get_mac_address/netif_get_mac_address/ 2025-07-18 17:27:46 -07:00
tun.c net: s/dev_get_mac_address/netif_get_mac_address/ 2025-07-18 17:27:46 -07:00
tun_vnet.h tun: enable gso over UDP tunnel support. 2025-07-08 18:07:26 +02:00
veth.c
virtio_net.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-07-17 11:00:33 -07:00
vrf.c vrf: Drop existing dst reference in vrf_ip6_input_dst 2025-07-26 11:28:45 -07:00
vsockmon.c
xen-netfront.c xen/netfront: Fix TX response spurious interrupts 2025-07-23 13:11:03 +02:00