CVE-2025-38368 misc: tps6594-pfsm: Add NULL pointer check in tps6594_pfsm_probe()

Medium 5.5 Published Updated

A missing NULL pointer check in the TPS6594 PFSM driver probe function can cause a kernel crash, leading to denial of service.

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

CVE-2025-38368 is a medium-severity vulnerability in Linux kernel, published on 25 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:

misc: tps6594-pfsm: Add NULL pointer check in tps6594_pfsm_probe()

The returned value, pfsm->miscdev.name, from devm_kasprintf() could be NULL. A pointer check is added to prevent potential NULL pointer dereference. This is similar to the fix in commit 3027e7b15b02 ("ice: Fix some null pointer dereference issues in ice_ptp.c").

This issue is found by our static analysis tool.

Weakness: CWE-476

Which versions are affected by CVE-2025-38368?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-38368?

Apply the vendor's patch.

Is CVE-2025-38368 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-38368, DEBIAN-CVE-2025-38368, GHSA-495q-r22g-59m9, ROOT-OS-UBUNTU-2204-CVE-2025-38368, ROOT-OS-UBUNTU-2404-CVE-2025-38368, UBUNTU-CVE-2025-38368.

Is CVE-2025-38368 in your software?

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

Check your SBOMs for free