linux/drivers/net/usb
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
..
Kconfig net: usb: lan78xx: Convert to PHYLINK for improved PHY and MAC management 2025-06-19 15:37:06 -07:00
Makefile
aqc111.c net: usb: aqc111: debug info before sanitation 2025-05-30 12:14:53 +01:00
aqc111.h
asix.h usbnet: asix AX88772: leave the carrier control to phylink 2025-04-10 18:42:50 -07:00
asix_common.c usbnet: asix AX88772: leave the carrier control to phylink 2025-04-10 18:42:50 -07:00
asix_devices.c net: usb: asix_devices: Fix PHY address mask in MDIO bus initialization 2025-08-19 17:52:29 -07:00
ax88172a.c net: usb: asix: ax88772: Increase phy_name size 2025-03-25 14:35:32 -07:00
ax88179_178a.c net: usb: ax88179_178a: improve link status logs 2024-06-24 10:15:09 +01:00
catc.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
cdc-phonet.c
cdc_eem.c
cdc_ether.c cdc_ether|r8152: ThinkPad Hybrid USB-C/A Dock quirk 2025-03-17 21:25:25 +01:00
cdc_mbim.c net: usb: cdc_mbim: fix Telit Cinterion FE990A name 2025-02-28 17:55:02 -08:00
cdc_ncm.c cdc_ncm: Flag Intel OEM version of Fibocom L850-GL as WWAN 2025-08-19 17:16:37 -07:00
cdc_subset.c
ch9200.c net: ch9200: fix uninitialised access during mii_nway_restart 2025-05-28 19:10:04 -07:00
cx82310_eth.c
dm9601.c
gl620a.c usbnet: gl620a: fix endpoint checking in genelink_bind() 2025-02-27 11:35:10 +01:00
hso.c
huawei_cdc_ncm.c
int51x1.c
ipheth.c usbnet: ipheth: document scope of NCM implementation 2025-01-28 12:16:32 +01:00
kalmia.c
kaweth.c
lan78xx.c net: usb: lan78xx: stop including phy_fixed.h 2025-07-07 14:30:09 -07:00
lan78xx.h
lg-vl600.c
mcs7830.c
net1080.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
pegasus.c
pegasus.h
plusb.c
qmi_wwan.c net: usb: qmi_wwan: add Telit Cinterion FN990A w/audio composition 2025-08-11 20:07:16 -07:00
r8152.c net: usb: r8152: Add device ID for TP-Link UE200 2025-06-10 14:41:43 -07:00
r8153_ecm.c cdc_ether|r8152: ThinkPad Hybrid USB-C/A Dock quirk 2025-03-17 21:25:25 +01:00
rndis_host.c Revert "rndis_host: Flag RNDIS modems as WWAN devices" 2025-04-25 18:46:13 -07:00
rtl8150.c net: usb: rtl8150: enable basic endpoint checking 2025-01-28 11:55:22 +01:00
sierra_net.c usb: net: sierra: check for no status endpoint 2025-07-15 16:02:13 -07:00
smsc75xx.c
smsc75xx.h
smsc95xx.c net: usb: smsc95xx: add support for ethtool pause parameters 2025-07-21 17:42:12 -07:00
smsc95xx.h
sr9700.c net: usb: sr9700: only store little-endian values in __le16 variable 2024-10-17 18:09:13 -05:00
sr9700.h
sr9800.c
sr9800.h
usbnet.c net: usbnet: Fix the wrong netif_carrier_on() call 2025-08-06 04:39:42 +03:00
zaurus.c