CVE-2025-38518 x86/CPU/AMD: Disable INVLPGB on Zen2

Medium 5.5 Published Updated

A misconfigured CPUID on specific AMD Zen2 systems causes kernel panics during TLB flushes, requiring a patch to disable the feature.

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

CVE-2025-38518 is a medium-severity denial of service vulnerability in Linux kernel, published on 16 Aug 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:

x86/CPU/AMD: Disable INVLPGB on Zen2

AMD Cyan Skillfish (Family 17h, Model 47h, Stepping 0h) has an issue that causes system oopses and panics when performing TLB flush using INVLPGB.

However, the problem is that that machine has misconfigured CPUID and should not report the INVLPGB bit in the first place. So zap the kernel's representation of the flag so that nothing gets confused.

[ bp: Massage. ]

Which versions are affected by CVE-2025-38518?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-38518?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-38518 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-38518, GHSA-964p-9vqv-9rhv, UBUNTU-CVE-2025-38518.

Is CVE-2025-38518 in your software?

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

Check your SBOMs for free