Files
linux-stable-mirror/drivers
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
..
2024-04-03 15:19:32 +02:00
2024-04-10 16:28:23 +02:00
2024-04-03 15:19:42 +02:00
2024-02-05 20:12:47 +00:00
2024-04-03 15:19:45 +02:00
2024-04-10 16:28:21 +02:00
2024-04-03 15:19:46 +02:00
2024-01-20 11:50:10 +01:00
2024-03-26 18:21:00 -04:00