CVE-2025-38301 nvmem: zynqmp_nvmem: unbreak driver after cleanup

Medium 5.5 Published Updated

A null pointer dereference in the ZynqMP nvmem driver causes a kernel crash when the device is accessed, 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-38301?

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

nvmem: zynqmp_nvmem: unbreak driver after cleanup

Commit 29be47fcd6a0 ("nvmem: zynqmp_nvmem: zynqmp_nvmem_probe cleanup") changed the driver to expect the device pointer to be passed as the "context", but in nvmem the context parameter comes from nvmem_config.priv which is never set - Leading to null pointer exceptions when the device is accessed.

Weakness: CWE-476

Which versions are affected by CVE-2025-38301?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-38301?

Apply the vendor's patch.

Is CVE-2025-38301 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-38301, DEBIAN-CVE-2025-38301, GHSA-557g-5w49-23j4, UBUNTU-CVE-2025-38301.

Is CVE-2025-38301 in your software?

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

Check your SBOMs for free