CVE-2024-42107
JSON

4.7medium

ice: Don't process extts if PTP is disabled

Severity
4.7medium CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ice: Don't process extts if PTP is disabled The ice_ptp_extts_event() function can race with ice_ptp_release() and result in a NULL pointer dereference which leads to a kernel panic. Panic occurs because the ice_ptp_extts_event() function calls ptp_clock_event() with a NULL pointer. The ice driver has already released the PTP clock by the time the interrupt for the next external timestamp event occurs. To fix this, modify the ice_ptp_extts_event() function to check the PTP state and bail early if PTP is not ready.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 172db5f91d5f7b91670c68a7547798b0b5374158 before 2ab26aeec3de0a677e02d6bc4dc85d49cd1ec4ac, from 172db5f91d5f7b91670c68a7547798b0b5374158 before 9aa83a5eb013f8aff20e701aa25ba6b0eaad0b65, from 172db5f91d5f7b91670c68a7547798b0b5374158 before 1c4e524811918600683b1ea87a5e0fc2db64fa9b, from 172db5f91d5f7b91670c68a7547798b0b5374158 before 996422e3230e41468f652d754fefd1bdbcd4604e, 5.14
Not affected: before 5.14, from 6.1.191 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.9.9 up to 6.9.*, from 6.10 up to *
CVE List
linux linux_kernelfrom 5.14 before 6.9.9, 6.10NVD

Classification

CWE-367CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ice: Don't process extts if PTP is disabled The ice_ptp_extts_event() function can race with ice_ptp_release() and result in a NULL pointer dereference which leads to a kernel panic. Panic occurs because the ice_ptp_extts_event() function calls ptp_clock_event() with a NULL pointer. The ice driver has already released the PTP clock by the time the interrupt for the next external timestamp event occurs. To fix this, modify the ice_ptp_extts_event() function to check the PTP state and bail early if PTP is not ready.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ice: no procesar extts si PTP está deshabilitado. La función ice_ptp_extts_event() puede competir con ice_ptp_release() y provocar una desreferencia del puntero NULL que provoca un pánico en el kernel. El pánico ocurre porque la función ice_ptp_extts_event() llama a ptp_clock_event() con un puntero NULL. El controlador de hielo ya ha liberado el reloj PTP cuando ocurre la interrupción para el siguiente evento de marca de tiempo externo. Para solucionar este problema, modifique la función ice_ptp_extts_event() para verificar el estado de PTP y salir temprano si PTP no está listo.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-42107 changed 2026-10-30CVE Terms of Use
NVDCVE-2024-42107 changed 2026-10-30Public domain