linux-stable/drivers/net/phy
Aleksandr Mishin 1060816169 net: phy: micrel: Fix potential null pointer dereference
commit 96c155943a upstream.

In lan8814_get_sig_rx() and lan8814_get_sig_tx() ptp_parse_header() may
return NULL as ptp_header due to abnormal packet type or corrupted packet.
Fix this bug by adding ptp_header check.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: ece1950283 ("net: phy: micrel: 1588 support for LAN8814 phy")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240329061631.33199-1-amishin@t-argos.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:28:26 +02:00
..
mscc net: phy: mscc: macsec: reject PN update requests 2023-10-19 23:08:53 +02:00
Kconfig
Makefile
adin.c
adin1100.c
amd.c
aquantia.h
aquantia_hwmon.c
aquantia_main.c
at803x.c net: phy: at803x: fix passing the wrong reference for config_intr 2024-02-05 20:12:51 +00:00
ax88796b.c
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h net: phy: bcm7xx: Correct read from expansion register 2023-05-24 17:32:31 +01:00
bcm-phy-ptp.c
bcm7xxx.c net: phy: bcm7xxx: Add missing 16nm EPHY statistics 2023-10-25 12:03:08 +02:00
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c net: phy: broadcom: stub c45 read/write for 54810 2023-08-23 17:52:34 +02:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83td510.c net: phy: dp83td510: fix kernel stall during netboot in DP83TD510E PHY driver 2023-07-23 13:49:32 +02:00
dp83640.c
dp83640_reg.h
dp83822.c net: phy: dp83822: Fix RGMII TX delay configuration 2024-03-26 18:20:42 -04:00
dp83848.c
dp83867.c Revert "net: phy: dp83867: perform soft reset and retain established link" 2023-06-28 11:12:33 +02:00
dp83869.c net: phy: dp83869: fix default value for tx-/rx-internal-delay 2023-04-06 12:10:53 +02:00
et1011c.c
fixed_phy.c
icplus.c
intel-xway.c
linkmode.c
lxt.c
marvell-88x2222.c
marvell.c net: phy: marvell: add sleep time after enabling the loopback bit 2022-11-15 13:14:46 +01:00
marvell10g.c net: phy: marvell10g: fix 88x3310 power up 2023-08-03 10:23:58 +02:00
mdio-boardinfo.c
mdio-boardinfo.h
mdio_bus.c net: mdio: validate parameter addr in mdiobus_get_phy() 2023-02-01 08:34:19 +01:00
mdio_device.c net: mdio: fix unbalanced fwnode reference count in mdio_device_release() 2022-12-06 12:50:00 +01:00
mdio_devres.c net: mdio: fix owner field for mdio buses registered using device-tree 2023-03-30 12:49:05 +02:00
mediatek-ge.c
meson-gxl.c net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY 2023-02-14 19:11:44 +01:00
micrel.c net: phy: micrel: Fix potential null pointer dereference 2024-04-10 16:28:26 +02:00
microchip.c net: lan78xx: fix accessing the LAN7800's internal phy specific registers from the MAC driver 2023-03-17 08:50:24 +01:00
microchip_t1.c
mii_timestamper.c
motorcomm.c
mxl-gpy.c net: phy: mxl-gpy: add MDINT workaround 2022-12-07 20:04:11 -08:00
national.c
nxp-c45-tja11xx.c net: phy: nxp-c45-tja11xx: fix unsigned long multiplication overflow 2023-04-20 12:35:13 +02:00
nxp-tja11xx.c
phy-c45.c
phy-core.c
phy.c net: phy: Ensure state transitions are processed from phy_stop() 2023-03-30 12:49:04 +02:00
phy_device.c net: phy: fix phy_read_poll_timeout argument type in genphy_loopback 2024-03-26 18:21:00 -04:00
phy_led_triggers.c
phylink.c net: phylink: initialize carrier state at creation 2023-11-28 17:07:18 +00:00
qsemi.c
realtek.c net: phy: realtek: Fix rtl8211f_config_init() for RTL8211F(D)(I)-VD-CG PHY 2024-03-01 13:26:38 +01:00
rockchip.c
sfp-bus.c net: sfp: handle 100G/25G active optical cables in sfp_parse_support 2023-09-13 09:42:25 +02:00
sfp.c net: sfp: fix state loss when updating state_hw_mask 2023-06-14 11:15:15 +02:00
sfp.h
smsc.c net: phy: smsc: bail out in lan87xx_read_status if genphy_read_status fails 2023-03-22 13:33:46 +01:00
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c net: phy: xgmiitorgmii: Fix refcount leak in xgmiitorgmii_probe 2023-01-12 12:02:20 +01:00