CVE-2025-22082 iio: backend: make sure to NULL terminate stack buffer

Medium 5.5 Published Updated

A missing NULL termination in the Linux kernel IIO backend can cause a crash when processing debugfs writes, 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-22082?

CVE-2025-22082 is a medium-severity 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:

iio: backend: make sure to NULL terminate stack buffer

Make sure to NULL terminate the buffer in iio_backend_debugfs_write_reg() before passing it to sscanf(). It is a stack variable so we should not assume it will 0 initialized.

Which versions are affected by CVE-2025-22082?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-22082?

Apply the vendor's patch.

Is CVE-2025-22082 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-22082, DEBIAN-CVE-2025-22082, GHSA-m587-7hw6-635x, UBUNTU-CVE-2025-22082.

Is CVE-2025-22082 in your software?

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

Check your SBOMs for free