CVE-2025-22071 spufs: fix a leak in spufs_create_context()

Medium 5.5 Published Updated

A memory leak in the Linux kernel's SPU filesystem allows attackers to cause denial of service by triggering a specific error path.

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

CVE-2025-22071 is a medium-severity memory corruption vulnerability in Linux kernel, published on 16 Apr 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:

spufs: fix a leak in spufs_create_context()

Leak fixes back in 2008 missed one case - if we are trying to set affinity and spufs_mkdir() fails, we need to drop the reference to neighbor.

Weakness: CWE-401

Which versions are affected by CVE-2025-22071?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-22071?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-22071 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-22071, DEBIAN-CVE-2025-22071, GHSA-r24q-wpfh-2vqx, ROOT-OS-DEBIAN-11-CVE-2025-22071, ROOT-OS-UBUNTU-2404-CVE-2025-22071, UBUNTU-CVE-2025-22071.

Is CVE-2025-22071 in your software?

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

Check your SBOMs for free