summaryrefslogtreecommitdiff
path: root/include/linux/iio/timer/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorDeepanshu Kartikey <kartikey406@gmail.com>2025-12-18 06:41:56 +0530
committerPaolo Abeni <pabeni@redhat.com>2025-12-28 09:05:12 +0100
commita1e077a3f76eea0dc671ed6792e7d543946227e8 (patch)
tree61e708256e01f0fba81a9ba76773f41a7d6a28e1 /include/linux/iio/timer/git@git.tavy.me:linux.git
parenta4f800c4487dc5d6fcc28da89c7cc3c187ccc731 (diff)
net: usb: asix: validate PHY address before use
The ASIX driver reads the PHY address from the USB device via asix_read_phy_addr(). A malicious or faulty device can return an invalid address (>= PHY_MAX_ADDR), which causes a warning in mdiobus_get_phy(): addr 207 out of range WARNING: drivers/net/phy/mdio_bus.c:76 Validate the PHY address in asix_read_phy_addr() and remove the now-redundant check in ax88172a.c. Reported-by: syzbot+3d43c9066a5b54902232@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=3d43c9066a5b54902232 Tested-by: syzbot+3d43c9066a5b54902232@syzkaller.appspotmail.com Fixes: 7e88b11a862a ("net: usb: asix: refactor asix_read_phy_addr() and handle errors on return") Link: https://lore.kernel.org/all/20251217085057.270704-1-kartikey406@gmail.com/T/ [v1] Signed-off-by: Deepanshu Kartikey <kartikey406@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20251218011156.276824-1-kartikey406@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/iio/timer/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions