CVE-2024-50097 net: fec: don't save PTP state if PTP is unsupported

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel FEC driver causes a system crash on platforms without PTP support.

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-50097?

CVE-2024-50097 is a medium-severity vulnerability in Linux kernel, published on 5 Nov 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:

net: fec: don't save PTP state if PTP is unsupported

Some platforms (such as i.MX25 and i.MX27) do not support PTP, so on these platforms fec_ptp_init() is not called and the related members in fep are not initialized. However, fec_ptp_save_state() is called unconditionally, which causes the kernel to panic. Therefore, add a condition so that fec_ptp_save_state() is not called if PTP is not supported.

Which versions are affected by CVE-2024-50097?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50097?

Apply the vendor's patch.

Is CVE-2024-50097 being exploited?

There is no known exploitation of CVE-2024-50097 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2024-50097, GHSA-wggq-gr89-33vp, UBUNTU-CVE-2024-50097.

Is CVE-2024-50097 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free