CVE-2024-46719 usb: typec: ucsi: Fix null pointer dereference in trace

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel USB Type-C driver can cause a system crash when DisplayPort altmode 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-46719?

CVE-2024-46719 is a medium-severity vulnerability in Linux kernel, published on 18 Sep 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:

usb: typec: ucsi: Fix null pointer dereference in trace

ucsi_register_altmode checks IS_ERR for the alt pointer and treats NULL as valid. When CONFIG_TYPEC_DP_ALTMODE is not enabled, ucsi_register_displayport returns NULL which causes a NULL pointer dereference in trace. Rather than return NULL, call typec_port_register_altmode to register DisplayPort alternate mode as a non-controllable mode when CONFIG_TYPEC_DP_ALTMODE is not enabled.

Weakness: CWE-476

Which versions are affected by CVE-2024-46719?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46719?

Apply the vendor's patch.

Is CVE-2024-46719 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-49404, BELL-CVE-2024-46719, DEBIAN-CVE-2024-46719, GHSA-7ccw-f88q-2crh, UBUNTU-CVE-2024-46719.

Is CVE-2024-46719 in your software?

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

Check your SBOMs for free