CVE-2025-38130 drm/connector: only call HDMI audio helper plugged cb if non-null
A null pointer dereference in the Linux kernel's HDMI audio helper causes a system crash during driver removal, requiring a kernel patch.
- 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-2025-38130?
CVE-2025-38130 is a medium-severity vulnerability in Linux kernel, published on 3 Jul 2025. 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:
drm/connector: only call HDMI audio helper plugged cb if non-null
On driver remove, sound/soc/codecs/hdmi-codec.c calls the plugged_cb with NULL as the callback function and codec_dev, as seen in its hdmi_remove function.
The HDMI audio helper then happily tries calling said null function pointer, and produces an Oops as a result.
Fix this by only executing the callback if fn is non-null. This means the .plugged_cb and .plugged_cb_dev members still get appropriately cleared.
Weakness: CWE-476
Which versions are affected by CVE-2025-38130?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38130?
Apply the vendor's patch.
Is CVE-2025-38130 being exploited?
There is no known exploitation of CVE-2025-38130 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38130, GHSA-pqfp-6qg3-j74h, UBUNTU-CVE-2025-38130.