CVE-2024-42107 ice: Don't process extts if PTP is disabled
A race condition in the Linux kernel ice driver causes a NULL pointer dereference and kernel panic when PTP is disabled.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-42107?
CVE-2024-42107 is a medium-severity vulnerability in Linux kernel, published on 30 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-42107?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42107?
Apply the vendor's patch.
Is CVE-2024-42107 being exploited?
There is no known exploitation of CVE-2024-42107 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-55184, AZL-55217, BELL-CVE-2024-42107, DEBIAN-CVE-2024-42107, GHSA-x8fw-rvr9-2hx5, ROOT-OS-DEBIAN-12-CVE-2024-42107 and 3 more.